From: Christoph Hellwig <hch@lst.de>
To: NeilBrown <neilb@suse.com>
Cc: Christoph Hellwig <hch@lst.de>,
viro@zeniv.linux.org.uk, axboe@fb.com, milosz@adfin.com,
linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org,
linux-api@vger.kernel.org
Subject: Re: [PATCH 4/6] vfs: add the RWF_HIPRI flag for preadv2/pwritev2
Date: Wed, 11 May 2016 10:55:20 +0200 [thread overview]
Message-ID: <20160511085520.GA20377@lst.de> (raw)
In-Reply-To: <874ma8usrr.fsf@notabene.neil.brown.name>
On Mon, May 09, 2016 at 07:47:04AM +1000, NeilBrown wrote:
> On Fri, Mar 04 2016, Christoph Hellwig wrote:
>
> > This adds a flag that tells the file system that this is a high priority
> > request for which it's worth to poll the hardware. The flag is purely
> > advisory and can be ignored if not supported.
>
> Here you say the flag is "advice".
>
> >
> > +/* flags for preadv2/pwritev2: */
> > +#define RWF_HIPRI 0x00000001 /* high priority request, poll if possible */
>
> This text makes it sound like a firm "request" ("if possible").
"request" here is in the sense of an I/O request. Better wording
highly welcome.
>
> > provides lower latency, but may use additional ressources
>
> Is this a "latency vs throughput" trade-off, or something more subtle?
> It would be nice to make the decision process as obvious as possible for
> the developer considering the use of this flag.
If you poll you can't do anything else, so you end up using CPU
cycles to wait which otherwise could do something productive.
prev parent reply other threads:[~2016-05-11 8:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1457017443-17662-1-git-send-email-hch@lst.de>
2016-03-03 15:03 ` [PATCH 2/6] vfs: vfs: Define new syscalls preadv2,pwritev2 Christoph Hellwig
2016-03-10 18:15 ` Michael Kerrisk (man-pages)
2016-03-11 9:53 ` Christoph Hellwig
2016-04-18 13:51 ` Michael Kerrisk (man-pages)
2016-04-25 8:47 ` Christoph Hellwig
2016-04-25 17:35 ` Michael Kerrisk (man-pages)
2016-05-08 9:29 ` Christoph Hellwig
2016-03-03 15:04 ` [PATCH 4/6] vfs: add the RWF_HIPRI flag for preadv2/pwritev2 Christoph Hellwig
2016-05-08 21:47 ` NeilBrown
2016-05-11 8:55 ` Christoph Hellwig [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160511085520.GA20377@lst.de \
--to=hch@lst.de \
--cc=axboe@fb.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=milosz@adfin.com \
--cc=neilb@suse.com \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).