Hello,
I was wondering how PAPI figures out the size of L2 cache.
I'm running Ubuntu with 2.6.29-7 kernel on Intel Core2 Quad CPU Q6600 @ 2.40GHz. Intel website (http://ark.intel.com/Product.aspx?id=29765) states that this CPU has 8MB L2 cache but I'm only getting 4MB when I run papi_mem_info. I attached the output of papi_mem_info below.
Is there an obvious explanation to this discrepancy?
Thanks,
Peter
===========================================
output
===========================================
ps27@ws60:/site/local/papi_32-3.7.0/bin$ ./papi_mem_info
Memory Cache and TLB Hierarchy Information.
------------------------------------------------------------------------
TLB Information.
There may be multiple descriptors for each level of TLB
if multiple page sizes are supported.
L1 Data TLB:
Page Size: 4096 KB
Number of Entries: 32
Associativity: 4
L1 Instruction TLB:
Page Size: 4 KB
Number of Entries: 128
Associativity: 4
L1 Instruction TLB:
Page Size: 2048 KB
Number of Entries: 8
Associativity: 4
L1 Instruction TLB:
Page Size: 4096 KB
Number of Entries: 4
Associativity: 4
L1 Data TLB:
Page Size: 4096 KB
Number of Entries: 16
Associativity: 4
L1 Data TLB:
Page Size: 4 KB
Number of Entries: 256
Associativity: 4
Cache Information.
L1 Data Cache:
Total size: 32 KB
Line size: 64 B
Number of Lines: 512
Associativity: 8
L1 Instruction Cache:
Total size: 32 KB
Line size: 64 B
Number of Lines: 512
Associativity: 8
L2 Unified Cache:
Total size: 4096 KB
Line size: 64 B
Number of Lines: 65536
Associativity: 16