I wanted to know how to find L2 cache size in Linux...

for L1 cache size, I am doing the following

pico /proc/cpuinfo

what about L2 cache size?

link|improve this question
feedback

migrated from stackoverflow.com Oct 15 '09 at 14:11

This question came from our site for professional and enthusiast programmers.

3 Answers

EDIT 3: Heh, sorry, just do sudo dmidecode -t cache and it will show you your CPU's cache information. To tell what section you are looking at (L1 or L2), look at the Configuration: line. You want Configuration: Enabled, Not Socketed, Level 2.

link|improve this answer
can you point where exactly thanks – jkg Oct 14 '09 at 21:05
Please see the edit. – Jorge Israel Peña Oct 14 '09 at 21:44
feedback

cat /sys/devices/system/cpu/cpu0/cache/index2/size

or check dmidecode

or use lshw

link|improve this answer
feedback

dmesg | grep cache will show your L1 and L2 related information.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown