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 |
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. |
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:
|
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. |