]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - debian.master/config/config.common.ubuntu
UBUNTU: [Config] CONFIG_DEFAULT_IOSCHED=cfq
authorTim Gardner <tim.gardner@canonical.com>
Wed, 18 Jan 2017 18:43:34 +0000 (11:43 -0700)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
commitaf80b83a2b6184fea27f050948146fcd9a28070d
treecf8abdf55339b262f44d7fd69078b92aa716dcb0
parent6c7537261c19ce03fb6508e0774220d40841904c
UBUNTU: [Config] CONFIG_DEFAULT_IOSCHED=cfq

Hi there,

after several days of running (way too) many tests, I've got some data
to show that it may be a good idea to drop the DEADLINE I/O scheduler
for Zesty and move to CFQ with buffered writeback throttling (WBT) +
WBT_MQ (WBT multi-queu) enabled.

We originally moved to DEADLINE because of the issues with slow I/O (say
to flash drives) causing applications to hang while blocked on the slow
I/O being flushed out.  It seems that with the recent 4.10 WBT driver
and (possibly other block driver changes) we see some performance
benefits also with CFQ, namely:

1. Faster boots. On a 8 thread Xeon CPU E3-1275 I'm seeing a reduction
in usertime boots from 33.92s (Deadline) to ~24.5s (CFQ)

See: http://kernel.ubuntu.com/~cking/wbt/iosched-boot.ods

2. Faster build times (yay!) and better performance when writing across
multiple devices (especially when one of these is a slow flash device).

See: http://kernel.ubuntu.com/~cking/wbt/blk-mq-sq.ods

There are some places where CFQ + MQ is less performant than CFQ + MQ +
SQ, and vice-versa.  However, my general feeling for Zesty is that we
should give this a try as it seems to work well. The config changes are:

1. disable CONFIG_DEFAULT_DEADLINE
2. enable CONFIG_DEFAULT_CFQ
3. enable CONFIG_BLK_WBT
4. enable CONFIG_BLK_WBT_MQ

This will give us plenty of time to give this a good test in the next
few months and revert them if we find any problematic corner cases.
(The win on boot time, build times and writes to slow devices) is
probably the most compelling choice for these changes IMHO.

Colin King

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
debian.master/config/config.common.ubuntu