pcp
[Top] [All Lists]

Re: [pcp] Installing perfevents on Ubuntu 14.04

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] Installing perfevents on Ubuntu 14.04
From: Renan DelValle <rdelval1@xxxxxxxxxxxxxx>
Date: Tue, 7 Apr 2015 22:12:06 -0400
Cc: Joseph White <jpwhite4@xxxxxxxxxxx>, pcp@xxxxxxxxxxx, Madhusudhan Govindaraju <mgovinda@xxxxxxxxxxxxxx>, Jessica L Hartog <jhartog1@xxxxxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1292025640.13182460.1428377292321.JavaMail.zimbra@xxxxxxxxxx>
References: <CAJ1-toej4gDfpaf7k625ATR-G22=1bs61kWi9wwD+JrR7jwfKg@xxxxxxxxxxxxxx> <1292025640.13182460.1428377292321.JavaMail.zimbra@xxxxxxxxxx>
Hi Nathan,

Thanks for the reply. I was able to get in touch with Joe White a day
or two ago and he told me to do the same thing which allowed me to at
least install it.
Since the version of PCP in the Ubuntu 14.04 repository is an earlier
version that did not include perfevent I had to install from source.

So now the next biggest hurdle is the fact that the servers CPUs we
have are Haswell-EP based.
Although the newest libpfm4 supports Haswell-EP, unfortunately, the
linux kernel (even the mainline) doesn't detect this processor model
(63) as having RAPL support.
Thus to get the intel_rapl module in the kernel to detect that the
Haswell-EP support, one has to modify the kernel and recompile it to
support the processor model, otherwise perf events for RAPL will not
be activated.

To complicate things a bit more, Intel changed some things about RAPL
for Haswell. They removed the ability to get energy per core
(https://software.intel.com/fr-fr/forums/topic/542271) and have set
unit of measurements for some domains to be static
(https://software.intel.com/en-us/forums/topic/535025).

Jacob Pan has submitted a patch for the latter which has made it into
the mainline kernel. (https://lkml.org/lkml/2015/3/20/582)

Hopefully this helps someone else trying to get PCP to work with
Haswell-EP server processors.

-Renan

On Mon, Apr 6, 2015 at 11:28 PM, Nathan Scott <nathans@xxxxxxxxxx> wrote:
> Hi Renan,
>
> ----- Original Message -----
>> Hi,
>>
>> I've installed PCP successfully through the apt package manager,
>> however, there is no folder "perfevent" inside of /var/lib/pcp/pdmas
>>
>> I've tried downloading, compiling, and installing 3.10.3 from github,
>> but the perfevent folder is still not included in the  $PCP_PMDAS_DIR
>> .
>
> You'll need the libpfm4-dev deb installed, otherwise building perfevent
> is switched off by configure.ac via...
>
>     AC_CHECK_LIB([pfm], [pfm_get_os_event_encoding],
>                  [pfm_libs="-lpfm"],
>                  [enable_perfevent=false])
>     AC_CHECK_HEADERS([perfmon/pfmlib_perf_event.h], [], 
> [enable_perfevent=false])
>
>
> (Joe, do you want to add packaging for this PMDA in debian/* to help out
> the punters?  See debian/pcp-pmda-infiniband* for an example, as well as
> the control and rules files below debian/).
>
> cheers.
>
> --
> Nathan

<Prev in Thread] Current Thread [Next in Thread>