From: Robert Love <rml@tech9.net>
To: mingo@elte.hu
Cc: Linus Torvalds <torvalds@transmeta.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] 2.5: MAX_PRIO cleanup
Date: 23 Apr 2002 19:03:26 -0400 [thread overview]
Message-ID: <1019603008.2045.273.camel@phantasy> (raw)
In-Reply-To: <Pine.LNX.4.44.0204232241520.8215-100000@elte.hu>
On Tue, 2002-04-23 at 16:44, Ingo Molnar wrote:
> i'm not so sure whether we want to make the last step to make the maximum
> RT priority value to be a .config option. Sure we can keep things flexible
> so that it's just a matter of a single redefine, but do we really want
> users to be able to change the API of Linux in such a way?
>
> the applications which need 1000 RT threads are i suspect specialized, and
> since it needs a kernel recompile anyway, it's not a big problem to change
> a single constant in the source code - we do that for many other things.
> I'd very much suggest we keep the 0-99 range for RT tasks, it's been well
> established and not making it a .config doesnt make it any harder for 1000
> RT priority levels to be defined for specific applications.
I understand your points - I am doing the patch for those that could
benefit, I felt it is useful enough to be in the kernel. It is in fact
the only real-time item missing from your scheduler - otherwise it is an
ideal RT scheduler.
It is common for real-time schedules to either have very large RT
priority ranges or allow customizing of these ranges.
I should note that while this changes the API, it should not break any
existing applications (as long as the number only goes up). Existing
scheduler calls will succeed. In fact, the only difference to existing
programs would be sched_getparam returning a different maximum RT
priority value.
Finally, it is not so simple as "just setting the define" because of
sched_find_first_bit. I have a working patch that I will post soon - I
did pretty much what I mentioned in an earlier email where if MAX_PRIO
is outside of a certain range we fall back on using find_first_bit.
Would you be open to a patch to do the rest of the invariant work and
the sched_find_first_bit switch, but not export a configure option? Or
have I convinced you the configure option is not bad? :-)
The whole patch is not large either way.
Robert Love
prev parent reply other threads:[~2002-04-23 23:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-23 2:23 [PATCH] 2.5: MAX_PRIO cleanup Robert Love
2002-04-23 7:53 ` Ingo Molnar
2002-04-23 16:53 ` Robert Love
2002-04-23 15:23 ` Ingo Molnar
2002-04-23 18:15 ` Robert Love
2002-04-23 16:14 ` Ingo Molnar
2002-04-23 18:24 ` Robert Love
2002-04-23 22:43 ` Robert Love
2002-04-23 20:44 ` Ingo Molnar
2002-04-23 23:03 ` Robert Love [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=1019603008.2045.273.camel@phantasy \
--to=rml@tech9.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=torvalds@transmeta.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