From owner-freebsd-smp Fri Sep 19 14:28:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA10111 for smp-outgoing; Fri, 19 Sep 1997 14:28:29 -0700 (PDT) Received: from hutcs.cs.hut.fi (hutcs.cs.hut.fi [130.233.192.7]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA10103 for ; Fri, 19 Sep 1997 14:28:20 -0700 (PDT) Received: (from apl@localhost) by hutcs.cs.hut.fi (8.8.5/8.7.3) id AAA05236; Sat, 20 Sep 1997 00:27:42 +0300 (EET DST) Message-ID: <19970920002741.37382@hutcs.cs.hut.fi> Date: Sat, 20 Sep 1997 00:27:41 +0300 From: Antti-Pekka Liedes To: freebsd-smp@freebsd.org Subject: SMP related problems/weirdness Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81 Sender: owner-freebsd-smp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk First of all, deactivating SMP with sysctl -w machdep.smp_active=0 causes the CPU consumption calculations go haywire, ps and top both tell me nothing happens on my computer: last pid: 395; load averages: 0.72, 0.47, 0.21 00:17:34 75 processes: 1 running, 74 sleeping CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 0.0% idle Mem: 7328K Active, 48M Inact, 14M Wired, 1468K Cache, 8341K Buf, 21M Free Swap: 243M Total, 128K Used, 242M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 3 root 28 0 0K 0K psleep 0:00 0.00% 0.00% vmdaemon 4 root 28 0 0K 0K update 0:00 0.00% 0.00% update 282 apl 18 0 632K 796K pause 0:00 0.00% 0.00% zsh 298 apl 18 0 632K 668K pause 0:00 0.00% 0.00% zsh 368 apl 18 0 656K 596K pause 0:00 0.00% 0.00% zsh 324 apl 18 0 656K 556K pause 0:00 0.00% 0.00% zsh etc. Reactivating SMP doesn't repair the situation. Also, the way the CPU percentages of single processes are calculated under SMP seems quite weird. For example, decoding of mp3 stream with mpg123 consumes usually less than 5%, even less than 1% of CPU on my home box (dual P5/200MMX), whereas the same stream consumes about 18% on a Ppro/180. Putting a shell or two into a while;do;done loop also increases the CPU percentages of mpg123, which at least to me seems bogus. -- Antti-Pekka Liedes * apl@IRC * In two hells there's JMT 6 B 406 * apl@iki.fi * one hell too many 02150 ESPOO * apl@apocalypse.tky.hut.fi * - Lucifer +358 - 9 - 468 3121 * +358 - 40 - 5873 593 * (in God's Army)