[Lustre-discuss] xserve raid

2 views
Skip to first unread message

Brock Palen

unread,
Oct 17, 2007, 3:35:34 PM10/17/07
to lustre-...@clusterfs.com
We are doing some testing,

For a OST with a xserve raid connected to linux, is it better to not
have a partition table

mkfs.lustre /dev/sda

or to have a partition?
fdisk /dev/sda
mkfs.lustre /dev/sda1

Thank you :-)

Brock Palen
Center for Advanced Computing
bro...@umich.edu
(734)936-1985


_______________________________________________
Lustre-discuss mailing list
Lustre-...@clusterfs.com
https://mail.clusterfs.com/mailman/listinfo/lustre-discuss

Aaron Knister

unread,
Oct 17, 2007, 10:53:58 PM10/17/07
to Brock Palen, lustre-...@clusterfs.com
My personal opinion would be to create a partition. I'm not sure for the exact logistical reasons but there are some good ones (I just can't recall them).

-Aaron
Aaron Knister
Associate Systems Administrator/Web Designer
Center for Research on Environment and Water




Andreas Dilger

unread,
Oct 18, 2007, 4:42:31 AM10/18/07
to Brock Palen, lustre-...@clusterfs.com
On Oct 17, 2007 15:35 -0400, Brock Palen wrote:
> We are doing some testing,
>
> For a OST with a xserve raid connected to linux, is it better to not
> have a partition table
>
> mkfs.lustre /dev/sda
>
> or to have a partition?
> fdisk /dev/sda
> mkfs.lustre /dev/sda1

For RAID 5/6 devices we recommend NOT having a partition table. The reason
is that the partition table offsets the data partitions by a small amount
(512 bytes usually) and this causes writes to span multiple RAID chunks and
unnecessary read-modify-write activity.

For best performance, pick a RAID chunk size that divides evenly into
1MB (e.g. 4 or 8 data disks + parity). The ldiskfs mballoc code works
to align the allocation with the RAID chunk size for best performance.

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.

Brock Palen

unread,
Oct 18, 2007, 1:02:19 PM10/18/07
to Andreas Dilger, lustre-...@clusterfs.com
On Oct 18, 2007, at 4:42 AM, Andreas Dilger wrote:

> On Oct 17, 2007 15:35 -0400, Brock Palen wrote:
>> We are doing some testing,
>>
>> For a OST with a xserve raid connected to linux, is it better to not
>> have a partition table
>>
>> mkfs.lustre /dev/sda
>>
>> or to have a partition?
>> fdisk /dev/sda
>> mkfs.lustre /dev/sda1
>
> For RAID 5/6 devices we recommend NOT having a partition table.
> The reason
> is that the partition table offsets the data partitions by a small
> amount
> (512 bytes usually) and this causes writes to span multiple RAID
> chunks and
> unnecessary read-modify-write activity.
>
> For best performance, pick a RAID chunk size that divides evenly into
> 1MB (e.g. 4 or 8 data disks + parity). The ldiskfs mballoc code works
> to align the allocation with the RAID chunk size for best performance.

Thanks I will keep this in mind.

I did some basics test, 1MDS 1OST 1raid5 (half a xserve raid) Using
tiobench on 1 client, using no partition table netted about 5MB/s
faster for streaming read/write. I will scale up my tests though and
try some other raid configurations. Thanks for the help.

Brian J. Murrell

unread,
Oct 18, 2007, 1:11:09 PM10/18/07
to lustre-discuss
On Thu, 2007-10-18 at 13:02 -0400, Brock Palen wrote:
>
> I did some basics test, 1MDS 1OST 1raid5 (half a xserve raid) Using
> tiobench on 1 client, using no partition table netted about 5MB/s
> faster for streaming read/write. I will scale up my tests though and
> try some other raid configurations. Thanks for the help.

You could consider using the sgpdd_survey in our iokit. It was written
specifically to test raw disk throughput and can cover a large number of
concurrent threads and i/o sizes to show you the characteristics of your
disk.

Some disks, such as DDNs specifically (maybe there are others) are
recommended to use without partition tables because the partition table
at the beginning of the disk interferes with optimal alignment
characteristics of the disk and performance suffers as a result.

b.

Anand Bisen

unread,
Oct 18, 2007, 1:18:14 PM10/18/07
to Brian J. Murrell, lustre-discuss
Just to add a note, that if we do use partitions on the DDN storage
then, the partition should be created with first cylinder as 9 and
this will make sure that the alignment is optimal.

Thanks

Anand

Andreas Dilger

unread,
Oct 18, 2007, 6:09:39 PM10/18/07
to Brock Palen, lustre-...@clusterfs.com
On Oct 18, 2007 13:02 -0400, Brock Palen wrote:
> On Oct 18, 2007, at 4:42 AM, Andreas Dilger wrote:
> >For RAID 5/6 devices we recommend NOT having a partition table.
> >The reason
> >is that the partition table offsets the data partitions by a small
> >amount
> >(512 bytes usually) and this causes writes to span multiple RAID
> >chunks and
> >unnecessary read-modify-write activity.
> >
> >For best performance, pick a RAID chunk size that divides evenly into
> >1MB (e.g. 4 or 8 data disks + parity). The ldiskfs mballoc code works
> >to align the allocation with the RAID chunk size for best performance.
>
> Thanks I will keep this in mind.
>
> I did some basics test, 1MDS 1OST 1raid5 (half a xserve raid) Using
> tiobench on 1 client, using no partition table netted about 5MB/s
> faster for streaming read/write. I will scale up my tests though and
> try some other raid configurations. Thanks for the help.

The other important note - don't use RAID5 for the MDS if at all possible.
It generates largely small, random 4kB IO and is much better served by
RAID1 or RAID1+0.

Brock Palen

unread,
Oct 18, 2007, 6:52:56 PM10/18/07
to Andreas Dilger, lustre-...@clusterfs.com
>

Yes :-) the MDS is a software raid 1, Thanks for the tip though.

Niklas Edmundsson

unread,
Oct 22, 2007, 5:38:56 AM10/22/07
to lustre-...@clusterfs.com
On Thu, 18 Oct 2007, Andreas Dilger wrote:

>> We are doing some testing,
>>
>> For a OST with a xserve raid connected to linux, is it better to not
>> have a partition table

>> or to have a partition?

> For RAID 5/6 devices we recommend NOT having a partition table. The reason


> is that the partition table offsets the data partitions by a small amount
> (512 bytes usually) and this causes writes to span multiple RAID chunks and
> unnecessary read-modify-write activity.
>
> For best performance, pick a RAID chunk size that divides evenly into
> 1MB (e.g. 4 or 8 data disks + parity). The ldiskfs mballoc code works
> to align the allocation with the RAID chunk size for best performance.

I found http://insights.oetiker.ch/linux/raidoptimization.html a while
ago that discusses the alignment issue. I don't agree with the "Linux
Kernel Config Parameters" section, but the rest of the article
regarding alignment is OK.

The quick summary is: When using raid5/6, use LVM or no partitioning
at all. Stay away from PC partition tables. When using hardware raid,
use the correct mkfs-parameters to communicate stripe-size info to the
FS.

/Nikke
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se | ni...@hpc2n.umu.se
---------------------------------------------------------------------------
I used to read books. Now I read .qwk files.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Reply all
Reply to author
Forward
0 new messages