Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Sep 2012 09:33:55 +0200
From:      Fabien Thomas <fabien.thomas@netasq.com>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        freebsd-current <freebsd-current@FreeBSD.org>
Subject:   Re: [CFT] hwpmc support for Intel Ivy Bridge
Message-ID:  <441C9DEC-517B-4991-A2F9-33E8080C0B19@netasq.com>
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>

index | next in thread | previous in thread | raw e-mail

> 
> Hi,
> 
> here are the results
> 
> # pmccontrol -L
> SOFT
>        CLOCK.STAT
>        CLOCK.HARD
>        LOCK.FAILED
>        PAGE_FAULT.WRITE
>        PAGE_FAULT.READ
>        PAGE_FAULT.ALL
> 
Seems that the CPU was not detected can you dump the dmesg with CPU: section ? 
As Davide ask, if you are in a VM pmc are not usable in the virtualized HW.

> # 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
> 
> The pmctest.py fails: 
> # ./test/hwpmc/pmctest.py
> Traceback (most recent call last):
>  File "./test/hwpmc/pmctest.py", line 94, in <module>
>    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



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?441C9DEC-517B-4991-A2F9-33E8080C0B19>