From: Stan Hoeppner <stan@hardwarefreak.com>
To: "Mathias Burén" <mathias.buren@gmail.com>,
"Linux RAID" <linux-raid@vger.kernel.org>
Subject: Re: What layout with 6x2TB, Intel Atom?
Date: Mon, 04 Feb 2013 17:15:01 -0600 [thread overview]
Message-ID: <511040F5.1020407@hardwarefreak.com> (raw)
In-Reply-To: <CADNH=7FxeF1qjYVpGcU1rW6LYDx=6e_LRa5+AUJqyV-hZ2K=XQ@mail.gmail.com>
Forgot to reply-all.
On 2/4/2013 2:29 PM, Mathias Burén wrote:
> On 4 February 2013 20:27, Mathias Burén <mathias.buren@gmail.com> wrote:
>> Hi list,
>>
>> I've an Intel Atom 330 running 32-bit Ubuntu, ~3.5GB RAM. The intent
>> is to store large media files (>4GB) for streaming by maximum 3
>> clients at any time. Very read heavy.
>> 6x 2TB HDDs are available, the crux is that 3 HDDs are on the on-board
>> SATA controller, the other 3 are on a Marvel PCI-E adapter
>>
>> cat /proc/mdstat
>>
>> Personalities : [raid10]
>> md125 : active raid10 sdg[1] sdf[0]
>> 1953382400 blocks super 1.2 512K chunks 2 far-copies [2/2] [UU]
>> [>....................] resync = 1.1% (22074880/1953382400)
>> finish=642.2min speed=50114K/sec
>>
>> md126 : active raid10 sde[1] sdd[0]
>> 1953382400 blocks super 1.2 512K chunks 2 far-copies [2/2] [UU]
>> [>....................] resync = 1.6% (31473408/1953382400)
>> finish=398.6min speed=80354K/sec
>>
>> md127 : active raid10 sdc[1] sdb[0]
>> 1953382400 blocks super 1.2 512K chunks 2 far-copies [2/2] [UU]
>> [>....................] resync = 1.1% (22630912/1953382400)
>> finish=617.9min speed=52073K/sec
>>
>> unused devices: <none>
>>
>> create commands:
>> 105 sudo mdadm --verbose --create md0 --level=10 --layout=f2
>> --raid-devices=2 /dev/sdb /dev/sdc
>> 106 sudo mdadm --verbose --create md1 --level=10 --layout=f2
>> --raid-devices=2 /dev/sdd /dev/sde
>> 107 sudo mdadm --verbose --create md2 --level=10 --layout=f2
>> --raid-devices=2 /dev/sdf /dev/sdg
>> 111 sudo mdadm --verbose --create md3 --level=10 --layout=f2
>> --raid-devices=3 /dev/md/md0 /dev/md/md1 /dev/md/md2
>> 118 sudo mdadm --stop /dev/md124 # to stop seek of death until the
>> above finishes resyncing
>>
>> I read that the far layout gives faster read performance compared to
>> standard RAID1 in a 2 HDD array, so that's why I used it. I then
>> created yet another RAID10 f2 layout of the 3x 2 disk RAID10 volumes,
>> giving me /dev/md124. Filesystem doesn't matter, I need something
>> that's stable with good performance over the RAID set.
>> I just realized that out of 12 TB raw space I now only have 3TB
>> available, heh. So I suppose I'm going for a different layout.
>>
>> Any opinions?
First, the Atom 330 is a 64 bit dual core chip. Use a 64 bit kernel
(preferably 3.0 or later, 2.6.39 minimum) and user space, unless you
have an old 32 bit app that won't run. The 64 bit kernel will give
better performance for an IO server, yes, even if you have less than 4GB
of RAM.
Second, given your workload description, it is a good match for RAID6,
which will give you 8TB capacity. Given the slow rotational speed of
those disks the default 512KB chunk should be fine as it will tend to
minimize seeks. With those drives head movement is far more expensive
that rotation.
Third, use XFS, and format with alignment to the md device:
~$ mkfs.xfs -d su=512k,sw=4
Fourth, even if your Marvell SATA card is PCIe x1 1.0 and limited to
250MB/s, 500MB/s duplex, that shouldn't cause problems in daily use,
though it may very well slow down RAID operations such as rebuilds and
reshapes. If it's a 2.0 card operating in 2.0 mode, it's 500/1000 MB/s,
exceeding the bandwidth of the 3 drives, and is ample.
--
Stan
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-02-04 23:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-04 20:27 What layout with 6x2TB, Intel Atom? Mathias Burén
2013-02-04 20:29 ` Mathias Burén
2013-02-04 20:47 ` Mathias Burén
2013-02-04 23:15 ` Stan Hoeppner [this message]
2013-02-05 0:01 ` Roy Sigurd Karlsbakk
2013-02-05 14:17 ` Stan Hoeppner
2013-02-05 0:04 ` Roy Sigurd Karlsbakk
2013-02-04 21:12 ` Roman Mamedov
2013-02-04 22:59 ` Steven Haigh
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=511040F5.1020407@hardwarefreak.com \
--to=stan@hardwarefreak.com \
--cc=linux-raid@vger.kernel.org \
--cc=mathias.buren@gmail.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;
as well as URLs for NNTP newsgroup(s).