mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Davide Libenzi <davidel@xmailserver.org>
To: Rick Lindsley <ricklind@us.ibm.com>
Cc: akpm@osdl.org, kernel@kolivas.org, piggin@cyberone.com.au,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] schedstat-2.6.0-test5-A1 measuring process scheduling latency
Date: Thu, 11 Sep 2003 18:08:02 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.56.0309111803270.1889@bigblue.dev.mdolabs.com> (raw)
In-Reply-To: <200309112235.h8BMZcM03839@owlet.beaverton.ibm.com>

On Thu, 11 Sep 2003, Rick Lindsley wrote:

> All the tweaking of the scheduler for interactive processes is still
> rather reliant on "when I run X, Y, and Z, and wiggle the mouse, it feels
> slower."  At best, we might get a more concrete "the music skips every
> now and then."  It's very hard to develop changes for an environment I
> don't have in front of me and can't ever seem to precisely duplicate.
>
> It's my contention that what we're seeing is scheduler latency: processes
> want to run but end up waiting for some period of time.  There's currently
> no way to capture that short of the descriptions above.  This patch adds
> counters at various places to measure, among other things, the scheduler
> latency.  That is, we can now measure the time processes spend waiting
> to run after being made runnable.  We can also see on average how long
> a process runs before giving up (or being kicked off) the cpu.

When I was working on it, I wrote a patch that at every context switch
used to register cycle counter timestamp, pid and other things (this per
CPU), with the number of samples configurable. This helped me a lot not
only to understand latencies, but also process migrations (usefull for
balancing thingies). There was a /dev/something where you could collect
samples and analyze them. It'd nice to have something like that for 2.6.



- Davide


      parent reply	other threads:[~2003-09-12  1:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-11 22:35 Rick Lindsley
2003-09-12  0:39 ` Peter Chubb
2003-09-12  1:02   ` Rick Lindsley
2003-09-12  1:48     ` Peter Chubb
2003-09-12  2:01     ` Peter Chubb
2003-09-12  3:21       ` Peter Chubb
2003-09-12  1:08 ` Davide Libenzi [this message]

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=Pine.LNX.4.56.0309111803270.1889@bigblue.dev.mdolabs.com \
    --to=davidel@xmailserver.org \
    --cc=akpm@osdl.org \
    --cc=kernel@kolivas.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=piggin@cyberone.com.au \
    --cc=ricklind@us.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

all inboxes | Powered by JetHome®