Re: [PATCH 0/5] kmod: Cleanups, simplifications, and make isolation friendly v3

From: Tejun Heo
Date: Mon Jul 27 2015 - 14:48:48 EST


On Mon, Jul 27, 2015 at 06:27:15PM +0200, Frederic Weisbecker wrote:
> Hence those two debatable changes:
>
> _ We would like to use generic workqueues. System unbound workqueues are
> a very good candidate but they are not wide affine, only node affine.
> Now probably a node is enough to perform many parallel kmod jobs.

If being node-affine is an issue, kmod can easily create a workqueue
w/o NUMA affinity using apply_workqueue_attrs() with no_numa set to
%true.

> _ We would like to remove the wait_for_helper kernel thread (UMH_WAIT_PROC
> handler) to use the workqueue. It means that if the workqueue blocks,
> and no other worker can take pending kmod request, we can be screwed.
> Now if we have 512 threads, this should be enough.

The maximum number of worker can also be raised on the workqueue.
That said, I don't think we want to.

IMHO, system_wq should be fine and if it isn't turning off numa
affinity or raising max worker limit later is pretty trivial.

Thanks.

--
tejun
--
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/