From owner-freebsd-performance@FreeBSD.ORG Tue Sep 20 20:27:30 2011 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C235A1065673 for ; Tue, 20 Sep 2011 20:27:30 +0000 (UTC) (envelope-from gofp-freebsd-performance@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 7F8468FC16 for ; Tue, 20 Sep 2011 20:27:30 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R66ue-0003zp-Py for freebsd-performance@freebsd.org; Tue, 20 Sep 2011 22:27:28 +0200 Received: from 178.214.36.169 ([178.214.36.169]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Sep 2011 22:27:28 +0200 Received: from citrin by 178.214.36.169 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Sep 2011 22:27:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-performance@freebsd.org From: Anton Yuzhaninov Date: Tue, 20 Sep 2011 20:27:16 +0000 (UTC) Organization: Vega Lines: 39 Sender: Anton Yuzhaninov Message-ID: References: X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 178.214.36.169 X-Comment-To: Anton Yuzhaninov User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/9.0-BETA2 (i386)) X-Mailman-Approved-At: Tue, 20 Sep 2011 21:19:08 +0000 Subject: Re: hwpmc overflow X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2011 20:27:30 -0000 On Tue, 20 Sep 2011 16:12:57 +0000 (UTC), Anton Yuzhaninov wrote: AY> pmcstat -C -w1 -d -p AY> INSTR_RETIRED_ANY -p DTLB_MISSES.ANY -p MEM_LOAD_RETIRED.DTLB_MISS -p AY> ITLB_MISSES.ANY -p MEM_LOAD_RETIRED.L3_MISS AY> AY> With -C values should monotonous increase, but in output I see AY> overflous. AY> AY> Example output: AY> http://pastebin.com/JiEF9AcU AY> AY> 2120463169 AY> 2139646836 AY> 281472837488169 AY> 281472855479093 AY> AY> 2139646836 is near to 2^31 - max value for signed int (int32_t) AY> Some more debug info: # uname -a FreeBSD test.vega.ru 8.2-STABLE FreeBSD 8.2-STABLE #0: Tue Sep 20 14:41:45 UTC 2011 root@example.ru:/usr/obj/usr/src/sys/GENERIC amd64 hwpmc: TSC/1/64/0x20 IAP/4/48/0x3ff IAF/3/48/0x61 UCP/8/48/0x3f8 UCF/1/48/0x60 kern.hwpmc.debugflags: pmc=ops When in pmc out shown values 2111155514 281473102541203 in dmesg I can see PMC:OPS:2: rw id=4 -> old 7dd5ad3 PMC:OPS:2: rw id=4 -> old ffff904a7193 So probmles somewhere in kernel (not in pmcstat) -- Anton Yuzhaninov