Andi,
L2 cache lines = L2 cache size ?
This P4 has got 512KB L2 cache.
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.40GHz
stepping : 4
cpu MHz : 2400.143
cache size : 512 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 pat pse36
clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 4784.12
On Thu, Nov 21, 2002 at 02:25:54PM +0100, Margit Schubert-While wrote:
> Andi,
> L2 cache lines = L2 cache size ?
No.
> This P4 has got 512KB L2 cache.
That 512KB is divided into 'lines' of n bytes.
Where n is the L1_CACHE_SHIFT value. (Or should be).
x86info will tell you the line size. (Its also printk'd at boot up iirc)
Dave
--
| Dave Jones. http://www.codemonkey.org.uk
| SuSE Labs