Skip to content

Instantly share code, notes, and snippets.

@jvns
Created May 13, 2014 19:34
Show Gist options
  • Save jvns/a42ff6f48c659cfc4600 to your computer and use it in GitHub Desktop.
Save jvns/a42ff6f48c659cfc4600 to your computer and use it in GitHub Desktop.
bork@kiwi ~/w/howcomputer> perf stat -e dTLB-loads -e dTLB-load-misses -e dTLB-stores -e dTLB-store-misses -e dTLB-prefetches -e dTLB-prefetch-misses -e iTLB-loads -e iTLB-load-misses -d ./bytesum_mmap *.mp4
Size: 994046674
The answer is: 10
Performance counter stats for './bytesum_mmap The Newsroom S01E04.mp4':
136,876,052 dTLB-loads
[36.07%]
0 dTLB-misses
# 0.00% of all dTLB cache hits [37.48%]
34,551,902 dTLB-stores
[45.10%]
1,865 dTLB-misses
[46.71%]
<not supported> dTLB-prefetches
<not supported> dTLB-misses
37 iTLB-loads
[45.98%]
418 iTLB-misses
# 1129.73% of all iTLB cache hits [44.70%]
158,454,734 L1-dcache-loads [43.48%]
14,541,497 L1-dcache-load-misses # 9.18% of all L1-dcache hits [41.98%]
0 LLC-loads [39.32%]
0 LLC-load-misses # 0.00% of all LL-cache hits [36.64%]
0.150691854 seconds time elapsed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment