NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/44620: /proc/stat broken after acpi changes (?) and only shows one CPU in amd64-current



The following reply was made to PR kern/44620; it has been noted by GNATS.

From: bch%methodlogic.net@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
        netbsd-bugs%netbsd.org@localhost, htodd%twofifty.com@localhost
Subject: Re: kern/44620: /proc/stat broken after acpi changes (?) and only
        shows one CPU in amd64-current
Date: Wed, 27 Apr 2011 19:27:15 +0000

 On Wed, Apr 27, 2011 at 06:00:06PM +0000, Hisashi T Fujinaka wrote:
 > The following reply was made to PR kern/44620; it has been noted by GNATS.
 > 
 > From: Hisashi T Fujinaka <htodd%twofifty.com@localhost>
 > To: gnats-bugs%NetBSD.org@localhost
 > Cc: 
 > Subject: Re: kern/44620: /proc/stat broken after acpi changes (?) and only
 >  shows one CPU in amd64-current
 > Date: Wed, 27 Apr 2011 10:59:02 -0700 (PDT)
 > 
 >  Just as a data point, /proc/stat is still broken.
 >  
 >  uname -a is:
 >  NetBSD mara.i8u.org 5.99.51 NetBSD 5.99.51 (MARA) #37: Tue Apr 26 17:30:38 
 > PDT 2011
 
 I looked at my /proc, out of curiousity, and found that as non-root,
 it's poorly/erroneously presenting info to the user. As root, -my- tests 
indicate
 all CPUs are being represented, though.
 
 kamloops$ uname -a
 NetBSD kamloops 5.99.51 NetBSD 5.99.51 (kamloops) #61: Wed Apr 27 07:47:30 PDT 
2011  root@kamloops:/usr/obj/sys/arch/amd64/compile/kamloops amd64
 
 kamloops$ pwd
 /proc
 kamloops$ ls -ld s*
 ls: stat: No such file or directory <---- note multiple entries, but not 
really accessible.
 ls: stat: No such file or directory
 ls: stat: No such file or directory
 lr-xr-xr-x  1 root  wheel  3 Apr 27 12:22 self -> curproc
 kamloops$ su - 
 Password:
 cdTerminal type is xterm.
 kamloops# cd /proc/
 kamloops# ls -ld s*
 lr-xr-xr-x  1 root  wheel  3 Apr 27 12:23 self -> curproc
 -r--r--r--  1 root  wheel  0 Apr 27 12:23 stat
 kamloops# head -n 9 stat
 cpu 731 0 1004 299831
 cpu0 731 0 1004 299831
 cpu1 17015 0 342 284836
 cpu2 1749 0 368 300120
 cpu3 17388 0 1761 283106
 disk 0 0 0 0
 page 0 0
 swap 0 0
 intr 513972
 
 
 >  /proc/stat is:
 >  cpu 1121 0 3946 3863645
 >  cpu0 1121 0 3946 3863645
 >  disk 0 0 0 0
 >  page 0 0
 >  swap 0 0
 >  intr 0
 >  ctxt 1015306
 >  btime 1303884132
 >  
 >  In the past it listed cpu0 - cpu7.
 >  
 >  -- 
 >  Hisashi T Fujinaka - htodd%twofifty.com@localhost
 >  BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte
 >  
 
 -- 
 Brad Harder
 Method Logic Digital Consulting
 http://methodlogic.net/
 http://twitter.com/bcharder
 


Home | Main Index | Thread Index | Old Index