consistency: temperature versus metric bytes (was: Re: Why /proc/cpuinfodoesn't print L1,L2,L3 caches?)

From: Geert Uytterhoeven
Date: Wed Mar 26 2008 - 04:54:26 EST


On Tue, 25 Mar 2008, Chris Snook wrote:
> I think you want this:
>
> /sys/devices/system/cpu/cpu0/cache
>
> /proc/cpuinfo is intended to give a general summary of certain properties of
> the processor that tend to be particularly interesting, and present them all
> in one place. It is not intended to expose everything the kernel knows about
> every processor on the system.

Oh my god! My caches run at different temperatures!! ;-)

| anakin$ cat /sys/devices/system/cpu/cpu0/cache/index*/size
| 64K
| 64K
| 512K

Furthermore /proc/cpuinfo misses _more_ than 128 KiB:

| anakin$ cat /proc/cpuinfo

[...]

| cache size : 512 KB
^^^^^^

[...]

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Network and Software Technology Center Europe
The Corporate Village  Da Vincilaan 7-D1  B-1935 Zaventem  Belgium

Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@xxxxxxxxxxx
Internet: http://www.sony-europe.com/

Sony Network and Software Technology Center Europe
A division of Sony Service Centre (Europe) N.V.
Registered office: Technologielaan 7  B-1840 Londerzeel  Belgium
VAT BE 0413.825.160 Â RPR Brussels
Fortis Bank Zaventem  Swift GEBABEBB08A  IBAN BE39001382358619