lkml.org 
[lkml]   [2009]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateMon, 16 Nov 2009 18:31:17 +0000
FromAlan Cox <>
SubjectRe: [RFC] observe and act upon workload parallelism: PERF_TYPE_PARALLELISM (Was: [RFC][PATCH] sched_wait_block: wait for blocked threads)
On Mon, 16 Nov 2009 10:02:50 -0800 (PST)
Linus Torvalds <torvalds@linux-foundation.org> wrote:

>
>
> On Mon, 16 Nov 2009, Ingo Molnar wrote:
> >
> > Regarding the API and your patch, i think we can and should do something
> > different and more capable - while still keeping your basic idea:
>
> Actually, I'd suggest exactly the reverse.
>
> Yes, do something different, but _less_ capable, and much simpler:
> introduce the notion of "grouped thread scheduling", where a _group_ of
> threads gets scheduled as one thread.

And preferably expose it so it can be used by groups of processes as well
as just "threads" in the userspace shared pid etc sense. There are quite
a few applications where both "only run one of us" and "don't pre-empt
within the group" are a useful semantic (you often don't want the
pre-empting within the group of threads because it messes up all the
improved locking opportunities). In particular the usual buzz locks don't
mix well with "only run one of us".

Alan


\
 
 \ /
  Last update: 2009-11-16 19:33    [from the cache]
©2003-2010