LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Which file has the cache information? (https://www.linuxquestions.org/questions/linux-general-1/which-file-has-the-cache-information-874147/)

longli 04-10-2011 01:44 PM

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

DavidMcCann 04-11-2011 11:29 AM

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.

longli 04-11-2011 11:39 AM

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 (Post 4321145)
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.


DavidMcCann 04-12-2011 10:32 AM

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/


All times are GMT -5. The time now is 08:49 AM.