From: Peter Zijlstra <peterz@infradead.org>
To: Ankita Garg <ankita@in.ibm.com>
Cc: Gregory Haskins <ghaskins@novell.com>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
rostedt@goodmis.org, suresh.b.siddha@intel.com,
aneesh.kumar@linux.vnet.ibm.com, dhaval@linux.vnet.ibm.com,
vatsa@linux.vnet.ibm.com, David Bahi <DBahi@novell.com>
Subject: Re: [ANNOUNCE] sched: schedtop utility
Date: Mon, 02 Jun 2008 15:07:31 +0200 [thread overview]
Message-ID: <1212412051.6269.5.camel@lappy.programming.kicks-ass.net> (raw)
In-Reply-To: <20080602124822.GA15410@in.ibm.com>
On Mon, 2008-06-02 at 18:18 +0530, Ankita Garg wrote:
> Hi Gregory,
>
> On Thu, May 22, 2008 at 08:06:44AM -0600, Gregory Haskins wrote:
> > Hi all scheduler developers,
> > I had an itch to scratch w.r.t. watching the stats in /proc/schedstats, and it appears that the perl scripts referenced in Documentation/scheduler/sched-stats.txt do not support v14 from HEAD so I whipped up a little utility I call "schedtop".
> >
>
> Nice tool! Helps in better visualization of the data in schedstats.
>
> Using the tool, realized that most of the timing related stats therein
> might not be completely usable in many scenarios, as might already be
> known.
>
> Without any additional load on the system, all the stats are nice and
> sane. But, as soon as I ran my particular testcase, the data
> pertaining to the delta of run_delay/cpu_time went haywire! I understand
> that all the values are based on top of rq->clock, which relies on tsc that
> is not synced across cpus and would result in skews/incorrect values.
> But, turns out to be not so reliable data for debugging. This is
> ofcourse nothing related to the tool, but for schedstat in
> general...rather just adding on to the already existing woes with non-syned
> tscs :-)
Thing is, things runtime should be calculated by using per cpu deltas.
You take a stamp when you get scheduled on the cpu and another one when
you stop running, then the delta is added to runtime.
This is always on the same cpu - when you get migrated you're stopped
and re-scheduled so that should work out nicely.
So in that sense it shouldn't matter that the rq->clock values can get
skewed between cpus.
So I'm still a little puzzled by your observations; though it could be
that the schedstat stuff got broken - I've never really looked too
closely at it.
next prev parent reply other threads:[~2008-06-02 13:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-22 14:06 Gregory Haskins
2008-05-22 14:33 ` Steven Rostedt
2008-06-02 12:48 ` Ankita Garg
2008-06-02 13:07 ` Peter Zijlstra [this message]
2008-06-02 13:20 ` Gregory Haskins
2008-06-05 5:20 ` Ankita Garg
2008-06-19 10:27 ` Peter Zijlstra
2008-07-01 9:00 ` Ankita Garg
2008-07-03 8:34 ` Ingo Molnar
2008-07-03 20:56 ` Peter Zijlstra
2008-10-21 16:29 ` Gregory Haskins
2008-06-03 3:21 ` [ANNOUNCE] sched: schedtop utility v0.3 Gregory Haskins
2008-06-17 12:18 ` [ANNOUNCE] sched: schedtop utility v0.5 Gregory Haskins
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=1212412051.6269.5.camel@lappy.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=DBahi@novell.com \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=ankita@in.ibm.com \
--cc=dhaval@linux.vnet.ibm.com \
--cc=ghaskins@novell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
--cc=suresh.b.siddha@intel.com \
--cc=vatsa@linux.vnet.ibm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome