public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: Con Kolivas <kernel@kolivas.org>, Wes Janzen <superchkn@sbcglobal.net>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] Re: Blender profiling-1 O16.2int
Date: Tue, 19 Aug 2003 04:39:59 -0400	[thread overview]
Message-ID: <200308190439.59273.rob@landley.net> (raw)
In-Reply-To: <200308191028.11109.kernel@kolivas.org>

On Monday 18 August 2003 20:28, Con Kolivas wrote:
> On Tue, 19 Aug 2003 10:14, Wes Janzen wrote:
> > I think this problem is exacerbated when another app is competing for
> > the processor.  The machine just pauses unless I'm also doing something
> > else, in this case compiling XINE.  Once something is competing, it
> > looks like X takes an extraordinarily long time to come back into the
> > running queue.
>
> Yes that is correct behaviour and to be expected.
>
> > Is there a way to figure out when a process is spinning on a wait and
>
> That's the trick isn't it? No there isn't or else I'd fix it in a jiffy. If
> someone can think of a way I'd love to know.

Well, in theory you could fiddle with its memory map and force it to 
soft-fault all its pages back in, and count the soft faults.  But I know just 
enough about that to suspect it's a rast nest of evil complexity and loss of 
orthogonality.

Another thing is if it's calling the same syscalls in sequence with the same 
arguments...  (What syscalls IS it calling?)

Looking at the profile list you gave earlier, schedule is showing up.  If the 
sucker's calling schedule in the loop, that should be a heck of a hint that 
it's busy-waiting, dontcha think?

As long as you've got a queue for each priority, how about having an "I called 
schedule" queue?  (Or can you re-queue it somewhere lower than its actual 
priority?  How about one queue lower than the queue was on when it called 
schedule, without necessarily changing its dynamic priority...)

What DOES calling "schedule" from userspace mean with the current scheduler?

Rob



  parent reply	other threads:[~2003-08-19 14:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030817003128.04855aed.voluspa@comhem.se>
     [not found] ` <200308171142.33131.kernel@kolivas.org>
     [not found]   ` <20030817073859.51021571.voluspa@comhem.se>
2003-08-17 13:36     ` [RFC] Re: Blender profiling-1 O16.2int Con Kolivas
2003-08-17 16:34       ` Con Kolivas
2003-08-18  0:30       ` William Lee Irwin III
2003-08-19  0:14       ` Wes Janzen
2003-08-19  0:28         ` Con Kolivas
2003-08-19  0:37           ` Richard A Nelson
2003-08-19  8:39           ` Rob Landley [this message]
2003-08-19  0:31         ` William Lee Irwin III
2003-08-19  0:58         ` Wes Janzen
     [not found] <20030818110001.6564.64238.Mailman@lists.us.dell.com>
2003-08-18 12:52 ` Max Hailperin
2003-08-18 13:05   ` Con Kolivas
2003-08-18 14:43   ` William Lee Irwin III
2003-08-26  2:54 Kester Maddock
2003-08-26  5:03 ` Con Kolivas

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=200308190439.59273.rob@landley.net \
    --to=rob@landley.net \
    --cc=kernel@kolivas.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=superchkn@sbcglobal.net \
    /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