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
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.
> 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.
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.
Thanks
Anand
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.
Yes :-) the MDS is a software raid 1, Thanks for the tip though.
>> 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.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=