[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4AC5ED72.7090201@kernel.org>
Date: Fri, 02 Oct 2009 21:09:22 +0900
From: Tejun Heo <tj@...nel.org>
To: Andi Kleen <andi@...stfloor.org>
CC: jeff@...zik.org, mingo@...e.hu, linux-kernel@...r.kernel.org,
akpm@...ux-foundation.org, jens.axboe@...cle.com,
rusty@...tcorp.com.au, cl@...ux-foundation.org,
dhowells@...hat.com, ar@...stfloor.org
Subject: Re: [PATCH 19/19] workqueue: implement concurrency managed workqueue
Hello, Andi.
Andi Kleen wrote:
> Tejun Heo <tj@...nel.org> writes:
>
>> Currently each workqueue has its own dedicated worker pool. This
>> causes the following problems.
>
> I definitely like the basic idea (without having read all the code so
> far). Thanks for doing that work. On large systems the number of
> kernel threads around can be mind boggling, and it will also get rid
> of bizarreness like the ps2mouse thread.
>
> I wonder have you ever thought about exposing this to user space too?
> It can face similar problems for parallelization.
Yeah, some similar mechanism could be useful to manage userland worker
pool too but determining what to export would be the difficult
question. Events when all of certain groups of threads are blocked
could be useful and cpu idleness is too.
One thing is that for userspace there's already pretty thick layer of
abstraction in place and having this type of bare metal mechanism
might not buy much. In most cases, monitoring system parameters
periodically and supplying a bit of extra threads should be able to
achieve about the same result. Do you have anything specific on your
mind?
Thanks.
--
tejun
--
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