mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
block: cgroups, kconfig, build bits for BFQ-v7r8-3.4
Update Kconfig.iosched and do the related Makefile changes to include kernel configuration options for BFQ. Also add the bfqio controller to the cgroups subsystem. Change-Id: I540ea28658b44c16b998f36eb9c97205f4f288f3 Signed-off-by: Paolo Valente <paolo.valente@unimore.it> Signed-off-by: Arianna Avanzini <avanzini.arianna@gmail.com>
This commit is contained in:
parent
e8e41c8550
commit
4e5072593a
3 changed files with 40 additions and 0 deletions
|
@ -54,6 +54,28 @@ config CFQ_GROUP_IOSCHED
|
||||||
---help---
|
---help---
|
||||||
Enable group IO scheduling in CFQ.
|
Enable group IO scheduling in CFQ.
|
||||||
|
|
||||||
|
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
|
choice
|
||||||
prompt "Default I/O scheduler"
|
prompt "Default I/O scheduler"
|
||||||
default DEFAULT_CFQ
|
default DEFAULT_CFQ
|
||||||
|
@ -67,6 +89,16 @@ choice
|
||||||
config DEFAULT_CFQ
|
config DEFAULT_CFQ
|
||||||
bool "CFQ" if IOSCHED_CFQ=y
|
bool "CFQ" if IOSCHED_CFQ=y
|
||||||
|
|
||||||
|
config DEFAULT_BFQ
|
||||||
|
bool "BFQ" if IOSCHED_BFQ=y
|
||||||
|
help
|
||||||
|
Selects BFQ as the default I/O scheduler which will be
|
||||||
|
used by default for all block devices.
|
||||||
|
The BFQ I/O scheduler 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.
|
||||||
|
|
||||||
config DEFAULT_NOOP
|
config DEFAULT_NOOP
|
||||||
bool "No-op"
|
bool "No-op"
|
||||||
|
|
||||||
|
@ -76,6 +108,7 @@ config DEFAULT_IOSCHED
|
||||||
string
|
string
|
||||||
default "deadline" if DEFAULT_DEADLINE
|
default "deadline" if DEFAULT_DEADLINE
|
||||||
default "cfq" if DEFAULT_CFQ
|
default "cfq" if DEFAULT_CFQ
|
||||||
|
default "bfq" if DEFAULT_BFQ
|
||||||
default "noop" if DEFAULT_NOOP
|
default "noop" if DEFAULT_NOOP
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -15,6 +15,7 @@ obj-$(CONFIG_BLK_DEV_THROTTLING) += blk-throttle.o
|
||||||
obj-$(CONFIG_IOSCHED_NOOP) += noop-iosched.o
|
obj-$(CONFIG_IOSCHED_NOOP) += noop-iosched.o
|
||||||
obj-$(CONFIG_IOSCHED_DEADLINE) += deadline-iosched.o
|
obj-$(CONFIG_IOSCHED_DEADLINE) += deadline-iosched.o
|
||||||
obj-$(CONFIG_IOSCHED_CFQ) += cfq-iosched.o
|
obj-$(CONFIG_IOSCHED_CFQ) += cfq-iosched.o
|
||||||
|
obj-$(CONFIG_IOSCHED_BFQ) += bfq-iosched.o
|
||||||
obj-$(CONFIG_IOSCHED_TEST) += test-iosched.o
|
obj-$(CONFIG_IOSCHED_TEST) += test-iosched.o
|
||||||
|
|
||||||
obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o
|
obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o
|
||||||
|
|
|
@ -72,3 +72,9 @@ SUBSYS(net_prio)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
|
|
||||||
|
#ifdef CONFIG_CGROUP_BFQIO
|
||||||
|
SUBSYS(bfqio)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* */
|
||||||
|
|
Loading…
Reference in a new issue