From: Wolfgang Denk <wd@denx.de>
To: st0ff@npl.de,
"Stefan /*St0fF*/ Hübner" <stefan.huebner@stud.tu-ilmenau.de>
Cc: Graham Mitchell <gmitch@woodlea.com>,
Linux RAID <linux-raid@vger.kernel.org>
Subject: Re: device and partition alignment
Date: Sun, 06 Jun 2010 00:11:39 +0200 [thread overview]
Message-ID: <20100605221139.D066814E867@gemini.denx.de> (raw)
In-Reply-To: <4C0AC6E4.4080408@stud.tu-ilmenau.de>
Dear Stefan,
In message <4C0AC6E4.4080408@stud.tu-ilmenau.de> you wrote:
>
> I guess you couldn't find much about this as it has more to do with
> common sense than magic formulae. If you have 4k-sector drives, align
> everything at multiples of 4k, use filesystem-units of multiples of 4k.
> As I read and it also seems very logical from the ATA / SCSI point of
> view, a stripe size of 256k seems most straight forward. This is the
> largest amount of data (a.t.m.) that can be read or written with a
> single command to a disk.
And why would that be optimal, in general?
For example, in a file system I have here (with some 15 millions
files) we see the following distribution of file sizes:
65% are smaller than 4 kB
80% are smaller than 8 kB
90% are smaller than 16 kB
96% are smaller than 32 kB
98.4% are smaller than 64 kB
With many write accesses going on, a stripe size of 16 KiB gives much
better performance.
I think you cannot recommend a stripe size or other specific tuning
measures without exactly knowing the characteristics of the load.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Accident: A condition in which presence of mind is good, but absence
of body is better.
next prev parent reply other threads:[~2010-06-05 22:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-05 20:51 device and partition alignment Graham Mitchell
2010-06-05 21:51 ` Stefan /*St0fF*/ Hübner
2010-06-05 22:11 ` Wolfgang Denk [this message]
2010-06-05 23:14 ` Graham Mitchell
2010-06-06 0:05 ` Leslie Rhorer
2010-06-06 0:19 ` Graham Mitchell
2010-06-06 10:56 ` Stefan /*St0fF*/ Hübner
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=20100605221139.D066814E867@gemini.denx.de \
--to=wd@denx.de \
--cc=gmitch@woodlea.com \
--cc=linux-raid@vger.kernel.org \
--cc=st0ff@npl.de \
--cc=stefan.huebner@stud.tu-ilmenau.de \
/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