hwpmc overflow

Anton Yuzhaninov citrin at citrin.ru
Tue Sep 20 16:45:13 UTC 2011


It seems to be, that hwpmc counters overflow is not properly handled.

I want to count TLB misses and run:

pmcstat -C -w1 -d -p
INSTR_RETIRED_ANY -p DTLB_MISSES.ANY -p MEM_LOAD_RETIRED.DTLB_MISS -p
ITLB_MISSES.ANY -p MEM_LOAD_RETIRED.L3_MISS

With -C values should monotonous increase, but in output I see
overflous.

Example output:
http://pastebin.com/JiEF9AcU

2120463169
2139646836
281472837488169
281472855479093

2139646836 is near to 2^31 - max value for signed int (int32_t)

-- 
 Anton Yuzhaninov



More information about the freebsd-performance mailing list