Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Sep 2011 16:12:57 +0000 (UTC)
From:      Anton Yuzhaninov <citrin@citrin.ru>
To:        freebsd-performance@freebsd.org
Subject:   hwpmc overflow
Message-ID:  <j5ae29$e6g$1@dough.gmane.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?j5ae29$e6g$1>