From owner-freebsd-current@FreeBSD.ORG Wed Sep 28 09:58:55 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7352F16A41F for ; Wed, 28 Sep 2005 09:58:55 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id D858E43D5A for ; Wed, 28 Sep 2005 09:58:54 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by xproxy.gmail.com with SMTP id t13so1374621wxc for ; Wed, 28 Sep 2005 02:58:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uaWGDRA4m1gAa11qnADwSnyaQr/tODjQqeTwUtslLF3ebVjQKicQT7K62yHE1ibzoRA7X6XKIUapN7xuX9IJWoXLA6eSktW40cTfAMsGRxLAUzb96dSALLsMmEwi2DGhTgt2CDCek/Z8wWDlIT3eSw6jsxnWRvloU2F9P7POHw0= Received: by 10.70.122.15 with SMTP id u15mr259202wxc; Wed, 28 Sep 2005 02:52:14 -0700 (PDT) Received: by 10.70.115.15 with HTTP; Wed, 28 Sep 2005 02:52:14 -0700 (PDT) Message-ID: <84dead72050928025251c032f7@mail.gmail.com> Date: Wed, 28 Sep 2005 15:22:14 +0530 From: Joseph Koshy To: Niklas Sorensson In-Reply-To: <52420.83.226.117.75.1127863485.squirrel@webmail.chalmers.se> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <52420.83.226.117.75.1127863485.squirrel@webmail.chalmers.se> Cc: freebsd-current@freebsd.org Subject: Re: hwpmc & sampling X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joseph Koshy List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2005 09:58:55 -0000 Niklas, ns> time pmcstat -P instructions -O samples.out ./minisat_static ns> I would expect quite a lot more samples for a program that ns> runs for more than 20 seconds. Am I doing something wrong, Could you check whether the output of "pmccontrol -s", shows the 'interrupts dropped due to lack of space' count as non-zero? If it is, you will need to increase the tunable "kern.hwpmc.nsamples" till you get clean runs. I guess I should make pmcstat check and warn the user about sampling stalls encountered. nc> Btw, I needed to add apic to my kernel config for hwpmc to. nc> I guess this should be documented somewhere? It seems to be needed on the i386, but not on the amd64. Will fix. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy