Re: [RFC][PATCH] create workqueue threads only when needed

From: Daniel Walker
Date: Mon Feb 02 2009 - 10:40:43 EST


On Mon, 2009-02-02 at 15:51 +0100, FrÃdÃric Weisbecker wrote:
> 2009/2/2 Daniel Walker <dwalker@xxxxxxxxxx>:
> > On Tue, 2009-01-27 at 01:17 +0100, Frederic Weisbecker wrote:
> >
> >> All of the workqueues with 0 work inserted do nothing.
> >> For several reasons:
> >>
> >> _ Unneeded built drivers for my system that create workqueue(s) when they init
> >> _ Services which need their own workqueue, for several reasons, but who receive
> >> very rare jobs (often never)
> >> _ ...?
> >>
> >
> > Some of the workqueues you have on your system can be removed just by
> > tuning your kernel config. It's more desirable to be able to remove the
> > whole unused feature since that's all unused memory beyond just
> > thread ..
> >
> > Daniel
>
>
> Yes of course. I just think about the distros which enable a lot of
> options by default.

The problem is that your just removing the visible part of the memory
waste .. Even distros can/do use modules where some of these features
wouldn't get loaded.

I think it's a better policy to assume if a kernel has a feature enabled
that feature will get used, including the workqueue.

Daniel

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/