Commit 8aab2013 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] AS: increase batch expiry intervals

From: Nick Piggin <nickpiggin@yahoo.com.au>

Without disturbing the read/write ratio, increase the bathc expiry
intervals.  This wil have the effect of increasing latency a little, but
with improved throughput.
parent e33daf9d
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
* read_batch_expire describes how long we will allow a stream of reads to * read_batch_expire describes how long we will allow a stream of reads to
* persist before looking to see whether it is time to switch over to writes. * persist before looking to see whether it is time to switch over to writes.
*/ */
#define default_read_batch_expire (HZ / 4) #define default_read_batch_expire (HZ / 2)
/* /*
* write_batch_expire describes how long we want a stream of writes to run for. * write_batch_expire describes how long we want a stream of writes to run for.
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
* See, the problem is: we can send a lot of writes to disk cache / TCQ in * See, the problem is: we can send a lot of writes to disk cache / TCQ in
* a short amount of time... * a short amount of time...
*/ */
#define default_write_batch_expire (HZ / 16) #define default_write_batch_expire (HZ / 8)
/* /*
* max time we may wait to anticipate a read (default around 6ms) * max time we may wait to anticipate a read (default around 6ms)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment