All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rajagopal Venkat <rajagopal.venkat at linaro.org>
To: powertop@lists.01.org
Subject: Re: [Powertop] [PATCH] Fix timer and work perf events timestamp tracing
Date: Thu, 06 Sep 2012 19:12:32 +0530	[thread overview]
Message-ID: <CA+Z25wX6CkgLbKwKw6yei2i=R1AawdkEY0UWgjWDwuv9BLu=oQ@mail.gmail.com> (raw)
In-Reply-To: 504794AC.9040305@linux.intel.com

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

On 5 September 2012 23:36, Arjan van de Ven <arjan(a)linux.intel.com> wrote:
> On 9/5/2012 10:45 AM, Rajagopal Venkat wrote:
>> On 5 September 2012 22:52, Arjan van de Ven <arjan(a)linux.intel.com> wrote:
>>> On 9/5/2012 10:19 AM, Rajagopal Venkat wrote:
>>>> On 5 September 2012 22:39, Arjan van de Ven <arjan(a)linux.intel.com> wrote:
>>>>> On 9/5/2012 9:56 AM, Rajagopal Venkat wrote:
>>>>>>> measure1:
>>>>>>> ev3.start
>>>>>>> ev1.end  <<<<<
>>>>>>
>>>>>> evX.end  <<<<<
>>>>>> These events are causing numbers to go wrong.
>>>>>
>>>>> but out of a 20 second window.. this is a tiny tiny window...
>>>>> if you see 100.1% I'd buy this reasoning.
>>>>> but you're seeing much more than that.
>>>>
>>>> How about generating a report for 1sec duration?
>>>
>>> even for 1 second... still it's miniscule compared to this whole 1 second
>>> the amount of setup/teardown time just is not that huge.
>>>
>> Here are some perf timestamps,
>> (3979299431)
>> (3979303554)
>> (4079217947)
>> (4091306943)
>> (4091322535)
>> (4091336882)
>> When 1sec report is generated and if above timestamp gets
>> added to timer accumulated_runtime, no wonder why such
>> huge usage is reported.
>
> question is... how did these get here?
> is the kernel reporting garbage time ????
>
>
oops wrong numbers! Here is the data captured for timer::delayed_work_timer_fn
events on snowball. Prints are from timer::done() of src/process/timer.cpp.

----------------------------------------------------------------------------------------
Measurement start time(first_stamp)  - (4379576721191)
Measurement end time(last_stamp)   - (4380607421874)

accumulated         end_timestamp  	     start_timestamp
runtime
(61035)               (4379586975097)		(4379586914062)
(122071)	      (4379607116699)		(4379607055663)
(152589)	      (4379607177734)		(4379607147216)
(183106)	      (4379627105712)		(4379627075195)
(244142)	      (4379647186279)		(4379647125243)
(274660)	      (4380506896972)		(4380506866454)
(274660)	      (4380506927490)		(4380506927490)
(305177)	      (4380506958007)		(4380506927490)
(305177)	      (4380506988525)		(4380506988525)
(4380507324219)       (4380507019042)		(0)    <<<<<<<
(4380507354736)       (4380596923827)		(4380596893310)
(4380507415771)       (4380606964111)		(4380606903076)

cpu usage from total_cpu_time() - (425033.990889%)
------------------------------------------------------------------------------

As mentioned in my earlier comments, next patch will be submitted
to handle these events(for which start time is not recorded) instead
of ignoring them.

-- 
Regards,
Rajagopal

             reply	other threads:[~2012-09-06 13:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-06 13:42 Rajagopal Venkat [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-09-06 13:51 [Powertop] [PATCH] Fix timer and work perf events timestamp tracing Arjan van de Ven
2012-09-05 18:06 Arjan van de Ven
2012-09-05 17:45 Rajagopal Venkat
2012-09-05 17:22 Arjan van de Ven
2012-09-05 17:19 Rajagopal Venkat
2012-09-05 17:09 Arjan van de Ven
2012-09-05 16:56 Rajagopal Venkat
2012-09-05 15:12 Chris Ferron
2012-09-05 12:44 Sergey Senozhatsky
2012-09-05 11:28 Viresh Kumar
2012-09-05 10:22 Rajagopal Venkat

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='CA+Z25wX6CkgLbKwKw6yei2i=R1AawdkEY0UWgjWDwuv9BLu=oQ@mail.gmail.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.