Subject: pkg/23142: top on 4-way MP i386 shows wrong CPU number
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <ratio@yubyub.net>
List: netbsd-bugs
Date: 10/13/2003 00:14:21
>Number:         23142
>Category:       pkg
>Synopsis:       top on 4-way MP i386 shows wrong CPU number
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 13 00:15:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     ratio
>Release:        -current ~9/26/03
>Organization:
>Environment:
NetBSD überserver 1.6ZC NetBSD 1.6ZC (SERVER.MP) #0: Wed Oct  8 15:08:48 EDT 2003  ratio@überserver:/a/ratio/current/src/src/sys/arch/i386/compile/obj/SERVER.MP i386

>Description:
top on my Netfinity 4x PPro shows STATEs as being on CPU 0, 1, 2, and 4.  Shouldn't this be 0, 1, 2, and 3?

>How-To-Repeat:
run top on a -current 4-way i386 machine.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 >überserver% top -d1 -ostate 6 | tee
 >load averages:  6.38,  6.20,  6.15    14:06:36
 >69 processes:  3 runnable, 62 sleeping, 4 on processor
 >
 >Memory: 182M Act, 9832K Inact, 1168K Wired, 5280K Exec, 100M File, 221M Free
 >Swap: 8708M Total, 8708M Free
 >
 >
 >  PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
 >12116 root      63    0  4884K 5288K CPU/4      1:22 73.43% 73.14% cc1
 >15721 root      63    0  3348K 3520K CPU/1      0:07 75.38% 29.69% cc1
 >20254 root      64    0  1128K 1320K CPU/2      0:01 52.17%  7.28% cpp0
 >23354 ratio     43    0   164K  760K CPU/0      0:00  2.00%  0.10% top
 > 7190 root      64    0  4628K 5032K RUN/1      0:35 74.14% 67.43% cc1
 >29513 root      64    0  4624K 5028K RUN/4      0:31 73.42% 64.45% cc1
 >
 >überserver% top -v
 >top: version 3.5beta12
 >überserver% uname -v
 >NetBSD 1.6ZC (SERVER.MP) #0: Wed Oct  8 15:08:48 EDT 2003  >ratio@überserver:/a/ratio/current/src/src/sys/arch/i386/compile/obj/SERVER.MP
 >überserver%