• Andrew Morton's avatar
    [PATCH] Reduce random driver lock contention · c3ee1c75
    Andrew Morton authored
    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).
    c3ee1c75
random.c 73.7 KB