From: Joel Becker <jlbec@evilplan.org>
To: Avi Kivity <avi@exanet.com>
Cc: Yasushi Saito <ysaito@hpl.hp.com>,
linux-aio@kvack.org, linux-kernel@vger.kernel.org,
suparna@in.ibm.com, Janet Morgan <janetmor@us.ibm.com>
Subject: Re: [PATCH 1/2] aio: add vectored I/O support
Date: Sun, 17 Oct 2004 01:14:09 +0100 [thread overview]
Message-ID: <20041017001409.GH17142@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <41715A5F.2060006@exanet.com>
On Sat, Oct 16, 2004 at 07:29:03PM +0200, Avi Kivity wrote:
> No. An iovec is already merged; it is known that adjacent segments of an
> iovec have adjacent offsets. a single IO_CMD_READV iovec can generate a
> single bio without any merging.
A slightly embarrassed glance at the manpage later, I recall
that fact. Something I never liked about writev(), but that's a moot
point.
> That's not what I meant. If you submit 16 iocbs which are merged by the
> kernel, and there is an error somewhere within the seventh iocb, I would
> expect to get 15 success completions and one error completion. so error
> information from the merged iocb must be demultiplexed into the originals.
This takes no effort, really, for the kernel. The block layer
handles it.
> If you have a single iocb, then any error simply fails that iocb.
True, but in some senses (and this is application specific) you
want to know that 15/16ths succeeded. But we're talking about
application needs, not kernel design. So it's moot for the technical
argument of whether READV is a useful operation. I just wanted to have
the discussion. It wasn't an objection per se.
> I think what happened was that the number of iocbs submitted (64 iocbs
> of 4K each) did not merge because the device queue depth was very large;
> no queuing occured because (I imagine) merging happens while a request
> is waiting for disk readiness.
Why did you submit 64 iocbs of 4K? Was every page virtually
discontiguous, or did you arbitrarily decide to create a worst-case?
Joel
--
Life's Little Instruction Book #510
"Count your blessings."
http://www.jlbec.org/
jlbec@evilplan.org
next prev parent reply other threads:[~2004-10-17 0:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-14 20:10 Yasushi Saito
2004-10-16 3:13 ` Joel Becker
2004-10-16 5:18 ` Avi Kivity
2004-10-16 5:37 ` Joel Becker
2004-10-16 8:43 ` Avi Kivity
2004-10-16 16:28 ` Joel Becker
2004-10-16 17:29 ` Avi Kivity
2004-10-17 0:14 ` Joel Becker [this message]
2004-10-17 6:25 ` Avi Kivity
2004-10-16 12:05 ` William Lee Irwin III
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=20041017001409.GH17142@parcelfarce.linux.theplanet.co.uk \
--to=jlbec@evilplan.org \
--cc=avi@exanet.com \
--cc=janetmor@us.ibm.com \
--cc=linux-aio@kvack.org \
--cc=linux-kernel@vger.kernel.org \
--cc=suparna@in.ibm.com \
--cc=ysaito@hpl.hp.com \
/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
Powered by JetHome