From owner-freebsd-current@FreeBSD.ORG Tue Sep 4 13:33:30 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 433C8106564A; Tue, 4 Sep 2012 13:33:30 +0000 (UTC) (envelope-from davide.italiano@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id CD5418FC14; Tue, 4 Sep 2012 13:33:29 +0000 (UTC) Received: by vbmv11 with SMTP id v11so8642058vbm.13 for ; Tue, 04 Sep 2012 06:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ox0rklEFi1TX/qj2x59HK4+CLASme1LIukTxR9jlBFM=; b=uFe5UFrxdn4AzOnWes2eZEC9czrrgjR3HDN8bORCQamdwyZzlxqyYz1dyOSF2SOkMn Cs7VJF1Kh4YlLbW1agyOYk2a+hlx1Neiue2ywmwxDe7iSuhSu7ZIc3KoYwgC5XCza/vj VLzkabd3+02fu4IqND306MSLTZbf3Tfg3Yxy7SUbPIDV8PY5J06sJrN1QqMhIVTdulZo 2ZeCJhUa4NiR+VEvkAHXRt5sKlTpeyCp73APEkQtVkoWfTiWWqTSKPwO+T6VCg427Mhr v93KEaAFbf2FuUcrc+BQsG1MYAlTqSDOCyHqdA2PpMpPMpH6vNCki6OhT4yF+OrrsO0g bPpA== MIME-Version: 1.0 Received: by 10.52.66.2 with SMTP id b2mr12068440vdt.92.1346765603305; Tue, 04 Sep 2012 06:33:23 -0700 (PDT) Sender: davide.italiano@gmail.com Received: by 10.58.55.230 with HTTP; Tue, 4 Sep 2012 06:33:23 -0700 (PDT) In-Reply-To: <60A32BCE-756A-4A0D-A24D-7AC42F71BD1A@netasq.com> References: <0D822C75-7240-42E3-8780-18CABC9C45A1@netasq.com> <20120903212340.GE88081@ithaqua.etoilebsd.net> <60A32BCE-756A-4A0D-A24D-7AC42F71BD1A@netasq.com> Date: Tue, 4 Sep 2012 15:33:23 +0200 X-Google-Sender-Auth: JwtU-UnYFOsIHLFmc9JVlXo_6Xk Message-ID: From: Davide Italiano To: Fabien Thomas Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Baptiste Daroussin , 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 13:33:30 -0000 On Tue, Sep 4, 2012 at 9:35 AM, Fabien Thomas wr= ote: > > 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, >>> >>> 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. >>> >>> 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 >>> >>> http://people.freebsd.org/~fabient/patch-hwpmc_ivy_bridge_head >>> >>> cd /usr/src && patch -p0 < patch-hwpmc_ivy_bridge_head >>> and rebuild world. >>> >>> >>> Fabien >> >> World building, I'll keep you in touch >> >> 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 -S= CPU_CLK_UNHALTED.THREAD_P -n2000000 -S INSTR_RETIRED_ANY -SPAGE_FAULT.ALL= -w1 -T > > > all events are described in the man page pmc.ivybridge > > >> >> regards, >> Bapt > I suggest you to run the script you can find in /head/tools/test/hwpmc/pmctest.py , courtesy of gnn@. Thanks Davide