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

[david_luyer@pacific.net.au: Bug#154967: glibc bug: sysconf(_SC_NPROCESSORS_CONF) mis-parses v2.4.19rc3ac3 /proc/cpuinfo]



----- Forwarded message from David Luyer <david_luyer@pacific.net.au> -----

Subject: Bug#154967: glibc bug: sysconf(_SC_NPROCESSORS_CONF) mis-parses v2.4.19rc3ac3 /proc/cpuinfo
Reply-To: "David Luyer" <david_luyer@pacific.net.au>, 154967@bugs.debian.org
Resent-From: "David Luyer" <david_luyer@pacific.net.au>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Ben Collins <bcollins@debian.org>, glibc@packages.qa.debian.org
Resent-Date: Wed, 31 Jul 2002 13:33:04 GMT
Resent-Message-ID: <handler.154967.B.102812233825836@bugs.debian.org>
X-Debian-PR-Message: report 154967
X-Debian-PR-Package: libc6
X-Debian-PR-Keywords: 
From: "David Luyer" <david_luyer@pacific.net.au>
To: <submit@bugs.debian.org>
Organization: Pacific Internet (Australia)
Importance: Normal
Resent-Sender: Debian BTS <debbugs@master.debian.org>
X-Spam-Status: No, hits=-5.7 required=5.0 tests=SENT_BY_BTS,FORGED_RCVD_FOUND,GAPPY_TEXT version=2.20
X-Spam-Level: 

Package: libc6
Version: 2.2.5-10

The libc6 in Debian/Stable mis-parses /proc/cpuinfo from Linux kernel
v2.4.19rc3ac3 when doing a sysconf(_SC_NPROCESSORS_CONF).

This is in sysdeps/unix/sysv/linux/getsysstats.c in the
GET_NPROCS_PARSER #define.

Basically it counts both "processor" and "processor id" as CPUs, causing
it to count 4 CPUs in a 2 CPU system.

(resultant problem - procps mis-estimates Hz as 50 rather than 100 and
then gets process start times and other such things wrong in its output)

/proc/cpuinfo follows:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 11
model name      : Intel(R) Pentium(R) III CPU family      1133MHz
stepping        : 1
cpu MHz         : 1125.856
cache size      : 512 KB
processor id    : 0
siblings        : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 mmx fxsr sse
bogomips        : 2247.88

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 11
model name      : Intel(R) Pentium(R) III CPU family      1133MHz
stepping        : 1
cpu MHz         : 1125.856
cache size      : 512 KB
processor id    : 0
siblings        : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 mmx fxsr sse
bogomips        : 2247.88

David.
--
David Luyer                                     Phone:   +61 3 9674 7525
Network Development Manager    P A C I F I C    Fax:     +61 3 9699 8693
Pacific Internet (Australia)  I N T E R N E T   Mobile:  +61 4 1111 BYTE
http://www.pacific.net.au/                      NASDAQ:  PCNTF



----- End forwarded message -----

-- 
Debian     - http://www.debian.org/
Linux 1394 - http://linux1394.sourceforge.net/
Subversion - http://subversion.tigris.org/
Deqo       - http://www.deqo.com/



Reply to: