[PATCH 0/2] Block: Give option to force io polling

Jon Derrick jonathan.derrick at intel.com
Thu Mar 31 13:19:12 PDT 2016


In 4.6, enabling io polling in direct-io was switched to a per-io flag.
This had an unintended result of giving a significant difference when
doing benchmarks between 4.5 and 4.6, using fio's sync engine.

I was able to regain the performance by getting the pvsync2 engine
working with the new p{read,write}v2 syscalls, but this patchset allows
polling to be tried in the direct-io path with the other syscalls.

Rather than having to convert applications to prwv2 syscalls, users can
enable this knob that let's them see the same performance as they may
have seen in 4.5 when it always polled.

Jon Derrick (2):
  block: add queue flag to always poll
  block: add forced polling sysfs controls

 block/blk-core.c       |  8 ++++++++
 block/blk-sysfs.c      | 38 ++++++++++++++++++++++++++++++++++++++
 fs/direct-io.c         |  7 ++++++-
 include/linux/blkdev.h |  2 ++
 4 files changed, 54 insertions(+), 1 deletion(-)

-- 
2.5.0




More information about the Linux-nvme mailing list