Implement the reluctancy to unpark threads.
authorPierre Habouzit <pierre.habouzit@intersec.com>
Sat, 14 Jan 2012 20:01:47 +0000 (21:01 +0100)
committerPierre Habouzit <pierre.habouzit@intersec.com>
Sat, 14 Jan 2012 20:01:47 +0000 (21:01 +0100)
commitb29ccbcc4ab80bc7e7b2131349459cc9e96d49ef
treef358101a49629baceb90442fc6beeb53591a26e1
parent006df851760b087ea18222f4c417756cbf69b2ea
Implement the reluctancy to unpark threads.

This means that a pool needs to undercommit for 0.1s before we allow it to
grow its number of in-pool threads.

Document the last todo: how to reduce the pool when we're overcommiting.
Right now we only pray that userland will put some threads to WAIT. But
frankly it's less than ideal. With the repulsion to start a new thread we
hope though that the overcommit will never ever grow out of proportion for
now.

Signed-off-by: Pierre Habouzit <pierre.habouzit@intersec.com>
Documentation/pwqr.adoc
kernel/pwqr.c