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

Bug#609389: libc-bin: getconf -a have many variables set not properly (i.e. LEVEL*CACHE*)



On 02-12 17:03, Aurelien Jarno wrote:
> On Mon, Jan 10, 2011 at 08:51:59AM +0100, Aurelien Jarno wrote:
> > Witold Baryluk a écrit :
> > > Package: libc-bin
> > > Version: 2.11.2-7
> > > Severity: normal
> > > 
> > > getconf -a have many variables set to 0.
> > > 
> > > for example
> > > 
> > > LEVEL1_ICACHE_SIZE                 0
> > > LEVEL1_ICACHE_ASSOC                0
> > > LEVEL1_ICACHE_LINESIZE             0
> > > LEVEL1_DCACHE_SIZE                 0
> > > LEVEL1_DCACHE_ASSOC                0
> > > LEVEL1_DCACHE_LINESIZE             0
> > > LEVEL2_CACHE_SIZE                  0
> > > LEVEL2_CACHE_ASSOC                 0
> > > LEVEL2_CACHE_LINESIZE              0
> > > 
> > > 
> > > they are easly available on most architectures in /proc/cpuinfo
> > 
> > /proc/cpuinfo are not providing all these details, but just a "cache
> > size". The most likely problem is that your CPU is not known by the GNU
> > libc. Could you please install the cpuid package and send me the output
> > of the cpuid command?
> > 
> 
> Ping.


So, again on my machine (IBM ThinkPad T43 with Pentium M 1.7GHz),
I have all 0 in this lines. This is pretty well known machine,
so was thinking Pentium M properly report or is added somewhere. :)

I can still confirm it happens on newer kernels (2.6.38 for example)
and libc 2.11.2-11.

root@sredniczarny# cpuid
 eax in    eax      ebx      ecx      edx
00000000 00000002 756e6547 6c65746e 49656e69
00000001 000006d8 00000816 00000180 afe9fbff
00000002 02b3b001 000000f0 00000000 2c04307d
80000000 80000008 00000000 00000000 00000000
80000001 00000000 00000000 00000000 00100000
80000002 20202020 20202020 65746e49 2952286c
80000003 6e655020 6d756974 20295228 7270204d
80000004 7365636f 20726f73 33372e31 007a4847
80000005 00000000 00000000 00000000 00000000
80000006 00000000 00000000 08006040 00000000
80000007 00000000 00000000 00000000 00000000
80000008 00002020 00000000 00000000 00000000

Vendor ID: "GenuineIntel"; CPUID level 2

Intel-specific functions:
Version 000006d8:
Type 0 - Original OEM
Family 6 - Pentium Pro
Model 13 - 
Stepping 8
Reserved 0

Brand index: 22 [not in table]
Extended brand string: "        Intel(R) Pentium(R) M processor 1.73GHz"
CLFLUSH instruction cache line size: 8

Feature flags afe9fbff:
FPU    Floating Point Unit
VME    Virtual 8086 Mode Enhancements
DE     Debugging Extensions
PSE    Page Size Extensions
TSC    Time Stamp Counter
MSR    Model Specific Registers
PAE    Physical Address Extension
MCE    Machine Check Exception
CX8    COMPXCHG8B Instruction
APIC   On-chip Advanced Programmable Interrupt Controller present and enabled
SEP    Fast System Call
MTRR   Memory Type Range Registers
PGE    PTE Global Flag
MCA    Machine Check Architecture
CMOV   Conditional Move and Compare Instructions
FGPAT  Page Attribute Table
CLFSH  CFLUSH instruction
DS     Debug store
ACPI   Thermal Monitor and Clock Ctrl
MMX    MMX instruction set
FXSR   Fast FP/MMX Streaming SIMD Extensions save/restore
SSE    Streaming SIMD Extensions instruction set
SSE2   SSE2 extensions
SS     Self Snoop
TM     Thermal monitor
31     reserved

TLB and cache info:
b0: unknown TLB/cache descriptor
b3: unknown TLB/cache descriptor
02: Instruction TLB: 4MB pages, 4-way set assoc, 2 entries
f0: unknown TLB/cache descriptor
7d: unknown TLB/cache descriptor
30: unknown TLB/cache descriptor
04: Data TLB: 4MB pages, 4-way set assoc, 8 entries
2c: unknown TLB/cache descriptor
root@sredniczarny# cpuid


root@sredniczarny# cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 13
model name	: Intel(R) Pentium(R) M processor 1.73GHz
stepping	: 8
cpu MHz		: 800.000
cache size	: 2048 KB
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 clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx up bts est tm2
bogomips	: 1596.30
clflush size	: 64
cache_alignment	: 64
address sizes	: 32 bits physical, 32 bits virtual
power management:
root@sredniczarny#


Very sorry for late answer.

Regards
Witek



PS. Indeed on squeezy running Intel Core2 i got proper values. Nice.
    And BTW, cpuid on this Core2 machines, shows HT, which this cpu do not have,
    and shows "unknown TLB/cache descriptor" in all lines in "TLB and cache info",
    (which have slightly different numbers at the begining).

-- 
Witold Baryluk
JID: witold.baryluk // jabster.pl

Attachment: signature.asc
Description: Digital signature


Reply to: