Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

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

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

doesn't /proc/cpuinfo gives LLC size? –  sud03r Dec 13 '13 at 9:27

3 Answers 3

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.

share|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

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

or check dmidecode

or use lshw

share|improve this answer

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

share|improve this answer
Or dmesg (or dmesg.boot) and search for the CPU model. Then google on that. –  Hennes Nov 19 '12 at 0:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.