LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-10-2011, 01:44 PM   #1
longli
LQ Newbie
 
Registered: Feb 2011
Posts: 10

Rep: Reputation: 0
Which file has the cache information?


Hi, guys:

I have a machine which has L1,L2 and L3 cache. I just would like to ask how can I get each level cache's cycles/latency information?

Also, can anyone suggest me some good profile tools that can capture each level cache miss/access number when running a program?

BTW, my machine has AMD cpu, and run on Ubuntu system.

Thanks
 
Old 04-11-2011, 11:29 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Run dmidecode as root. That will give you the BIOS data. So I have

Processor Information
L1 Cache Handle: 0x0005
L2 Cache Handle: 0x0006
L3 Cache Handle: Not Provided

and looking down, I find

Handle 0x0005, DMI type 7, 19 bytes
Cache Information
Installed Size: 126 kB

and similarly for handle 0x0006.
 
Old 04-11-2011, 11:39 AM   #3
longli
LQ Newbie
 
Registered: Feb 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for your reply. But why the speed is unknown?

Handle 0x0702, DMI type 7, 19 bytes
Cache Information
Socket Designation: Not Specified
Configuration: Enabled, Not Socketed, Level 3
Operational Mode: Write Back
Location: Internal
Installed Size: 10240 KB
Maximum Size: 10240 KB
Supported SRAM Types:
Unknown
Installed SRAM Type: Unknown
Speed: Unknown
Error Correction Type: Multi-bit ECC
System Type: Unified
Associativity: Other


Quote:
Originally Posted by DavidMcCann View Post
Run dmidecode as root. That will give you the BIOS data. So I have

Processor Information
L1 Cache Handle: 0x0005
L2 Cache Handle: 0x0006
L3 Cache Handle: Not Provided

and looking down, I find

Handle 0x0005, DMI type 7, 19 bytes
Cache Information
Installed Size: 126 kB

and similarly for handle 0x0006.
 
Old 04-12-2011, 10:32 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
There are quite a few gaps like that, as you can see. I suppose it's just a question of what the author of the BIOS found it easy to get or considered useful. Incidentally, I got the command from this document, which is worth having:
http://toolbox.mirror.linux.kg/
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cache information ? sulekha Linux - General 2 09-20-2013 04:17 AM
Where can I find the dependent information like that in the control file of .deb file mahaifang86 Ubuntu 2 11-17-2010 09:17 AM
Need information varnish cahing software, memcached db cache chandu.bezawada Linux - Software 1 10-08-2010 07:56 AM
How to find out indone information and datablocks information in a file system chaitanya1982 Linux - Newbie 1 09-24-2008 01:58 AM
Cache file on firefox hep3005 Linux - Software 1 03-15-2006 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:06 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
Open Source Consulting | Domain Registration