]> git.neil.brown.name Git - history.git/commit
[PATCH] Reduce context switch rate due to the random driver
authorAndrew Morton <akpm@digeo.com>
Mon, 30 Dec 2002 05:41:23 +0000 (21:41 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 30 Dec 2002 05:41:23 +0000 (21:41 -0800)
commitb2e92a52042252a89d4ee939d7bdcb98a9714701
tree27988cd28276ff925b295fbd7e9856aa2c506f84
parenta93e679a7d1ca9cd662520a79830fec88a9654ca
[PATCH] Reduce context switch rate due to the random driver

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.
drivers/char/random.c