Skip to content

Commit

Permalink
Add Simple I/O Scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonts committed Aug 23, 2011
1 parent f539066 commit ad1c4cb
Show file tree
Hide file tree
Showing 4 changed files with 372 additions and 7 deletions.
22 changes: 18 additions & 4 deletions block/Kconfig.iosched
Expand Up @@ -43,7 +43,7 @@ config IOSCHED_CFQ
config IOSCHED_BFQ
tristate "BFQ I/O scheduler"
depends on EXPERIMENTAL
default n
default y
---help---
The BFQ I/O scheduler tries to distribute bandwidth among
all processes according to their weights.
Expand All @@ -56,12 +56,22 @@ config IOSCHED_BFQ
config CGROUP_BFQIO
bool "BFQ hierarchical scheduling support"
depends on CGROUPS && IOSCHED_BFQ=y
default n
default y
---help---
Enable hierarchical scheduling in BFQ, using the cgroups
filesystem interface. The name of the subsystem will be
bfqio.

config IOSCHED_SIO
tristate "Simple I/O scheduler"
default y
---help---
The Simple I/O scheduler is an extremely simple scheduler,
based on noop and deadline, that relies on deadlines to
ensure fairness. The algorithm does not do any sorting but
basic merging, trying to keep a minimum overhead. It is aimed
mainly for aleatory access devices (eg: flash devices).

config IOSCHED_VR
tristate "V(R) I/O scheduler"
default y
Expand All @@ -88,12 +98,15 @@ choice
config DEFAULT_BFQ
bool "BFQ" if IOSCHED_BFQ=y

config DEFAULT_NOOP
bool "No-op"
config DEFAULT_SIO
bool "SIO" if IOSCHED_SIO=y

config DEFAULT_VR
bool "V(R)" if IOSCHED_VR=y

config DEFAULT_NOOP
bool "No-op"

endchoice

config DEFAULT_IOSCHED
Expand All @@ -102,6 +115,7 @@ config DEFAULT_IOSCHED
default "deadline" if DEFAULT_DEADLINE
default "cfq" if DEFAULT_CFQ
default "bfq" if DEFAULT_BFQ
default "sio" if DEFAULT_SIO
default "noop" if DEFAULT_NOOP
default "vr" if DEFAULT_VR

Expand Down
1 change: 1 addition & 0 deletions block/Makefile
Expand Up @@ -14,6 +14,7 @@ obj-$(CONFIG_IOSCHED_DEADLINE) += deadline-iosched.o
obj-$(CONFIG_IOSCHED_CFQ) += cfq-iosched.o
obj-$(CONFIG_IOSCHED_BFQ) += bfq-iosched.o
obj-$(CONFIG_IOSCHED_VR) += vr-iosched.o
obj-$(CONFIG_IOSCHED_SIO) += sio-iosched.o

obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o
obj-$(CONFIG_BLK_DEV_INTEGRITY) += blk-integrity.o

0 comments on commit ad1c4cb

Please sign in to comment.