• Andrew Morton's avatar
    [PATCH] Reduce context switch rate due to the random driver · b2e92a52
    Andrew Morton authored
    add_disk_randomness() is causing a context switch per disk request.  It
    is scheduling process-context work one timer tick in the future for
    every request.
    
    But is has a buffer for this, so change it to not set up the
    process-context work until that buffer is half full.
    
    The patch reduces the context switch rate during a 20 megabyte/sec
    write to scsi from 150/sec to 50/sec.
    b2e92a52
random.c 70.4 KB