[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1261506016.4937.65.camel@laptop>
Date: Tue, 22 Dec 2009 19:20:16 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Andi Kleen <andi@...stfloor.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Tejun Heo <tj@...nel.org>,
Arjan van de Ven <arjan@...ux.intel.com>,
Jens Axboe <jens.axboe@...cle.com>, awalls@...ix.net,
linux-kernel@...r.kernel.org, jeff@...zik.org, mingo@...e.hu,
akpm@...ux-foundation.org, rusty@...tcorp.com.au,
cl@...ux-foundation.org, dhowells@...hat.com, avi@...hat.com,
johannes@...solutions.net
Subject: Re: workqueue thing
On Tue, 2009-12-22 at 19:07 +0100, Andi Kleen wrote:
> One reason I liked a more dynamic frame work for this is that it
> has the potential to be exposed to user space and allow automatic
> work partitioning there based on available cores. User space
> has a lot more CPU consumption than the kernel.
What you want is something that does not block, but does not generate
more load than a single runnable task either. Otherwise you'll end up
with massive load issues.
The thing currently proposed only does the first, but does not guarantee
the latter. Meaning you can only use it if you know it will not do much
work (after blocking), which is a fine restriction in the kernel (not
something I think the current workqueue users all adhere to though).
However, it is not something you'd want to expose to userspace, not that
is, without the counterpart limiting wakeup parallelism.
> I think Grand Central Dispatch does something in this direction.
> TBB would probably also benfit
What are those?
> Short term an alternative for the kernel would be also
> to generalize the simple framework that is in btrfs.
And here I though btrfs was one of those who did actually consume heaps
of CPU in its worklets doing data checksums and the like.
--
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