From owner-freebsd-current@FreeBSD.ORG Tue Sep 4 20:02:07 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 BFED8106566C; Tue, 4 Sep 2012 20:02:07 +0000 (UTC) (envelope-from davide.italiano@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 63A388FC14; Tue, 4 Sep 2012 20:02:07 +0000 (UTC) Received: by ggnk4 with SMTP id k4so1448244ggn.13 for ; Tue, 04 Sep 2012 13:02:06 -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; bh=jCgkL5oc2o9zXEfH+PG+TbRmqlOVivW8NxCsfClZirc=; b=sFBTSs4pIr35DkvPlAoYD4U+hvF6ytjZWSYLfDtMFZwMLCrfVZPMxd4WhCLJi8vc/C ndU37XX6KkeDTnlpMJS1ELb1sqnA6V0yUHvPQw5qpcXyM4SYsup1vTDSm6+M9P13eBI7 Xs3byazCrYNrwcCkXoz+4w3RYJdLsFFENqD5alDvpzepD62CkGc+8eHV4pIWDZFKBn8M ZNwzZomJu9iNQ6W89IpnfcZODVBlpq81oqscqrJ0zT7jN/GC8tvCorT40APrXWl8pl57 D3ZzlMX6ry5HpOb5FJsJY0R2w44gFf8Bt+KaqDALsbPtRfANblGTNF8qnroPCeYtQb1y b9yQ== MIME-Version: 1.0 Received: by 10.58.74.3 with SMTP id p3mr3176vev.27.1346788926546; Tue, 04 Sep 2012 13:02:06 -0700 (PDT) Sender: davide.italiano@gmail.com Received: by 10.58.55.230 with HTTP; Tue, 4 Sep 2012 13:02:06 -0700 (PDT) In-Reply-To: <20120904192320.GF88081@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> Date: Tue, 4 Sep 2012 22:02:06 +0200 X-Google-Sender-Auth: BS1DuUPfjlNrcJ64gwcPn24ZA4c Message-ID: From: Davide Italiano To: Baptiste Daroussin Content-Type: text/plain; charset=ISO-8859-1 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 20:02:07 -0000 [trimming old mails] > > 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=REQ_DMND_DATA_RD+RES_ANY -w1 -T > pmcstat: ERROR: Cannot allocate system-mode pmc with specification "OFF_CORE_RESPONSE_0,rsp=REQ_DMND_DATA_RD+RES_ANY": Invalid argument > > # pmcstat -n2000000 -S INSTR_RETIRED_ANY -w4 -T > pmcstat: ERROR: Cannot allocate system-mode pmc with specification "INSTR_RETIRED_ANY": Invalid argument > > # pmcstat -n2000000 -S INSTR_RETIRED_ANY -w4 -T > pmcstat: ERROR: Cannot allocate system-mode pmc with specification "INSTR_RETIRED_ANY": Invalid argument > > # pmcstat -SPAGE_FAULT.ALL -w4 -T > (This one seems to work correctly > > # pmcstat -SOFF_CORE_RESPONSE_0,rsp=REQ_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=REQ_DMND_DATA_RD+RES_ANY": Invalid argument > Are you running this test on real hardware or are you using an hypervisor? > 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=PIPE) > 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 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. Davide