Permalink
Browse files

Add BFQ

  • Loading branch information...
1 parent 4048fe9 commit 94cf4cd0aa6a58a584c5bf93dc88e662a433e7f8 @zarboz zarboz committed Apr 11, 2013
Showing with 6,232 additions and 0 deletions.
  1. +26 −0 block/Kconfig.iosched
  2. +2 −0 block/Makefile
  3. +843 −0 block/bfq-cgroup.c
  4. +36 −0 block/bfq-ioc.c
  5. +3,211 −0 block/bfq-iosched.c
  6. +1,044 −0 block/bfq-sched.c
  7. +617 −0 block/bfq.h
  8. +453 −0 block/vr-iosched.c
View
@@ -84,6 +84,28 @@ config IOSCHED_SIO
mainly for aleatory access devices (eg: flash devices).
+config IOSCHED_BFQ
+ tristate "BFQ I/O scheduler"
+ depends on EXPERIMENTAL
+ default n
+ ---help---
+ The BFQ I/O scheduler tries to distribute bandwidth among
+ all processes according to their weights.
+ It aims at distributing the bandwidth as desired, independently of
+ the disk parameters and with any workload. It also tries to
+ guarantee low latency to interactive and soft real-time
+ applications. If compiled built-in (saying Y here), BFQ can
+ be configured to support hierarchical scheduling.
+
+config CGROUP_BFQIO
+ bool "BFQ hierarchical scheduling support"
+ depends on CGROUPS && IOSCHED_BFQ=y
+ default n
+ ---help---
+ Enable hierarchical scheduling in BFQ, using the cgroups
+ filesystem interface. The name of the subsystem will be
+ bfqio.
+
choice
prompt "Default I/O scheduler"
default DEFAULT_CFQ
@@ -107,6 +129,9 @@ choice
config DEFAULT_CFQ
bool "CFQ" if IOSCHED_CFQ=y
+ config DEFAULT_BFQ
+ bool "BFQ" if IOSCHED_BFQ=y
+
config DEFAULT_NOOP
bool "No-op"
@@ -122,6 +147,7 @@ config DEFAULT_IOSCHED
default "deadline" if DEFAULT_DEADLINE
default "row" if DEFAULT_ROW
default "cfq" if DEFAULT_CFQ
+ default "bfq" if DEFAULT_BFQ
default "noop" if DEFAULT_NOOP
default "fiops" if DEFAULT_FIOPS
default "sio" if DEFAULT_SIO
View
@@ -1,6 +1,7 @@
#
# Makefile for the kernel block layer
#
+# CFLAGS_bfq-iosched.o += -Os
obj-$(CONFIG_BLOCK) := elevator.o blk-core.o blk-tag.o blk-sysfs.o \
blk-flush.o blk-settings.o blk-ioc.o blk-map.o \
@@ -19,6 +20,7 @@ obj-$(CONFIG_IOSCHED_CFQ) += cfq-iosched.o
obj-$(CONFIG_IOSCHED_TEST) += test-iosched.o
obj-$(CONFIG_IOSCHED_SIO) += sio-iosched.o
obj-$(CONFIG_IOSCHED_FIOPS) += fiops-iosched.o
+obj-$(CONFIG_IOSCHED_BFQ) += bfq-iosched.o
obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o
obj-$(CONFIG_BLK_DEV_INTEGRITY) += blk-integrity.o
Oops, something went wrong.

0 comments on commit 94cf4cd

Please sign in to comment.