]> git.hungrycats.org Git - linux/commit
[PATCH] Reduce random driver lock contention
authorAndrew Morton <akpm@osdl.org>
Tue, 9 Sep 2003 17:21:30 +0000 (10:21 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 9 Sep 2003 17:21:30 +0000 (10:21 -0700)
commitc3ee1c757adff0df6df675c3cae524f9466016ca
treee414aa4422914cf71da5e2b7a61d6c148e3013a0
parente623ce480984d2df3f6d4b7c6f054cdd3bc4f968
[PATCH] Reduce random driver lock contention

From: Matt Mackall <mpm@selenic.com>

The new locking in the random driver is consuming 60% of CPU resources in
Anton's monster power5 boxes.

Basically, when the primary pool is 7/8th full, we shut off the firehose
and go into a trickle mode to keep the pool fresh.  Saves CPU for everyone
and should make the contention drop off the charts too (though the trickle
factor might need adjusting again for Origin-class machines).
drivers/char/random.c