Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-04-2010, 11:16 AM   #1
LQ Newbie
Registered: May 2010
Posts: 7

Rep: Reputation: 0
Bash command for getting L2 and L3 cache size

Hello, how do I get the L2 and L3 cache size?
Old 09-04-2010, 11:44 AM   #2
LQ Newbie
Registered: May 2010
Posts: 7

Original Poster
Rep: Reputation: 0
got it - dmesg | grep cache
Old 09-04-2010, 11:51 AM   #3
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
dmidecode --type 7


dmidecode -t cache
Old 09-04-2010, 01:08 PM   #4
LQ Newbie
Registered: May 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Those commands didn't work, I am using CentOS, not sure if that is the reason.
Old 09-04-2010, 01:15 PM   #5
Senior Member
Registered: Oct 2003
Posts: 2,575

Rep: Reputation: 220Reputation: 220Reputation: 220
dmidecode is located in /sbin which is not in PATH in RH based distros like Centos.You have to give the full path to dmidecode:

# /sbin/dmidecode -t cache
Old 09-25-2014, 04:17 AM   #6
LQ Newbie
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
much esyer (to remember)


(sorry -i meant easier

Last edited by as00270; 09-25-2014 at 04:21 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
L1 and L2 cache size sharadbade Linux - Newbie 1 03-14-2009 01:42 PM
Is there any specific command for clear cache in bash terminal? green_njk Linux - Software 2 11-23-2006 11:22 PM
buffer cache size gsr_kashyap Red Hat 6 09-18-2006 02:15 AM
DNS cache size shipon_97 Linux - Networking 3 09-13-2006 03:29 AM
How to get size of memory cache? lucky6969b Programming 1 02-20-2006 02:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration