linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* selective block polling and preadv2/pwritev2 revisited V2
@ 2016-02-22 17:07 Christoph Hellwig
  2016-02-22 17:07 ` [PATCH 1/7] vfs: pass a flags argument to vfs_readv/vfs_writev Christoph Hellwig
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Christoph Hellwig @ 2016-02-22 17:07 UTC (permalink / raw)
  To: viro, axboe; +Cc: milosz, linux-fsdevel, linux-block, linux-api

This series allows to selectively enable/disable polling for completions
in the block layer on a per-I/O basis.  For this it resurrects the
preadv2/pwritev2 syscalls that Milosz prepared a while ago (and which
are much simpler now due to VFS changes that happened in the meantime).
That approach also had a man page update prepared, which I will resubmit
with the current flags once this series makes it in.

Polling for block I/O is important to reduce the latency on flash and
post-flash storage technologies.  On the fastest NVMe controller I have
access to it almost halves latencies from over 7 microseconds to about 4
microseonds.  But it only is usesful if we actually care for the latency
of this particular I/O, and generally is a waste if enabled for all I/O
to a given device.  This series uses the per-I/O flags in preadv2/pwritev2
to control this behavior.  The alternative would be a new O_* flag set
at open time or using fcntl, but this is still to corse-grained for some
applications and we're starting to run out out of open flags.

Note that there are plenty of other use cases for preadv2/pwritev2 as well,
but I'd like to concentrate on this one for now.  Example are: non-blocking
reads (the original purpose), per-I/O O_SYNC, user space support for T10
DIF/DIX applications tags and probably some more.

Changes since V1:
  - rebased on top of Linux 4.5-rc5


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2016-02-29 14:59 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-22 17:07 selective block polling and preadv2/pwritev2 revisited V2 Christoph Hellwig
2016-02-22 17:07 ` [PATCH 1/7] vfs: pass a flags argument to vfs_readv/vfs_writev Christoph Hellwig
     [not found]   ` <1456160876-14560-2-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2016-02-26 21:52     ` Jeff Moyer
2016-02-22 17:07 ` [PATCH 5/7] direct-io: only use block polling if explicitly requested Christoph Hellwig
     [not found]   ` <1456160876-14560-6-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2016-02-26 21:58     ` Jeff Moyer
     [not found] ` <1456160876-14560-1-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2016-02-22 17:07   ` [PATCH 2/7] vfs: vfs: Define new syscalls preadv2,pwritev2 Christoph Hellwig
     [not found]     ` <1456160876-14560-3-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2016-02-26 21:51       ` Jeff Moyer
2016-02-27  8:58         ` Christoph Hellwig
2016-02-22 17:07   ` [PATCH 3/7] x86: wire up preadv2 and pwritev2 Christoph Hellwig
2016-02-22 17:07   ` [PATCH 4/7] vfs: add the RWF_HIPRI flag for preadv2/pwritev2 Christoph Hellwig
     [not found]     ` <1456160876-14560-5-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2016-02-26 21:56       ` Jeff Moyer
2016-02-27  8:58         ` Christoph Hellwig
2016-02-22 17:07   ` [PATCH 6/7] blk-mq: enable polling support by default Christoph Hellwig
     [not found]     ` <1456160876-14560-7-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2016-02-26 20:44       ` Jeff Moyer
     [not found]         ` <x49fuwfmcb5.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
2016-02-27  8:56           ` Christoph Hellwig
2016-02-29 14:27             ` Jeff Moyer
2016-02-22 17:07   ` [PATCH 7/7] block, directio: set a REQ_POLL flag when submitting polled bios Christoph Hellwig
     [not found]     ` <1456160876-14560-8-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2016-02-26 21:10       ` Jeff Moyer
2016-02-27  8:57         ` Christoph Hellwig
2016-02-29 14:28           ` Jeff Moyer
2016-02-26 21:18   ` selective block polling and preadv2/pwritev2 revisited V2 Jeff Moyer
2016-02-27  8:57     ` Christoph Hellwig
     [not found]       ` <20160227085744.GC4255-jcswGhMUV9g@public.gmane.org>
2016-02-29  1:30         ` Damien Le Moal
2016-02-29 14:59       ` Jeff Moyer
2016-02-26 15:06 ` Stephen Bates

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).