[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1400135537.5175.136.camel@marge.simpson.net>
Date: Thu, 15 May 2014 08:32:17 +0200
From: Mike Galbraith <umgwanakikbuti@...il.com>
To: Tejun Heo <tj@...nel.org>
Cc: Vojtech Pavlik <vojtech@...e.cz>, Jiri Slaby <jslaby@...e.cz>,
Jiri Kosina <jkosina@...e.cz>, linux-kernel@...r.kernel.org,
jirislaby@...il.com, Michael Matz <matz@...e.de>,
Steven Rostedt <rostedt@...dmis.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...hat.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Theodore Ts'o <tytso@....edu>,
Dipankar Sarma <dipankar@...ibm.com>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
Subject: Re: [RFC 09/16] kgr: mark task_safe in some kthreads
On Thu, 2014-05-15 at 02:05 -0400, Tejun Heo wrote:
> I'm not sure how much weight I can put on the specific use case. Even
> with the direct control that the user thought to have previously, the
> use case was ripe with possibilities of breakage from any number of
> reasons. For example, there are driver paths which bounce to async
> execution on IO exceptions (doesn't have to be hard errors) and setups
> like the above would easily lock out exception handling and how's the
> setup gonna work when the filesystems have to use dynamic pool of
> workers as btrfs does?
Oh yeah, this case isn't about _real_ realtime at all, it's just about
unmanageable priority inversion. With hack, any/all kthreads spawning
will start life at the priority the user specified, so as long as he
doesn't prioritize userspace above that, he can do whatever evil deeds
he sees fit, and box will function as expected.
> The identified problem in the above case is allowing the kernel to
> make reasonable forward progress even when RT processes don't concede
> CPU cycles.
Not only, but yeah, mostly.
> If that is a use case that needs to be supported, we
> better engineer an appropriate solution for that. Such solution
> doesn't necessarily have to be advanced either.
My solution isn't the least bit sophisticated. Dirt simple is usually
best anyway, and is enough for the cases I've encountered.
> Maybe all that's
> necessary is marking the async mechanisms involved in IO path as such
> (we already need to mark all workqueues involved in memory reclaim
> path anyway) and provide a mechanism to make all of them RT when
> directed. It might be simple but still would be a concious
> engineering decision.
You could do all singing/dancing PI boost thingy like RCU, but
personally, I hate that, disable it.
> I think the point I'm trying to make is that it isn't possible to
> continue improving and maintaining the kernel with blanket
> restrictions on internal details. If certain things shouldn't be
> done, we better find out the specific reasons; otherwise, it's
> impossible to weight the pros and cons of different options and make a
> reasonable choice or to find out ways to accomodate those restrictions
> while still achieving the original goals.
>
> Anyways, we're getting slightly off-topic and it seems like we'll have
> to agree to disagree.
Hey, we agree! :)
-Mike
--
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