From owner-freebsd-current@FreeBSD.ORG Wed Sep 5 07:33:56 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 0C7D91065676; Wed, 5 Sep 2012 07:33:56 +0000 (UTC) (envelope-from fabien.thomas@netasq.com) Received: from work.netasq.com (gwlille.netasq.com [91.212.116.1]) by mx1.freebsd.org (Postfix) with ESMTP id 501578FC08; Wed, 5 Sep 2012 07:33:55 +0000 (UTC) Received: from [10.2.1.1] (unknown [10.2.1.1]) by work.netasq.com (Postfix) with ESMTPSA id 8A4132704475; Wed, 5 Sep 2012 09:33:54 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: Fabien Thomas In-Reply-To: <20120904192320.GF88081@ithaqua.etoilebsd.net> Date: Wed, 5 Sep 2012 09:33:55 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <441C9DEC-517B-4991-A2F9-33E8080C0B19@netasq.com> 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> To: Baptiste Daroussin X-Mailer: Apple Mail (2.1278) Cc: freebsd-current 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: Wed, 05 Sep 2012 07:33:56 -0000 >=20 > Hi, >=20 > here are the results >=20 > # pmccontrol -L > SOFT > CLOCK.STAT > CLOCK.HARD > LOCK.FAILED > PAGE_FAULT.WRITE > PAGE_FAULT.READ > PAGE_FAULT.ALL >=20 Seems that the CPU was not detected can you dump the dmesg with CPU: = section ?=20 As Davide ask, if you are in a VM pmc are not usable in the virtualized = HW. > # 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 >=20 > # pmcstat -n2000000 -S INSTR_RETIRED_ANY -w4 -T > pmcstat: ERROR: Cannot allocate system-mode pmc with specification = "INSTR_RETIRED_ANY": Invalid argument >=20 > # pmcstat -n2000000 -S INSTR_RETIRED_ANY -w4 -T > pmcstat: ERROR: Cannot allocate system-mode pmc with specification = "INSTR_RETIRED_ANY": Invalid argument >=20 > # pmcstat -SPAGE_FAULT.ALL -w4 -T > (This one seems to work correctly >=20 > # pmcstat -SOFF_CORE_RESPONSE_0,rsp=3DREQ_DMND_DATA_RD+RES_ANY = -n2000000 -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 > The pmctest.py fails:=20 > # ./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 >=20 >=20 > regards, > Bapt