All of lore.kernel.org
 help / color / mirror / Atom feed
* Why /proc/cpuinfo doesn't print L1,L2,L3 caches?
@ 2008-03-25 21:39 J.C. Pizarro
  2008-03-25 21:57 ` Chris Snook
  2008-03-26  1:39 ` Why /proc/cpuinfo doesn't print L1,L2,L3 caches? Dave Jones
  0 siblings, 2 replies; 9+ messages in thread
From: J.C. Pizarro @ 2008-03-25 21:39 UTC (permalink / raw)
  To: LKML

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 47
model name      : AMD Athlon(tm) 64 Processor 3200+
...
cache size      : 512 KB
...

The cache size is currently misinformed. It's not the real size because
it's 64+64+512 KiB = 640 KiB, not 512 KB.

How can i know what hw-caches use the processors?
The current kernel doesn't know well what hw-caches uses.

The good proposal is by example (the data below are not real):
* In old AMD Athlon64:

cache L1        : 64 KiB I + 64 KiB D, 64 B line, direct way, ...
cache L2        : 512 KiB I+D-shared, exclusive, 128 associative way, ...
cache L3        : none

* In Intel Core Duo:
processor       : 0
cache L1        : 32 KiB I + 32 KiB D, 64 B line, direct way, ...
cache L2        : 2048 KiB Cores-shared, inclusive, 128 associative way, ...
cache L3        : none

processor       : 1
cache L1        : 32 KiB I + 32 KiB D, 64 B line, direct way, ...
cache L2        : 2048 KiB cores-shared, inclusive, 128 associative way, ...
cache L3        : none

* In Quad:
processor       : 0
cache L1        : 32 KiB I + 32 KiB D, 64 B line, direct way, ...
cache L2        : 2048+2048 KiB pair-cores-shared, inclusive, 128
associative way, ...
cache L3        : none
...
processor       : 3
cache L1        : 32 KiB I + 32 KiB D, 64 B line, direct way, ...
cache L2        : 2048+2048 KiB pair-cores-shared, inclusive, 128
associative way, ...
cache L3        : none

It above is an example, put your symbols to /proc/cpuinfo in a
convenient manner.

   Good bye ;)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-03-26  8:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-25 21:39 Why /proc/cpuinfo doesn't print L1,L2,L3 caches? J.C. Pizarro
2008-03-25 21:57 ` Chris Snook
2008-03-25 22:50   ` J.C. Pizarro
2008-03-25 22:59     ` Chris Snook
2008-03-25 23:10       ` J.C. Pizarro
2008-03-25 23:14         ` Chris Snook
2008-03-26  4:29   ` Andrey Borzenkov
2008-03-26  8:54   ` consistency: temperature versus metric bytes (was: Re: Why /proc/cpuinfo doesn't print L1,L2,L3 caches?) Geert Uytterhoeven
2008-03-26  1:39 ` Why /proc/cpuinfo doesn't print L1,L2,L3 caches? Dave Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.