Skip to content

Commit db5c23c

Browse files
author
Daniel Stodden
committed
PR-1129: Rate limiting intro.
Simple I/O rate limiting intro. Bridging resource utilization across a group of independent tapdisks. Comprising: - block-valve: Top-level filter issuing bandwith requests, deferring I/O to acknowldgement. Usage: valve:/path/to/sock/un - td-rated: Stand alone bridge process, listing to bandwidth requests, typically from valve:/ instances. Includes a plugin interface for various rate limiting algorithms. Algorithms (yet slightly experimental): - "Token Bucket". A classic, with some trivial modifications to promote batching. - "Meminfo". Watching /proc/meminfo for pagecache congestion. Signed-off-by: Daniel Stodden <[email protected]>
1 parent 5e8dec2 commit db5c23c

8 files changed

+2455
-1
lines changed

.hgignore

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
^drivers/tapdisk-client$
2222
^drivers/tapdisk-diff$
2323
^drivers/tapdisk-stream$
24+
^drivers/td-rated$
2425
^vhd/vhd-index$
2526
^vhd/vhd-update$
2627
^vhd/vhd-util$

drivers/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include $(BLKTAP_ROOT)/Rules.mk
33

44
LIBVHDDIR = $(BLKTAP_ROOT)/vhd/lib
55

6-
IBIN = tapdisk2 td-util tapdisk-stream tapdisk-diff
6+
IBIN = tapdisk2 td-util td-rated tapdisk-stream tapdisk-diff
77
LOCK_UTIL = lock-util
88
INST_DIR = /usr/sbin
99

@@ -54,6 +54,7 @@ BLK-OBJS := block-aio.o
5454
BLK-OBJS += block-ram.o
5555
BLK-OBJS += block-cache.o
5656
BLK-OBJS += block-vhd.o
57+
BLK-OBJS += block-valve.o
5758
BLK-OBJS += block-vindex.o
5859
BLK-OBJS += block-lcache.o
5960

0 commit comments

Comments
 (0)