LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 09-04-2010, 10:16 AM   #1
enkwiringmindz
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, 10:44 AM   #2
enkwiringmindz
LQ Newbie
 
Registered: May 2010
Posts: 7

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

Rep: Reputation: 248Reputation: 248Reputation: 248
dmidecode --type 7

or

dmidecode -t cache
 
Old 09-04-2010, 12:08 PM   #4
enkwiringmindz
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, 12:15 PM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,284

Rep: Reputation: 136Reputation: 136
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
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 02:48 AM.

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