All of lore.kernel.org
 help / color / mirror / Atom feed
* Use case for PERF_COUNT_HW_REF_CPU_CYCLES generic PMU event
@ 2012-02-08  9:43 Anshuman Khandual
  2012-02-08  9:51 ` Stephane Eranian
  0 siblings, 1 reply; 4+ messages in thread
From: Anshuman Khandual @ 2012-02-08  9:43 UTC (permalink / raw)
  To: Stephane Eranian; +Cc: linux-kernel, peterz, mingo

Hello Stephane, 

I was going through the following discussion where we added the
new HW generic event PERF_COUNT_HW_REF_CPU_CYCLES.

https://lkml.org/lkml/2011/12/10/103 

(Sorry, for asking this question bit late)

I am trying to understand the use case for this. Would this new event
help us in generating (during a perf session) a CPU frequency invariant
time metric against which we would plot our other perf event's measurements ?
CPU frequency independent time measurement is it's primary purpose ? or we were
finding a way to expose the fixed counter 2 which was not getting used before 
for not having an event encoding. I guess this would help us in finding equivalent
PMU events or mechanisms in other architecture / platforms.

-- 
Anshuman Khandual
Linux Technology Centre
IBM Systems and Technology Group


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Use case for PERF_COUNT_HW_REF_CPU_CYCLES generic PMU event
  2012-02-08  9:43 Use case for PERF_COUNT_HW_REF_CPU_CYCLES generic PMU event Anshuman Khandual
@ 2012-02-08  9:51 ` Stephane Eranian
  2012-02-08 10:51   ` Anshuman Khandual
  0 siblings, 1 reply; 4+ messages in thread
From: Stephane Eranian @ 2012-02-08  9:51 UTC (permalink / raw)
  To: Anshuman Khandual; +Cc: linux-kernel, peterz, mingo

On Wed, Feb 8, 2012 at 10:43 AM, Anshuman Khandual
<khandual@linux.vnet.ibm.com> wrote:
> Hello Stephane,
>
> I was going through the following discussion where we added the
> new HW generic event PERF_COUNT_HW_REF_CPU_CYCLES.
>
> https://lkml.org/lkml/2011/12/10/103
>
> (Sorry, for asking this question bit late)
>
> I am trying to understand the use case for this. Would this new event
> help us in generating (during a perf session) a CPU frequency invariant
> time metric against which we would plot our other perf event's measurements ?
> CPU frequency independent time measurement is it's primary purpose ? or we were
> finding a way to expose the fixed counter 2 which was not getting used before
> for not having an event encoding. I guess this would help us in finding equivalent
> PMU events or mechanisms in other architecture / platforms.
>
The goal was to expose a cycle event that is not subject to frequency scaling
nor turbo boost of any sort. An event that could be used to correlate with time.
An event that could also be used to compute idle time by comparing its value
with wall-clock time.

The fact that on Intel X86 this event is on fixed counter 2 is an
implementation
detail.

> --
> Anshuman Khandual
> Linux Technology Centre
> IBM Systems and Technology Group
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Use case for PERF_COUNT_HW_REF_CPU_CYCLES generic PMU event
  2012-02-08  9:51 ` Stephane Eranian
@ 2012-02-08 10:51   ` Anshuman Khandual
  2012-02-08 11:08     ` Stephane Eranian
  0 siblings, 1 reply; 4+ messages in thread
From: Anshuman Khandual @ 2012-02-08 10:51 UTC (permalink / raw)
  To: Stephane Eranian; +Cc: linux-kernel, peterz, mingo

On Wednesday 08 February 2012 03:21 PM, Stephane Eranian wrote:
> On Wed, Feb 8, 2012 at 10:43 AM, Anshuman Khandual
> <khandual@linux.vnet.ibm.com> wrote:
>> Hello Stephane,
>>
>> I was going through the following discussion where we added the
>> new HW generic event PERF_COUNT_HW_REF_CPU_CYCLES.
>>
>> https://lkml.org/lkml/2011/12/10/103
>>
>> (Sorry, for asking this question bit late)
>>
>> I am trying to understand the use case for this. Would this new event
>> help us in generating (during a perf session) a CPU frequency invariant
>> time metric against which we would plot our other perf event's measurements ?
>> CPU frequency independent time measurement is it's primary purpose ? or we were
>> finding a way to expose the fixed counter 2 which was not getting used before
>> for not having an event encoding. I guess this would help us in finding equivalent
>> PMU events or mechanisms in other architecture / platforms.
>>
> The goal was to expose a cycle event that is not subject to frequency scaling
> nor turbo boost of any sort. An event that could be used to correlate with time.

> An event that could also be used to compute idle time by comparing its value
> with wall-clock time.

Why kernel computed idle time is not sufficient ? How much accuracy would it
improve in using PMU event computed idle time over kernel computed idle time. 


> 
> The fact that on Intel X86 this event is on fixed counter 2 is an
> implementation
> detail.
> 
>> --
>> Anshuman Khandual
>> Linux Technology Centre
>> IBM Systems and Technology Group
>>
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Use case for PERF_COUNT_HW_REF_CPU_CYCLES generic PMU event
  2012-02-08 10:51   ` Anshuman Khandual
@ 2012-02-08 11:08     ` Stephane Eranian
  0 siblings, 0 replies; 4+ messages in thread
From: Stephane Eranian @ 2012-02-08 11:08 UTC (permalink / raw)
  To: Anshuman Khandual; +Cc: linux-kernel, peterz, mingo

On Wed, Feb 8, 2012 at 11:51 AM, Anshuman Khandual
<khandual@linux.vnet.ibm.com> wrote:
> On Wednesday 08 February 2012 03:21 PM, Stephane Eranian wrote:
>> On Wed, Feb 8, 2012 at 10:43 AM, Anshuman Khandual
>> <khandual@linux.vnet.ibm.com> wrote:
>>> Hello Stephane,
>>>
>>> I was going through the following discussion where we added the
>>> new HW generic event PERF_COUNT_HW_REF_CPU_CYCLES.
>>>
>>> https://lkml.org/lkml/2011/12/10/103
>>>
>>> (Sorry, for asking this question bit late)
>>>
>>> I am trying to understand the use case for this. Would this new event
>>> help us in generating (during a perf session) a CPU frequency invariant
>>> time metric against which we would plot our other perf event's measurements ?
>>> CPU frequency independent time measurement is it's primary purpose ? or we were
>>> finding a way to expose the fixed counter 2 which was not getting used before
>>> for not having an event encoding. I guess this would help us in finding equivalent
>>> PMU events or mechanisms in other architecture / platforms.
>>>
>> The goal was to expose a cycle event that is not subject to frequency scaling
>> nor turbo boost of any sort. An event that could be used to correlate with time.
>
>> An event that could also be used to compute idle time by comparing its value
>> with wall-clock time.
>
> Why kernel computed idle time is not sufficient ? How much accuracy would it
> improve in using PMU event computed idle time over kernel computed idle time.
>
I was just listing the what you could do with the event. I have not
yet tried to measure
idle with ref-cycles.

>
>>
>> The fact that on Intel X86 this event is on fixed counter 2 is an
>> implementation
>> detail.
>>
>>> --
>>> Anshuman Khandual
>>> Linux Technology Centre
>>> IBM Systems and Technology Group
>>>
>>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-08 11:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-08  9:43 Use case for PERF_COUNT_HW_REF_CPU_CYCLES generic PMU event Anshuman Khandual
2012-02-08  9:51 ` Stephane Eranian
2012-02-08 10:51   ` Anshuman Khandual
2012-02-08 11:08     ` Stephane Eranian

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.