All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Rigg <cdrigg@comcast.net>
To: Ingo Molnar <mingo@elte.hu>
Cc: Willy Tarreau <w@1wt.eu>, linux-kernel@vger.kernel.org
Subject: MAX_RT_PRIO - 1 Highest prio?
Date: Wed, 19 Sep 2007 17:20:27 -0600	[thread overview]
Message-ID: <46F1AEBB.6000809@comcast.net> (raw)
In-Reply-To: <20070918062606.GA5138@elte.hu>

Hello,

First, I'm assuming that if I want my task to have the HIGHEST priority 
in the system (i.e. preempt any other task whenever it is put into the 
ready queue (assuming I have preemption turned on/configured)), I use 
sched_setscheduler (...) and use the sched_priority in sched_param for 
MAX_RT_PRIO -1. Is this correct?

Second, assuming that MAX_RT_PRIO-1 is the highest, would it be bad on 
an SMP/Hyperthreading system (that's using the migration thread 
balancing in 2.6.20.7) to set a task's priority to MAX_RT_PRIO -1 given 
the fact that the migration threads are already set to MAX_RT_PRIO -1? 
Should I be setting my task's prio to MAX_RT_PRIO-2 to not interfere 
with the load balancing?

Thanks,
Chris


  reply	other threads:[~2007-09-19 23:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-17 20:33 CFS patch (v6) -- dynamic RT priorities? Chris Rigg
2007-09-18  5:00 ` Willy Tarreau
2007-09-18  6:26   ` Ingo Molnar
2007-09-19 23:20     ` Chris Rigg [this message]
2007-09-21  3:46       ` MAX_RT_PRIO - 1 Highest prio? Steven Rostedt

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=46F1AEBB.6000809@comcast.net \
    --to=cdrigg@comcast.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=w@1wt.eu \
    /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.