[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080826125057.GC8720@mit.edu>
Date: Tue, 26 Aug 2008 08:50:57 -0400
From: Theodore Tso <tytso@....edu>
To: Nick Piggin <nickpiggin@...oo.com.au>
Cc: Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...e.hu>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
linux-kernel@...r.kernel.org,
Stefani Seibold <stefani@...bold.net>,
Dario Faggioli <raistlin@...ux.it>,
Max Krasnyansky <maxk@...lcomm.com>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH 6/6] sched: disabled rt-bandwidth by default
On Tue, Aug 26, 2008 at 09:27:26PM +1000, Nick Piggin wrote:
>
> Oh with this much handwaving from you old timers I feel much better
> about it ;) I bet before the bug report and change to 10s, any
> application that hogged the CPU for more than 0.9 seconds was just
> broken too, right? But 10s is more than enough for everybody?
>
Actually, any real-time application which hogs the CPU at a high
real-time priority for more than one second is probably doing
something broken. The whole point of high real-time priorities is to
do something really fast, get in and get out. Usually such routines
are measured in milliseconds or microseconds.
Think about it *this* way --- what would you think of some device
driver which hogged an interrupt for a full second, never mind 10
seconds. You'd say it was broken, right? Now consider that a high
real-time priority thread might be running at a higher priority than
interrupt handlers, and in fact could preempt interrupt handlers....
> > Simply because we use common sense instead of following every single
> > POSIX brainfart by the letter.
>
> How is that a brainfart? It is simple, relatively unambiguous, and not
> arbitrary. You really say the POSIX specified behaviour is "a brainfart",
> but adding an arbitrary 10s throttle "but the process might be preempted
> and lose the CPU to a lower priority task if it uses 10s of consecutive
> CPU time" would eliminate that brainfart? I have to laugh.
We've not followed POSIX before when it hasn't made sense. For
example, "df" and "du" report its output in kilobytes, instead of 512
byte sectors, per POSIX's demands.
> root is allowed to shoot themselves in the foot. root is the safeguard.
We've done things before to make things harder for root; for example
we've restricted what /dev/mem can do. And root can always lift the
ulimit.
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists