From owner-freebsd-current@FreeBSD.ORG Tue Sep 27 23:24:47 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 27B3C16A41F for ; Tue, 27 Sep 2005 23:24:47 +0000 (GMT) (envelope-from nik@cs.chalmers.se) Received: from anubis.medic.chalmers.se (anubis.medic.chalmers.se [129.16.30.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6D8143D48 for ; Tue, 27 Sep 2005 23:24:46 +0000 (GMT) (envelope-from nik@cs.chalmers.se) X-Medic-Info: 476f.4339d4bd.0 RadnDVUJnVBs1zFh Received: from webmail.chalmers.se (elbe1.ita.chalmers.se [129.16.222.100]) by mail.chalmers.se (Postfix) with ESMTP id 19B1540A1 for ; Wed, 28 Sep 2005 01:24:45 +0200 (CEST) Received: from 83.226.117.75 (SquirrelMail authenticated user nik); by webmail.chalmers.se with HTTP; Wed, 28 Sep 2005 01:24:45 +0200 (CEST) Message-ID: <52420.83.226.117.75.1127863485.squirrel@webmail.chalmers.se> Date: Wed, 28 Sep 2005 01:24:45 +0200 (CEST) From: "Niklas Sorensson" To: freebsd-current@freebsd.org User-Agent: SquirrelMail/1.4.3a-7.EL3 X-Mailer: SquirrelMail/1.4.3a-7.EL3 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: hwpmc & sampling X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2005 23:24:47 -0000 Hello, I just started looking into the hwpmc support, but I am having trouble running pmcstat in sampling mode. Here's an example of the symptoms: nik> time pmcstat -P instructions -O samples.out ./minisat_static ~/work/benchmarks/sat/standard_mix/f2clk_30.shuffled.cnf > /dev/null real 0m24.728s user 0m0.001s sys 0m0.004s nik> pmcstat -R samples.out | grep sample | wc -l 289 I would expect quite a lot more samples for a program that runs for more than 20 seconds. Am I doing something wrong, or does this mean that there is something wrong with sampling? Just counting seems to work as expected, although I have not tested very much so far. I am running on a current (i386) from a couple of days ago on an amd64 machine. Btw, I needed to add apic to my kernel config for hwpmc to. I guess this should be documented somewhere? /Niklas