Skip to contentSkip to conversation

Cache line size

DISCUSSION Chuck Ebbert 2 participants 2 messages Sep 11, 2006

lore
Share & tools
lore
#0 lore raw

In-Reply-To: <[email protected]>

Quoted 3 lines · John Richard Moser

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_SZ 32 or whatnot?

/sys/devices/system/cpu/cpu<N>/cache

Signature · 1 line
Chuck
#1 lore raw
Quoted 4 lines · Chuck Ebbert
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_SZ 32 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?

Dave