Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Sep 1997 00:27:41 +0300
From:      Antti-Pekka Liedes <apl@mail.cs.hut.fi>
To:        freebsd-smp@freebsd.org
Subject:   SMP related problems/weirdness
Message-ID:  <19970920002741.37382@hutcs.cs.hut.fi>

next in thread | raw e-mail | index | archive | help
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)



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