lkml.org 
[lkml]   [2014]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC 09/16] kgr: mark task_safe in some kthreads
Hello, Mike.

On Thu, May 15, 2014 at 07:04:22AM +0200, Mike Galbraith wrote:
> On Thu, 2014-05-15 at 00:50 -0400, Tejun Heo wrote:
> > Do we know specific kthreads which need to be exposed with this way?
>
> Soft/hard irq threads and anything having to do with IO mostly, which
> including workqueues. I had to give the user a rather fugly global
> prioritization option to let users more or less safely do the evil deeds
> they want to and WILL do whether I agree with their motivation to do so
> or not. I tell all users that realtime is real dangerous, but if they
> want to do that, it's their box, so by definition perfectly fine.

Frederic is working on global settings for workqueues, so that'll
resolve some of those issues at least.

> > If there are good enough reasons for specific ones, sure, but I don't
> > think "we can't change any of the kthreads because someone might be
> > diddling with it" is something we can sustain in the long term.
>
> I think the opposite. Taking any control the user has is pure evil.

I'm not sure good/evil is the right frame to think about it. Is
pooling worker threads evil in nature then? Even when not doing so
leads to serious scalibilty issues and general poor utilization of
system resources? User control, just like everything else, is one of
the many aspects to be evaluated and traded off, not something to
uphold religiously at all cost.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2014-05-15 08:01    [W:2.623 / U:1.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site