aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bio.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-06-13 16:48:07 +0000
committerWarner Losh <imp@FreeBSD.org>2018-06-13 16:48:07 +0000
commita971acbc25f7b9edfcc7f6367bfc69a64296b5da (patch)
tree903b8f648e7c48047daf80f70a8927f744ce62c4 /sys/sys/bio.h
parent4e050d14e00cd99387acf84fe727c4e1423ca22a (diff)
downloadsrc-a971acbc25f7b9edfcc7f6367bfc69a64296b5da.tar.gz
src-a971acbc25f7b9edfcc7f6367bfc69a64296b5da.zip
Implement a 'car limit' for bioq.
Allow one to implement a 'car limit' for bioq_disksort. debug.bioq_batchsize sets the size of car limit. Every time we queue that many requests, we start over so that we limit the latency for requests when the software queue depths are large. A value of '0', the default, means to revert to the old behavior. Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=335066
Diffstat (limited to 'sys/sys/bio.h')
-rw-r--r--sys/sys/bio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index 0691834e3a1d..1dab615578ec 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -138,6 +138,8 @@ struct bio_queue_head {
TAILQ_HEAD(bio_queue, bio) queue;
off_t last_offset;
struct bio *insert_point;
+ int total;
+ int batched;
};
extern struct vm_map *bio_transient_map;