All of lore.kernel.org
 help / color / mirror / Atom feed
From: Igor Zhbanov <i.zhbanov at samsung.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] Query: Weird Output values: Percentage over 100%
Date: Tue, 04 Sep 2012 11:30:50 +0400	[thread overview]
Message-ID: <5045AE2A.7000302@samsung.com> (raw)
In-Reply-To: 5044F182.8010407@linux.intel.com

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

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


             reply	other threads:[~2012-09-04  7:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-04  7:30 Igor Zhbanov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-09-04 12:37 [Powertop] Query: Weird Output values: Percentage over 100% Sergey Senozhatsky
2012-09-03 18:05 Arjan van de Ven
2012-09-03 17:57 Sergey Senozhatsky
2012-09-03 17:37 Arjan van de Ven
2012-09-03 17:20 Sergey Senozhatsky
2012-09-03  6:54 viresh kumar
2012-08-29  8:09 viresh kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5045AE2A.7000302@samsung.com \
    --to=powertop@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.