Raid0 or Raid1 READ performance
Hi,
I tested and measured the Copy performance using "time cp". My system Config: Redhat9.0, RocketRAID404 HPT374 card,
Hdd1 ---> /mnt/disk1
Hdd2, Hdd3, Hdd4 --> RAID0 : /mnt/disk2
OR
Hdd1 ------> /mnt/disk1
Hdd3, Hdd4 --> RAID1 : /mnt/disk2I got the almost same performance on WRITE( disk1 --> disk2) and
READ ( disk2 -> disk1).
EX: >time cp disk1/2gfile disk2, >time cp disk2/2gfile disk1
I am expecting the faster performance on READ than WRITE because of parallel read from disks more than 2(2 for RAID1, 3 for RAID0) at the same time.
I heard that old linux ide driver did not support this parallelism but must be fixed by now(linux2.4.20 or greater).
Any suggestion or opinion?
Thanks,
Bo
Quoted 3 lines
I am expecting the faster performance on READ than WRITE because of parallel read from disks more than 2(2 for RAID1, 3 for RAID0) at the same time.
if I understand your description, each of your tests involves either reading or writing from a single disk (and also writing/reading a raid.) such tests will always run at the speed of the slowest disk, presumably the single one. for instance,
cp /some-2-disk-raid0/file /other-single-disk/
will be limited by the write speed of other-single-disk, and not the raid.
cp /other-single-disk/file /some-2-disk-raid0/
is similar, though now it's the reading from a single disk which is the bottleneck.
Quoted 1 line
Any suggestion or opinion?
test bandwidth with something more reasonable than time cp. even "time dd if=/disk-to-read-from of=/dev/zero bs=64k" is more sensible.
regards, mark hahn.
Mark,
Thanks for your opinion and suggestion.
You are right to get the real and meaningful performance, I should Follow your suggestion.
My real attention is to find the difference in READ operation between Single(one HDD) and RAID0 or RAID1 by the parallelism( access or read data block from more than 2 HDDs at the same time).
I tried with "time dd if=dev of=/dev/zero bs=64K". There is no Difference.
Any more comments?
Thanks,
Bo
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mark Hahn
Sent: Thursday, December 16, 2004 2:48 PM
To: BO MOON
Cc: [email protected]
Subject: Re: Raid0 or Raid1 READ performance
Quoted 3 lines
I am expecting the faster performance on READ than WRITE because of parallel read from disks more than 2(2 for RAID1, 3 for RAID0) at the same time.
if I understand your description, each of your tests involves either reading or writing from a single disk (and also writing/reading a raid.) such tests will always run at the speed of the slowest disk, presumably the single one. for instance,
cp /some-2-disk-raid0/file /other-single-disk/
will be limited by the write speed of other-single-disk, and not the raid.
cp /other-single-disk/file /some-2-disk-raid0/
is similar, though now it's the reading from a single disk which is the bottleneck.
Quoted 1 line
Any suggestion or opinion?
test bandwidth with something more reasonable than time cp. even "time dd if=/disk-to-read-from of=/dev/zero bs=64k" is more sensible.
regards, mark hahn.
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html