From: Raphael C. <dr...@gm...> - 2009-05-24 20:48:58
|
> > valgrind --tool=cachegrind --D1=128,2,64 ./swaptestrand2 2000000 > > and now I get > > D refs: 144,057,551 (94,023,790 rd + 50,033,761 wr) > D1 misses: 38,556,711 (24,424,753 rd + 14,131,958 wr) > L2d misses: 1,602,496 ( 1,477,285 rd + 125,211 wr) > D1 miss rate: 26.7% ( 25.9% + 28.2% ) > L2d miss rate: 1.1% ( 1.5% + 0.2% ) > > I am mystified, how can the D1 miss rate possibly be so low? The > total size in bytes of the array is 8,000,000 bytes and the cache size > is 8,192 bytes! > Typo: I mean a cache size 128 bytes of course, which is even more surprising. Raphael |