From: Jens Axboe <jens.axboe@oracle.com>
To: Justin Piszcz <jpiszcz@lucidpixels.com>
Cc: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org,
Alan Piszcz <ap@solarrain.com>
Subject: Re: Chaining sg lists for big I/O commands: Question
Date: Wed, 9 May 2007 15:38:30 +0200 [thread overview]
Message-ID: <20070509133830.GV4163@kernel.dk> (raw)
In-Reply-To: <Pine.LNX.4.64.0705090918390.12857@p34.internal.lan>
On Wed, May 09 2007, Justin Piszcz wrote:
> http://kerneltrap.org/node/8176
Oh
> I am a mdadm/disk/hard drive fanatic, I was curious:
>
> >On i386, we can at most fit 256 scatterlist elements into a page,
> >and on x86-64 we are stuck with 128. So that puts us somewhere
> >between 512kb and 1024kb for a single IO.
>
> How come 32bit is 256 and 64 is only 128?
>
> I am sure it is something very fundamental/simple but I was curious, I
> would think x86_64 would fit/support more scatterlists in a page.
Because of the size of the scatterlist structure. As pointers are bigger
on 64-bit archs, the scatterlist structure ends up being bigger. The
page size on x86-64 is 4kb, hence the number of structures you can fit
in a page is smaller.
> Also, when this patch is implemented for x86_64 and if merged into
> mainline, what does this mean for performance?
The sglist branch of block repo has x86-64 support now. I'll post a new
patchset tomorrow.
Performance wise, it's meant to help higher end hardware that need 2-4mb
(or bigger) commands to get good performance. That also includes things
like tapes that have big block sizes, getting a command of the right
size there is the difference between good and abysmal performance.
> I have an mdadm raid5 of 10 raptors and get 434MB/s write and 622MB/s
> read, would I see an increase in performance with this patch?
Perhaps, depends on a lot of factors.
--
Jens Axboe
next prev parent reply other threads:[~2007-05-09 13:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-09 13:22 Chaining sg lists for big I/O commands: Question Justin Piszcz
2007-05-09 13:38 ` Jens Axboe [this message]
2007-05-10 18:41 ` Jan Engelhardt
2007-05-10 21:34 ` Jens Axboe
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=20070509133830.GV4163@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=ap@solarrain.com \
--cc=jpiszcz@lucidpixels.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
/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).