From owner-freebsd-questions Thu Apr 19 18:33:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id EB52837B42C for ; Thu, 19 Apr 2001 18:33:09 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 3BE406ACBA; Fri, 20 Apr 2001 11:03:08 +0930 (CST) Date: Fri, 20 Apr 2001 11:03:08 +0930 From: Greg Lehey To: Michael Lucas Cc: questions@freebsd.org Subject: Re: top & SMPng Message-ID: <20010420110308.E72002@wantadilla.lemis.com> References: <20010419150502.A49345@blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010419150502.A49345@blackhelicopters.org>; from mwlucas@blackhelicopters.org on Thu, Apr 19, 2001 at 03:05:02PM -0400 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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