Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751443AbYLOMMY (ORCPT ); Mon, 15 Dec 2008 07:12:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751013AbYLOMLu (ORCPT ); Mon, 15 Dec 2008 07:11:50 -0500 Received: from ozlabs.org ([203.10.76.45]:45065 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750790AbYLOMLt (ORCPT ); Mon, 15 Dec 2008 07:11:49 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18758.18075.30744.666904@cargo.ozlabs.ibm.com> Date: Mon, 15 Dec 2008 22:59:23 +1100 From: Paul Mackerras To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Andrew Morton , Stephane Eranian , Eric Dumazet , Robert Richter , Arjan van de Ven , Peter Anvin , Peter Zijlstra , "David S. Miller" , perfctr-devel@lists.sourceforge.net Subject: Re: [patch] Performance Counters for Linux, v4 In-Reply-To: <20081214212829.GA9435@elte.hu> References: <20081214212829.GA9435@elte.hu> X-Mailer: VM 8.0.9 under Emacs 22.2.1 (i486-pc-linux-gnu) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1135 Lines: 29 Ingo Molnar writes: > For example, a full kernel build's statistics on a 16-way x86 box are: > > $ timec -e -5,-4,-3,1,2,3,5 make -j32 bzImage > > Performance counter stats for 'make': > > 142420.882 task clock ticks (millisecs) > > 9951033 pagefaults (events) > 302628 context switches (events) > 57810 CPU migrations (events) > 208439082509 instructions (events) > 657918810 cache references (events) > 120243697 cache misses (events) > 3134162468 branch misses (events) Does this machine have sufficient hardware counters to count those four hardware events at the same time? Or were those counters timeshared onto 1 or 2 hardware counters? If it's the latter, are those counts from half or a quarter of the total execution? Paul. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/