Re: [Powertop] Query: Weird Output values: Percentage over 100%

Igor Zhbanov <i.zhbanov at samsung.com> Tue, 04 Sep 2012 11:30:50 +0400
Newsgroups dev.linux.lists.powertop
Message-ID <[email protected]>
Arjan van de Ven wrote:

> shouldn't... the buffers are quite large....

By the way, I just curious, why events processing are limited to 5000?
I mean the PowerTOP has f half-megabyte buffer for each type of events
but wishes to process only 5000 even if data is there?

void perf_event::process(void *cookie)
{
...
	while (pc->data_tail != pc->data_head && i++ < 5000) {
...

In the case of many cores sched:switch will be fired at least CONFIG_HZ * nr_cpus
times per second (as I understand), and that could easily be larger than 5000.
Especially when we measuring for several seconds.

-- 
Best regards,
Igor Zhbanov,
Expert Software Engineer,
phone: +7 (495) 797 25 00 ext 3806
e-mail: i.zhbanov(a)samsung.com

ASWG, Moscow R&D center, Samsung Electronics
12 Dvintsev street, building 1
127018, Moscow, Russian Federation