Subject: Re: top reports wrong CPU number?
To: None <tech-smp@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-smp
Date: 10/09/2003 01:03:57
In article <000701c38dfd$9fa8fbc0$7f00a8c0@midorirose.net>,
Robert F. Schaefer <rschaefe@gcfn.org> wrote:
I don't know, but I'd file a PR. If you run current, update top and the
kernel and you'll get per cpu state stats.
christos
>When I run top on my 4-way PPRo box, it shows the CPU numbers as 0, 1, 2,
>and 4. Before I send-pr this, is it expected behavior? Here's a sample
>(during build.sh -j5 distribution):
>
>|load averages: 7.62, 7.72, 7.69
>20:31:31
>|81 processes: 2 runnable, 75 sleeping, 4 on processor
>|CPU states: 79.8% user, 0.0% nice, 18.8% system, 1.3% interrupt, 0.1%
>idle
>|Memory: 73M Act, 128K Inact, 1536K Wired, 3668K Exec, 18M File, 363M Free
>|Swap: 4612M Total, 4612M Free
>|
>| PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
>|20414 root 64 0 468K 1008K CPU/4 0:04 60.45% 17.87% nbmake
>|17969 root 64 0 316K 852K CPU/0 0:02 69.68% 9.72% nbmake
>| 3699 ratio 60 0 236K 940K CPU/2 3:54 6.01% 6.01% top
>|19908 root 64 0 348K 912K CPU/1 0:02 2.83% 2.20% nbmake
>|22461 root 64 0 416K 960K RUN/1 0:04 68.13% 17.68% nbmake
>
>|überserver% uname -v
>|NetBSD 1.6ZC (SERVER.MP) #0: Wed Oct 8 15:08:48 EDT 2003
>ratio@überserver:/a/r
>|atio/current/src/src/sys/arch/i386/compile/obj/SERVER.MP
>|überserver% top -v
>|top: version 3.5beta12
>|überserver%
>
>Thanks!
>
>Bob
>
>
>