From: Badari Pulavarty <pbadari@us.ibm.com>
To: axboe@suse.de (Jens Axboe)
Cc: andrea@suse.de (Andrea Arcangeli),
jlbec@evilplan.org (Joel Becker),
marcelo@conectiva.com.br (Marcelo Tosatti),
linux-kernel@vger.kernel.org (lkml)
Subject: Re: [PATCH] O_DIRECT with hardware blocksize alignment
Date: Tue, 15 Jan 2002 13:23:06 -0800 (PST) [thread overview]
Message-ID: <200201152123.g0FLN6K06540@eng2.beaverton.ibm.com> (raw)
In-Reply-To: <20020115145549.M31878@suse.de> from "Jens Axboe" at Jan 15, 2002 01:55:49 PM PST
Wouldn't this cause, single IO to split into (possibly) 3 I/Os for
RAW VARY on all unaligned IOs ? In that case, wouldn't it be better
of doing entire I/O with 512byte buffer heads, so that all of them
can be merged ?
IMHO, preventing the merge due to b_size mismatch just to handle few
drivers/hardware may be overkill. This will penalize all the drivers
which can handle variable size IOs also. Isn't it ? Leaving it to
the driver and doing variable size I/O on only the drivers that can
handle them, may be a better option ?
In my initial version of RAW VARY patch, I split the I/Os into possibly
3 I/O in raw.c. Do brw_kiovec(.., 512) for the first page and last pages &
4K for the middle pages. It showed reduction in CPU utilization for
large IOs. But it since it could split single I/O into 3 I/Os, i did
not see significant I/O throughput improvement.
Regards,
Badari
>
> On Tue, Jan 15 2002, Jens Axboe wrote:
> > On Tue, Jan 15 2002, Andrea Arcangeli wrote:
> > > actually we could also forbid merging at the ll_rw_block layer if b_size
> > > is not equal, maybe that's the simpler solution to that problem after
> > > all, merging between kiovec I/O and buffered I/O probably doesn't
> > > matter.
> >
> > Agreed, this is also what I suggested.
>
> Here's the right version, sorry. This still potentially decrements
> elevator sequence wrongly for a missed front merge, but that's an issue
> I can definitely live with :-)
> ....
next prev parent reply other threads:[~2002-01-15 21:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-09 19:56 Joel Becker
2002-01-12 12:31 ` Andrea Arcangeli
2002-01-15 3:21 ` Joel Becker
2002-01-15 12:20 ` Andrea Arcangeli
2002-01-15 13:08 ` Jens Axboe
2002-01-15 13:55 ` Jens Axboe
2002-01-15 21:23 ` Badari Pulavarty [this message]
2002-01-15 21:44 ` Alan Cox
2002-01-24 0:44 ` [PATCH] small bugfix for ll_rw_bio() for 2.5.3-pre3 Badari Pulavarty
2002-01-24 21:52 ` O_DIRECT broken in 2.5.3-preX ? Badari Pulavarty
2002-01-28 2:06 ` Andrea Arcangeli
2002-01-16 0:08 ` [PATCH] O_DIRECT with hardware blocksize alignment Joel Becker
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=200201152123.g0FLN6K06540@eng2.beaverton.ibm.com \
--to=pbadari@us.ibm.com \
--cc=andrea@suse.de \
--cc=axboe@suse.de \
--cc=jlbec@evilplan.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/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
all inboxes | Powered by JetHome®