Cache line size
In-Reply-To: <[email protected]>
Quoted 11 lines · Dave Jones
Quoted 4 lines
Quoted 2 lines
Is there a way for the Linux Kernel to know the cache line size of the CPU it's on, besides #define
X86_CACHE_LINE_SZ32 or whatnot?/sys/devices/system/cpu/cpu<N>/cache
Hmm..
$ find /sys/ -name cache $That's on 2.6.18rc6. Is this some -mm only feature?
Looks like it's only there on Intel CPUs with CPUID level >= 0x00000004 and AMD CPUs with extended CPUID level >= 0x80000006, like this one:
vendor_id : AuthenticAMD
cpu family : 15
model : 72
It's not there on:
vendor_id : GenuineIntel
cpu family : 6
model : 6
Oh well...
Signature · 1 line
Chuck