From owner-freebsd-current@FreeBSD.ORG Tue Sep 4 21:55:47 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 98EBC1065673; Tue, 4 Sep 2012 21:55:47 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 780FF8FC19; Tue, 4 Sep 2012 21:55:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q84LtlI4051661; Tue, 4 Sep 2012 21:55:47 GMT (envelope-from bapt@freebsd.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q84Ltlct051632; Tue, 4 Sep 2012 21:55:47 GMT (envelope-from bapt@freebsd.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@freebsd.org using -f Date: Tue, 4 Sep 2012 23:55:44 +0200 From: Baptiste Daroussin To: Davide Italiano Message-ID: <20120904215544.GG88081@ithaqua.etoilebsd.net> References: <0D822C75-7240-42E3-8780-18CABC9C45A1@netasq.com> <20120903212340.GE88081@ithaqua.etoilebsd.net> <60A32BCE-756A-4A0D-A24D-7AC42F71BD1A@netasq.com> <20120904192320.GF88081@ithaqua.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Cp3Cp8fzgozWLBWL" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current , Fabien Thomas Subject: Re: [CFT] hwpmc support for Intel Ivy Bridge 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, 04 Sep 2012 21:55:47 -0000 --Cp3Cp8fzgozWLBWL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 04, 2012 at 10:02:06PM +0200, Davide Italiano wrote: > [trimming old mails] >=20 > > > > Hi, > > > > here are the results > > > > # pmccontrol -L > > SOFT > > CLOCK.STAT > > CLOCK.HARD > > LOCK.FAILED > > PAGE_FAULT.WRITE > > PAGE_FAULT.READ > > PAGE_FAULT.ALL > > > > # pmcstat -SOFF_CORE_RESPONSE_0,rsp=3DREQ_DMND_DATA_RD+RES_ANY -w1 -T > > pmcstat: ERROR: Cannot allocate system-mode pmc with specification "OFF= _CORE_RESPONSE_0,rsp=3DREQ_DMND_DATA_RD+RES_ANY": Invalid argument > > > > # pmcstat -n2000000 -S INSTR_RETIRED_ANY -w4 -T > > pmcstat: ERROR: Cannot allocate system-mode pmc with specification "INS= TR_RETIRED_ANY": Invalid argument > > > > # pmcstat -n2000000 -S INSTR_RETIRED_ANY -w4 -T > > pmcstat: ERROR: Cannot allocate system-mode pmc with specification "INS= TR_RETIRED_ANY": Invalid argument > > > > # pmcstat -SPAGE_FAULT.ALL -w4 -T > > (This one seems to work correctly > > > > # pmcstat -SOFF_CORE_RESPONSE_0,rsp=3DREQ_DMND_DATA_RD+RES_ANY -n200000= 0 -SCPU_CLK_UNHALTED.THREAD_P -n2000000 -S INSTR_RETIRED_ANY -SPAGE_FAULT > > pmcstat: ERROR: Cannot allocate system-mode pmc with specification "OFF= _CORE_RESPONSE_0,rsp=3DREQ_DMND_DATA_RD+RES_ANY": Invalid argument > > >=20 > Are you running this test on real hardware or are you using an hypervisor? >=20 > > The pmctest.py fails: > > # ./test/hwpmc/pmctest.py > > Traceback (most recent call last): > > File "./test/hwpmc/pmctest.py", line 94, in > > main() > > File "./test/hwpmc/pmctest.py", line 81, in main > > stdout=3DPIPE) > > File "/usr/local/lib/python2.7/subprocess.py", line 679, in __init__ > > errread, errwrite) > > File "/usr/local/lib/python2.7/subprocess.py", line 1249, in _execute= _child > > raise child_exception > > TypeError: execv() arg 2 must contain only strings > > > > > > regards, > > Bapt >=20 > Yes, this is expected. You should specify a program that should be > executed (to make measurements on it). I used to use 'ls' on my tests, > using -p. >=20 > Davide ./test/hwpmc/pmctest.py -p ls pmcstat: ERROR: Cannot allocate process-mode pmc with specification "SOFT": Invalid argument In that case. Sorry I don't know anything about pmc, just willing to help testing :) regards, Bapt --Cp3Cp8fzgozWLBWL Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlBGeOAACgkQ8kTtMUmk6ExPQQCgpmRPvKU9eSMCfpWhf1q4regm j1sAn3h2Awl1+I4Hp4bmKOIK4dyeFFYl =v4sk -----END PGP SIGNATURE----- --Cp3Cp8fzgozWLBWL--