LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
Search this Thread
Old 09-04-2010, 11: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, 11: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, 11: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, 01: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, 01:15 PM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,333

Rep: Reputation: 144Reputation: 144
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
as00270
LQ Newbie
 
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
much esyer (to remember)

lscpu

(sorry -i meant easier

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


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


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


All times are GMT -5. The time now is 08:29 PM.

Main Menu
Advertisement
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