Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Apr 2001 11:03:08 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Michael Lucas <mwlucas@blackhelicopters.org>
Cc:        questions@freebsd.org
Subject:   Re: top & SMPng
Message-ID:  <20010420110308.E72002@wantadilla.lemis.com>
In-Reply-To: <20010419150502.A49345@blackhelicopters.org>; from mwlucas@blackhelicopters.org on Thu, Apr 19, 2001 at 03:05:02PM -0400
References:  <20010419150502.A49345@blackhelicopters.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, 19 April 2001 at 15:05:02 -0400, Michael Lucas wrote:
> Hello,
>
> I just picked up a dual PIII-1Ghz system, and loaded FreeBSD-current
> on it.
>
> I build a SMP kernel.
>
> Oddly, whenever I do anything resource-intensive "i.e., make world", a
> top -S shows both CPUs about 50% idle.
>
> Is top wrong, or is there something else I should look at?

'make world' will do one thing at a time.  In order to utilize more
than one CPU, you'll need to run 'make world -j2'.  This runs two
concurrent makes.  In fact, it tends to work better with -j4.

last pid:  5009;  load averages:  2.05,  0.97,  0.40                                            up 0+19:02:04  11:01:51
83 processes:  6 running, 59 sleeping, 17 waiting, 1 mutex
CPU states: 85.2% user,  0.0% nice, 13.7% system,  1.2% interrupt,  0.0% idle
Mem: 21M Active, 64M Inact, 24M Wired, 6260K Cache, 22M Buf, 4892K Free
Swap: 512M Total, 512M Free

  PID USERNAME  PRI NICE   SIZE    RES STATE  C   TIME   WCPU    CPU COMMAND
   10 root      -16    0     0K     0K RUN    1  18.9H 49.22% 49.22% idle: cpu1
   11 root      -16    0     0K     0K RUN    0  18.9H 48.24% 48.24% idle: cpu0
   20 root      -68 -187     0K     0K WAIT   1   0:21  4.88%  4.88% irq3: dc0
 4992 root      129    0  2824K  2708K RUN    1   0:01 26.65%  2.54% cc1
   12 root      -44 -163     0K     0K WAIT   1   0:16  1.71%  1.71% swi1: net
 4998 root      129    0  2856K  2740K CPU0   1   0:01 32.00%  1.56% cc1
 4936 root        4    0  1360K   944K select 1   0:00  2.69%  0.49% make
 4990 root       -8    0   752K   612K pipdwt 1   0:00  4.10%  0.39% cpp0
 5006 root      128    0  2676K  2556K pipdwt 0   0:00  7.00%  0.34% cc1
  153 root        8    0   212K    32K nfsidl 0   0:01  0.20%  0.20% nfsiod
 4994 root       -8    0   872K   732K piperd 0   0:00  1.54%  0.15% as
   13 root      -48 -167     0K     0K WAIT   1   2:12  0.05%  0.05% swi6: tty:sio+
 1439 root        4    0  1356K   904K select 1   0:01  0.05%  0.05% make
    5 root       20    0     0K     0K syncer 0   0:24  0.00%  0.00% syncer
  127 root        4    0  1036K   640K select 1   0:24  0.00%  0.00% syslogd
   22 root      -64 -183     0K     0K WAIT   0   0:14  0.00%  0.00% irq11: atapci1+
  135 root        4  -12  1348K   652K select 0   0:06  0.00%  0.00% ntpd
  312 grog        4    0  3964K  2964K select 0   0:02  0.00%  0.00% xterm
    4 root      -16    0     0K     0K psleep 1   0:01  0.00%  0.00% bufdaemon
 1428 root       -8    0   976K   376K piperd 1   0:01  0.00%  0.00% tee
 1836 root       76    0  2012K  1080K CPU1   0   0:01  0.00%  0.00% top
 1501 root        4    0  1324K   872K select 1   0:01  0.00%  0.00% make

The fact that the idle processes are showing as the most active
processes is because of the weighting over a period of time.  At the
time I took this snapshot, the most active processes were the C
compilers.

Note that this is not related to SMPng.  If it were, I would have
referred you to -CURRENT.  You shouldn't be asking questions about
-CURRENT on this mailing list.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply.
For more information, see http://www.lemis.com/questions.html
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010420110308.E72002>