Skip to content

Commit

Permalink
integrate bfq iosched
Browse files Browse the repository at this point in the history
  • Loading branch information
darchstar committed Aug 17, 2010
1 parent 2db1259 commit c82481b
Show file tree
Hide file tree
Showing 13 changed files with 4,676 additions and 23 deletions.
10 changes: 6 additions & 4 deletions arch/arm/configs/cyanogen_heroc_defconfig
Expand Up @@ -126,13 +126,15 @@ CONFIG_BLOCK=y
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
# CONFIG_IOSCHED_CFQ is not set
# CONFIG_IOSCHED_DEADLINE is not set
CONFIG_IOSCHED_CFQ=y
CONFIG_IOSCHED_BFQ=y
# CONFIG_DEFAULT_AS is not set
CONFIG_DEFAULT_DEADLINE=y
# CONFIG_DEFAULT_DEADLINE is not set
# CONFIG_DEFAULT_CFQ is not set
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="deadline"
CONFIG_DEFAULT_BFQ=y
CONFIG_DEFAULT_IOSCHED="bfq"
CONFIG_FREEZER=y

#
Expand Down
25 changes: 25 additions & 0 deletions block/Kconfig.iosched
Expand Up @@ -40,6 +40,27 @@ config IOSCHED_CFQ
working environment, suitable for desktop systems.
This is the default I/O scheduler.

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 in the system, according to their weights,
which can be set using task ioprio values. It aims at giving
deterministic guarantees on the distribution of the service
provided. 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
Expand All @@ -56,6 +77,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"

Expand All @@ -66,6 +90,7 @@ config DEFAULT_IOSCHED
default "anticipatory" if DEFAULT_AS
default "deadline" if DEFAULT_DEADLINE
default "cfq" if DEFAULT_CFQ
default "bfq" if DEFAULT_BFQ
default "noop" if DEFAULT_NOOP

endmenu
Expand Down
1 change: 1 addition & 0 deletions block/Makefile
Expand Up @@ -12,6 +12,7 @@ obj-$(CONFIG_IOSCHED_NOOP) += noop-iosched.o
obj-$(CONFIG_IOSCHED_AS) += as-iosched.o
obj-$(CONFIG_IOSCHED_DEADLINE) += deadline-iosched.o
obj-$(CONFIG_IOSCHED_CFQ) += cfq-iosched.o
obj-$(CONFIG_IOSCHED_BFQ) += bfq-iosched.o

obj-$(CONFIG_BLK_DEV_IO_TRACE) += blktrace.o
obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o
Expand Down

0 comments on commit c82481b

Please sign in to comment.