* mdadm raid10 performance
@ 2008-06-01 20:47 Марк Коренберг
2008-06-01 21:22 ` Justin Piszcz
2008-06-02 10:26 ` Keld Jørn Simonsen
0 siblings, 2 replies; 3+ messages in thread
From: Марк Коренберг @ 2008-06-01 20:47 UTC (permalink / raw)
To: linux-raid
Hello. I have a simple question.
I just created mdadm raid10 with four disks. The raid build process
complete successfully.
All of 4 HDD are connected with separate SATA wires directly to motherboard.
The mode of operation (selected in bios) neither AHCI nor RAID.
I decide to acheive performance information of software RAID.
So I read 10 blocks by 64Mb. This give me roughly performance of one disk.
(I expect that it will be 4x speed ! it should read from 4 hdd
simultaneously!!!, BUT NOT! )
So, second test were reading 10 blocks (from 0 to 9) in one process,
and 10 blocks (from 10 to 19) in second thread.
I acheive performance of half disk... in each thread.
WTF? maybe raid is configured incorrectly ? Or my tests are invalid ?
=========================================
hoster:/etc/network# mdadm --misc --detail /dev/md_d127
/dev/md_d127:
Version : 00.90.03
Creation Time : Sat Jun 2 21:57:07 2007
Raid Level : raid10
Array Size : 321672832 (306.77 GiB 329.39 GB)
Device Size : 160836416 (153.39 GiB 164.70 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 127
Persistence : Superblock is persistent
Update Time : Mon Jun 2 02:16:42 2008
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : near=2, far=1
Chunk Size : 64K
UUID : 77f3a162:77989072:b81e87f5:476e32bb
Events : 0.30
Number Major Minor RaidDevice State
0 8 0 0 active sync /dev/sda
1 8 32 1 active sync /dev/sdc
2 8 16 2 active sync /dev/sdb
3 8 48 3 active sync /dev/sdd
=========================================
hoster:~# export LANG=C; dd if=/dev/sda of=/dev/null bs=64M count=10
671088640 bytes (671 MB) copied, 11.7029 seconds, 57.3 MB/s
=========================================
hoster:~# export LANG=C; for i in sda sdb sdc sdd; do dd if=/dev/$i
of=/dev/null bs=64M count=10 & done
671088640 bytes (671 MB) copied, 13.2656 seconds, 50.6 MB/s
671088640 bytes (671 MB) copied, 13.3142 seconds, 50.4 MB/s
671088640 bytes (671 MB) copied, 14.1144 seconds, 47.5 MB/s
671088640 bytes (671 MB) copied, 14.1733 seconds, 47.3 MB/s
=========================================
hoster:~# export LANG=C; dd if=/dev/md_d127 of=/dev/null bs=64M count=10
671088640 bytes (671 MB) copied, 9.55816 seconds, 70.2 MB/s
=========================================
hoster:~# for i in 0 10; do time dd skip=$i if=/dev/md_d127
of=/dev/null bs=64M count=10& done
671088640 bytes (671 MB) copied, 24.0492 seconds, 27.9 MB/s
671088640 bytes (671 MB) copied, 24.821 seconds, 27.0 MB/s
=========================================
hoster:~# for i in 1 2; do time dd if=/dev/md_d127 of=/dev/null bs=64M
count=10& done
671088640 bytes (671 MB) copied, 19.4049 seconds, 34.6 MB/s
671088640 bytes (671 MB) copied, 19.4407 seconds, 34.5 MB/s
=========================================
hoster:~# uname -a
Linux hoster 2.6.18-4-686 #1 SMP Wed May 9 23:03:12 UTC 2007 i686 GNU/Linux
hoster:~# cat /proc/cpuinfo
processor : 0
model name : Intel(R) Xeon(TM) CPU 2.66GHz
cpu MHz : 2660.173
cache size : 2048 KB
(and so on for processors 1-7)
(total 8 processors)
==================================
Any ideas ?
--
Segmentation fault
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mdadm raid10 performance
2008-06-01 20:47 mdadm raid10 performance Марк Коренберг
@ 2008-06-01 21:22 ` Justin Piszcz
2008-06-02 10:26 ` Keld Jørn Simonsen
1 sibling, 0 replies; 3+ messages in thread
From: Justin Piszcz @ 2008-06-01 21:22 UTC (permalink / raw)
To: Марк Коренберг
Cc: linux-raid
On Mon, 2 Jun 2008, ???? ????????? wrote:
> Hello. I have a simple question.
>
> I just created mdadm raid10 with four disks. The raid build process
> complete successfully.
> All of 4 HDD are connected with separate SATA wires directly to motherboard.
> The mode of operation (selected in bios) neither AHCI nor RAID.
>
> I decide to acheive performance information of software RAID.
> So I read 10 blocks by 64Mb. This give me roughly performance of one disk.
> (I expect that it will be 4x speed ! it should read from 4 hdd
> simultaneously!!!, BUT NOT! )
1. What motherboard? Does it have PCI-e lanes? Or is the I/O on the regular
PCI bus? If you have 8 CPUs as it shows below you really should not be running
into I/O problems, see my earlier post to the mailing list, you want to run
something similar to:
dd if=/dev/sda of=/dev/null bs=1M
dd if=/dev/sdb of=/dev/null bs=1M
Then, run:
dstat -D sda,sdb,sdc,sdd
Show the output!
>
> So, second test were reading 10 blocks (from 0 to 9) in one process,
> and 10 blocks (from 10 to 19) in second thread.
> I acheive performance of half disk... in each thread.
2. I am not sure how RAID10 in linux handles it but with raid1 you need to use
2 or 3 threads simultaenously to pull data from multiple disks _and_ you need
a backplane/interface/chipset that can handle that bandwidth.
Justin.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mdadm raid10 performance
2008-06-01 20:47 mdadm raid10 performance Марк Коренберг
2008-06-01 21:22 ` Justin Piszcz
@ 2008-06-02 10:26 ` Keld Jørn Simonsen
1 sibling, 0 replies; 3+ messages in thread
From: Keld Jørn Simonsen @ 2008-06-02 10:26 UTC (permalink / raw)
To: ???? ?????????; +Cc: linux-raid
On Mon, Jun 02, 2008 at 02:47:53AM +0600, ???? ????????? wrote:
> Hello. I have a simple question.
>
> I just created mdadm raid10 with four disks. The raid build process
> complete successfully.
> All of 4 HDD are connected with separate SATA wires directly to motherboard.
> The mode of operation (selected in bios) neither AHCI nor RAID.
>
> I decide to acheive performance information of software RAID.
> So I read 10 blocks by 64Mb. This give me roughly performance of one disk.
> (I expect that it will be 4x speed ! it should read from 4 hdd
> simultaneously!!!, BUT NOT! )
>
> So, second test were reading 10 blocks (from 0 to 9) in one process,
> and 10 blocks (from 10 to 19) in second thread.
> I acheive performance of half disk... in each thread.
>
> WTF? maybe raid is configured incorrectly ? Or my tests are invalid ?
>
> Any ideas ?
have a look on the howto performance section.
http://linux-raid.osdl.org/index.php/Performance
the far layout is "far" better:-)
Also note the problem solving section there.
doing IO in more threads will have your array behave in random read
mode.
What kernel are you running?
best regards
keld
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-02 10:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-01 20:47 mdadm raid10 performance Марк Коренберг
2008-06-01 21:22 ` Justin Piszcz
2008-06-02 10:26 ` Keld Jørn Simonsen
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).