linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Friesen <cfriesen@nortel.com>
To: "Patrik Hägglund" <patrik.hagglund@bredband.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: SCHED_RR/SCHED_FIFO and kernel threads?
Date: Thu, 16 Jun 2005 09:48:53 -0600	[thread overview]
Message-ID: <42B19F65.6000102@nortel.com> (raw)
In-Reply-To: <42B199FF.5010705@bredband.net>

Patrik Hägglund wrote:

> Kernel threads seems to generally be scheduled in the SCHED_OTHER class 
> (with the 'migration' thread as an exception).

This is on purpose.  The idea is that realtime processes get all the 
time they request.  If the kernel threads are interrupting the realtime 
app, then the latency of the realtime app is degraded.

> As I see it, "kernel activity" shall not be starved by user-space 
> processes. Therefore, I was very suprised by this behaviour when I saw 
> it in 2.6.11.

If you want specific kernel threads to take priority, you can always 
manually make then SCHED_RR/SCHED_FIFO yourself.

Chris

  reply	other threads:[~2005-06-16 15:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-16 15:25 SCHED_RR/SCHED_FIFO and kernel threads? Patrik Hägglund
2005-06-16 15:48 ` Chris Friesen [this message]
2005-06-17  6:38   ` Patrik Hägglund
2005-06-17 12:37     ` Steven Rostedt
2005-06-18  8:14       ` Patrik Hägglund
2005-06-21 22:15         ` Patrik Hägglund
2005-06-21 22:18         ` Patrik Hägglund
2005-06-22  0:13           ` Lee Revell
2005-06-16 16:01 ` Lee Revell

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=42B19F65.6000102@nortel.com \
    --to=cfriesen@nortel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patrik.hagglund@bredband.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;
as well as URLs for NNTP newsgroup(s).