From owner-freebsd-current@FreeBSD.ORG Tue Sep 4 07:35:11 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 4965C1065675; Tue, 4 Sep 2012 07:35:11 +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 3A9288FC12; Tue, 4 Sep 2012 07:35:10 +0000 (UTC) Received: from [10.2.1.1] (unknown [10.2.1.1]) by work.netasq.com (Postfix) with ESMTPSA id 111C9270420F; Tue, 4 Sep 2012 09:35:09 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: multipart/signed; boundary="Apple-Mail=_78EA6D67-D133-4FFF-B040-990090390179"; protocol="application/pkcs7-signature"; micalg=sha1 From: Fabien Thomas In-Reply-To: <20120903212340.GE88081@ithaqua.etoilebsd.net> Date: Tue, 4 Sep 2012 09:35:07 +0200 Message-Id: <60A32BCE-756A-4A0D-A24D-7AC42F71BD1A@netasq.com> References: <0D822C75-7240-42E3-8780-18CABC9C45A1@netasq.com> <20120903212340.GE88081@ithaqua.etoilebsd.net> To: Baptiste Daroussin X-Mailer: Apple Mail (2.1278) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Tue, 04 Sep 2012 07:35:11 -0000 --Apple-Mail=_78EA6D67-D133-4FFF-B040-990090390179 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Le 3 sept. 2012 =E0 23:23, Baptiste Daroussin a =E9crit : > On Mon, Sep 03, 2012 at 02:04:21PM +0200, Fabien Thomas wrote: >> Hi, >>=20 >> Find a patch that add Intel Ivy Bridge support to hwpmc(9). >> The patch also support offcore RSP token for Sandy Bridge. >> Note: No uncore support. >>=20 >> Tested on: >> Intel(R) Xeon(R) CPU E3-1265L V2 @ 2.50GHz (2494.35-MHz K8-class CPU) >> Origin =3D "GenuineIntel" Id =3D 0x306a9 Family =3D 6 Model =3D 3a = Stepping =3D 9 >>=20 >> http://people.freebsd.org/~fabient/patch-hwpmc_ivy_bridge_head >>=20 >> cd /usr/src && patch -p0 < patch-hwpmc_ivy_bridge_head=20 >> and rebuild world. >>=20 >>=20 >> Fabien >=20 > World building, I'll keep you in touch >=20 > Is there any particulat testing, I can do other than using the new = world? Thanks for testing! Yes you can test it quickly using top mode for example: kldload hwpmc pmccontrol -L to list all events some test: - offcore pmcstat -SOFF_CORE_RESPONSE_0,rsp=3DREQ_DMND_DATA_RD+RES_ANY -w1 -T - unhalted cycle (programmable counter) pmcstat -n2000000 -SCPU_CLK_UNHALTED.THREAD_P -w4 -T - INSTR_RETIRED_ANY (fixed counter) pmcstat -n2000000 -S INSTR_RETIRED_ANY -w4 -T - Soft counter: pmcstat -SPAGE_FAULT.ALL -w4 -T all at the same time (and change view by pressing 'p': 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.ALL -w1 -T all events are described in the man page pmc.ivybridge >=20 > regards, > Bapt --Apple-Mail=_78EA6D67-D133-4FFF-B040-990090390179--