All of lore.kernel.org
 help / color / mirror / Atom feed
* [Powertop] [powertop] ::wiggle() - what does that do?
@ 2013-03-19 19:51 Ivan Shapovalov
  0 siblings, 0 replies; 5+ messages in thread
From: Ivan Shapovalov @ 2013-03-19 19:51 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

Hello all,

I've been wondering on what does the abstract_cpu::wiggle() function does and 
why it is needed?.. All the code says is that it is needed to "have a record 
of CPU at the start and end of the perf trace".

I'm asking just because I feel somewhat uncomfortable to have powertop 
changing my scaling frequency back and forth each N seconds. :)

Thanks,
- Ivan

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

* Re: [Powertop] [powertop] ::wiggle() - what does that do?
@ 2013-03-19 19:53 Arjan van de Ven
  0 siblings, 0 replies; 5+ messages in thread
From: Arjan van de Ven @ 2013-03-19 19:53 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 681 bytes --]

On 3/19/2013 12:51 PM, Ivan Shapovalov wrote:
> Hello all,
>
> I've been wondering on what does the abstract_cpu::wiggle() function does and
> why it is needed?.. All the code says is that it is needed to "have a record
> of CPU at the start and end of the perf trace".
>
> I'm asking just because I feel somewhat uncomfortable to have powertop
> changing my scaling frequency back and forth each N seconds. :)

the reason this exists is that powertop wants to track what frequency the cpu is at for the duration...
... and there's no way to ask for "current", only to get change notifications

so wiggle() forces a change... and from then on we know what it's at.


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

* Re: [Powertop] [powertop] ::wiggle() - what does that do?
@ 2013-03-19 19:57 Ivan Shapovalov
  0 siblings, 0 replies; 5+ messages in thread
From: Ivan Shapovalov @ 2013-03-19 19:57 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 942 bytes --]

On 19 March 2013 12:53:26 Arjan van de Ven wrote:
> On 3/19/2013 12:51 PM, Ivan Shapovalov wrote:
> > Hello all,
> > 
> > I've been wondering on what does the abstract_cpu::wiggle() function does
> > and why it is needed?.. All the code says is that it is needed to "have a
> > record of CPU at the start and end of the perf trace".
> > 
> > I'm asking just because I feel somewhat uncomfortable to have powertop
> > changing my scaling frequency back and forth each N seconds. :)
> 
> the reason this exists is that powertop wants to track what frequency the
> cpu is at for the duration... ... and there's no way to ask for "current",
> only to get change notifications
> 
> so wiggle() forces a change... and from then on we know what it's at.

...And why isn't it possible to keep the value from last notification?
Because time can pass between measurement end and new measurement start?

Sorry for stupid questions.

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

* Re: [Powertop] [powertop] ::wiggle() - what does that do?
@ 2013-03-19 19:58 Arjan van de Ven
  0 siblings, 0 replies; 5+ messages in thread
From: Arjan van de Ven @ 2013-03-19 19:58 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]

On 3/19/2013 12:57 PM, Ivan Shapovalov wrote:
> On 19 March 2013 12:53:26 Arjan van de Ven wrote:
>> On 3/19/2013 12:51 PM, Ivan Shapovalov wrote:
>>> Hello all,
>>>
>>> I've been wondering on what does the abstract_cpu::wiggle() function does
>>> and why it is needed?.. All the code says is that it is needed to "have a
>>> record of CPU at the start and end of the perf trace".
>>>
>>> I'm asking just because I feel somewhat uncomfortable to have powertop
>>> changing my scaling frequency back and forth each N seconds. :)
>>
>> the reason this exists is that powertop wants to track what frequency the
>> cpu is at for the duration... ... and there's no way to ask for "current",
>> only to get change notifications
>>
>> so wiggle() forces a change... and from then on we know what it's at.
>
> ...And why isn't it possible to keep the value from last notification?

there may not have been one...

> Because time can pass between measurement end and new measurement start?

yep



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

* Re: [Powertop] [powertop] ::wiggle() - what does that do?
@ 2013-03-19 20:00 Ivan Shapovalov
  0 siblings, 0 replies; 5+ messages in thread
From: Ivan Shapovalov @ 2013-03-19 20:00 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]

On 19 March 2013 12:58:49 Arjan van de Ven wrote:
> On 3/19/2013 12:57 PM, Ivan Shapovalov wrote:
> > On 19 March 2013 12:53:26 Arjan van de Ven wrote:
> >> On 3/19/2013 12:51 PM, Ivan Shapovalov wrote:
> >>> Hello all,
> >>> 
> >>> I've been wondering on what does the abstract_cpu::wiggle() function
> >>> does
> >>> and why it is needed?.. All the code says is that it is needed to "have
> >>> a
> >>> record of CPU at the start and end of the perf trace".
> >>> 
> >>> I'm asking just because I feel somewhat uncomfortable to have powertop
> >>> changing my scaling frequency back and forth each N seconds. :)
> >> 
> >> the reason this exists is that powertop wants to track what frequency the
> >> cpu is at for the duration... ... and there's no way to ask for
> >> "current",
> >> only to get change notifications
> >> 
> >> so wiggle() forces a change... and from then on we know what it's at.
> > 
> > ...And why isn't it possible to keep the value from last notification?
> 
> there may not have been one...
> 
> > Because time can pass between measurement end and new measurement start?
> 
> yep

Thanks. It's clear to me now.

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

end of thread, other threads:[~2013-03-19 20:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-19 19:58 [Powertop] [powertop] ::wiggle() - what does that do? Arjan van de Ven
  -- strict thread matches above, loose matches on Subject: below --
2013-03-19 20:00 Ivan Shapovalov
2013-03-19 19:57 Ivan Shapovalov
2013-03-19 19:53 Arjan van de Ven
2013-03-19 19:51 Ivan Shapovalov

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.