From owner-freebsd-performance@FreeBSD.ORG Wed Sep 28 10:06:14 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 B99CE106566C for ; Wed, 28 Sep 2011 10:06:14 +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 D64658FC0C for ; Wed, 28 Sep 2011 10:06:13 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R8r1o-0004l9-Dk for freebsd-performance@freebsd.org; Wed, 28 Sep 2011 12:06:12 +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 ; Wed, 28 Sep 2011 12:06:12 +0200 Received: from citrin by 178.214.36.169 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Sep 2011 12:06:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-performance@freebsd.org From: Anton Yuzhaninov Date: Wed, 28 Sep 2011 10:05:58 +0000 (UTC) Organization: Vega Lines: 35 Sender: Anton Yuzhaninov Message-ID: References: <3BE45FDD-1A7A-4F9D-B32B-30D19C897112@freebsd.org> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 178.214.36.169 X-Comment-To: George Neville-Neil User-Agent: tin/1.9.6-20101126 ("Burnside") (UNIX) (FreeBSD/9.0-BETA2 (i386)) X-Mailman-Approved-At: Wed, 28 Sep 2011 10:53:46 +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: Wed, 28 Sep 2011 10:06:14 -0000 On Wed, 28 Sep 2011 01:44:42, George Neville-Neil wrote: GNN> If you count them individually do you still get the overflows? That is, if you run GNN> the same workload but only count instructions, then run it again with the next counter, GNN> etc. I am wondering if something is wrong because of the number of things you're trying GNN> to count at the same time. for one counter problem the same. This test on other hardware: CPU: Intel(R) Xeon(R) CPU E5335 @ 2.00GHz (2004.98-MHz K8-class CPU) hwpmc: TSC/1/64/0x20 IAP/2/40/0x3ff IAF/3/40/0x61 Counter for DTLB_MISSES.ANY should overflow at 2^40 - 1 But again I see overflow near 2^31 # pmcstat -C -w1 -d -p DTLB_MISSES.ANY -o pmc.log -t 10924 from log: 2022802283 2041525661 2061836744 2083646634 2103665903 2123998093 2142902046 1097377998076 1097397893694 1097424659734 1097446393399 1097469768564 1097495460707 1097519426191 -- Anton Yuzhaninov