跑了一下 latency....好怪喔...竟然有level 4的cache....
Cache latency computation, ver 1.0
www.cpuid.com
Computing ...
stride 4 8 16 32 64 128 256 512
size (Kb)
1 3 3 4 3 3 3 3 3
2 3 3 3 3 3 3 3 4
4 4 4 4 4 3 3 3 3
8 5 7 13 15 21 14 12 11
16 6 7 12 22 38 37 37 37
32 6 8 13 17 17 25 18 19
64 2 3 13 18 18 18 17 18
128 3 4 9 18 40 18 18 19
256 3 4 9 18 19 19 20 19
512 3 4 10 20 28 38 38 42
1024 3 11 18 38 72 290 230 244
2048 3 9 17 34 64 272 294 245
4096 3 10 18 34 69 216 221 282
8192 3 11 19 38 67 231 226 281
16384 3 11 19 38 64 234 227 239
32768 3 11 20 34 64 232 223 281
4 cache levels detected
Level 1 size = 4Kb latency = 3 cycles
Level 2 size = 8Kb latency = 12 cycles
Level 3 size = 256Kb latency = 22 cycles
Level 4 size = 512Kb latency = 39 cycles