Skip to contentSkip to conversation

4 disks in raid 5: 33MB/s read performance?

DISCUSSION Dexter Filmore 6 participants 11 messages May 22, 2006 – Jun 6, 2006 1 message not in the archive MD RAID

lore
Share & tools
lore
#0 lore raw

I just dd'ed a 700MB iso to /dev/null, dd returned 33MB/s.
Isn't that a little slow?
System is a sil3114 4 port sata 1 controller with 4 samsung spinpoint 250GB, 8MB cache in raid 5 on a Athlon XP 2000+/512MB.

Signature · 9 lines
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C+++(++++) UL+>++++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS++(+) PE(-) Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D G++ e* h>++ r%>* y?
------END GEEK CODE BLOCK------

http://www.stop1984.com
http://www.againsttcpa.com
#1 lore raw
Quoted 2 lines

I just dd'ed a 700MB iso to /dev/null, dd returned 33MB/s. Isn't that a little slow?

what bs parameter did you give to dd? it should be at least 3*chunk (probably 3*64k if you used defaults.)

#4 lore raw
In reply to Dexter Filmore
Quoted 5 lines · On Monday May 22, [email protected] wrote:

I just dd'ed a 700MB iso to /dev/null, dd returned 33MB/s.
Isn't that a little slow?
System is a sil3114 4 port sata 1 controller with 4 samsung spinpoint 250GB, 8MB cache in raid 5 on a Athlon XP 2000+/512MB.

Yes, read on raid5 isn't as fast as we might like at the moment.

It looks like you are getting about 11MB/s of each disk which is probably quite a bit slower than they can manage (what is the single-drive read speed you get dding from /dev/sda or whatever).

You could try playing with the readahead number (blockdev --setra/--getra). I'm beginning to think that the default setting is a little low.

You could also try increasing the stripe-cache size by writing numbers to
/sys/block/mdX/md/stripe_cache_size

On my test system with a 4 drive raid5 over fast SCSI drives, I get 230MB/sec on drives that give 90MB/sec.
If I increase the stripe_cache_size from 256 to 1024, I get 260MB/sec.

I wonder if your SATA controller is causing you grief. Could you try
dd if=/dev/SOMEDISK of=/dev/null bs=1024k count=1024
and then do the same again on all devices in parallel e.g.
dd if=/dev/SOMEDISK of=/dev/null bs=1024k count=1024 & dd if=/dev/SOMEOTHERDISK of=/dev/null bs=1024k count=1024 &
...

and see how the speeds compare.
(I get about 55MB/sec on each of 5 drives, or 270MB/sec, which is probably hitting the SCSI buss limit which as a theoretical max of 320MB/sec I think)

NeilBrown

#11 lore raw
In reply to a message not in the archive

Am Montag, 22. Mai 2006 22:31 schrieb Brendan Conoboy:

Quoted 11 lines
Quoted 4 lines · Dexter Filmore

I just dd'ed a 700MB iso to /dev/null, dd returned 33MB/s. Isn't that a little slow?
System is a sil3114 4 port sata 1 controller with 4 samsung spinpoint 250GB, 8MB cache in raid 5 on a Athlon XP 2000+/512MB.

Which SATA driver is being used? The ata_piix driver, for instance, has some of the multi-disk performance penalties as any ATA controller would have.

-Brendan ([email protected])

lsmod lists sata_sil.

Signature · 9 lines
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C+++(++++) UL+>++++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS++(+) PE(-) Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D G++ e* h>++ r%>* y?
------END GEEK CODE BLOCK------

http://www.stop1984.com
http://www.againsttcpa.com
#5 lore raw

Max. md array size under 32-bit i368 ...

In reply to Neil Brown

I know this has come up before, but a few quick googles hasn't answered my questions - I'm after the max. array size that can be created under bog-standard 32-bit intel Linux, and any issues re. partitioning.

I'm aiming to create a raid-6 over 12 x 500GB drives - am I going to have any problems?

(I'm not parittioning the resulting md device, just the underlying sd devices and building a single md out of sd[a-l]4 ...)

Cheers,

Gordon

#6 lore raw

Re: Max. md array size under 32-bit i368 ...

Quoted 6 lines · Gordon Henderson

I know this has come up before, but a few quick googles hasn't answered my questions - I'm after the max. array size that can be created under bog-standard 32-bit intel Linux, and any issues re. partitioning.

I'm aiming to create a raid-6 over 12 x 500GB drives - am I going to have any problems?

afraid not. it is like (12-2) * 500 > 2TB.

Quoted 11 lines

(I'm not parittioning the resulting md device, just the underlying sd devices and building a single md out of sd[a-l]4 ...)

Cheers,

Gordon
-
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

#2 lore raw
In reply to Mark Hahn
Quoted 8 lines · Mark Hahn
Quoted 4 lines

I just dd'ed a 700MB iso to /dev/null, dd returned 33MB/s. Isn't that a little slow?

what bs parameter did you give to dd? it should be at least 3*chunk (probably 3*64k if you used defaults.)

I would expect readahead to make this unproductive. Mind you, I didn't say it is, but I can't see why not. There was a problem with data going through stripe cache when it didn't need to, but I thought that was fixed.

Neil? Am I an optimist?

Signature · 3 lines
bill davidsen <[email protected]>
 CTO TMR Associates, Inc
 Doing interesting things with small computers since 1979
#7 lore raw

Re: Max. md array size under 32-bit i368 ...

In reply to Gordon Henderson
Quoted 7 lines · On Wednesday May 24, [email protected] wrote:

I know this has come up before, but a few quick googles hasn't answered my questions - I'm after the max. array size that can be created under bog-standard 32-bit intel Linux, and any issues re. partitioning.

I'm aiming to create a raid-6 over 12 x 500GB drives - am I going to have any problems?

No, this should work providing your kernel is compiled with CONFIG_LBD.

NeilBrown

Quoted 11 lines

(I'm not parittioning the resulting md device, just the underlying sd devices and building a single md out of sd[a-l]4 ...)

Cheers,

Gordon
-
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

#3 lore raw
In reply to Bill Davidsen
Quoted 11 lines · On Wednesday May 24, [email protected] wrote:
Quoted 8 lines · Mark Hahn
Quoted 4 lines

I just dd'ed a 700MB iso to /dev/null, dd returned 33MB/s. Isn't that a little slow?

what bs parameter did you give to dd? it should be at least 3*chunk (probably 3*64k if you used defaults.)

Quoted 5 lines

I would expect readahead to make this unproductive. Mind you, I didn't say it is, but I can't see why not. There was a problem with data going through stripe cache when it didn't need to, but I thought that was fixed.

Neil? Am I an optimist?

Probably....

You are write about readahead - it should make the difference in block size irrelevant.

You are wrong about the problem of reading through the cache being fixed. It hasn't yet. We still read through the cache. However that shouldn't cause more than a 10% speed reduction, and 33MB/s sounds like more than 10% down.

NeilBrown

#9 lore raw
In reply to Neil Brown
Quoted 6 lines · On Monday May 22, [email protected] wrote:
Quoted 4 lines

I just dd'ed a 700MB iso to /dev/null, dd returned 33MB/s. Isn't that a little slow?
System is a sil3114 4 port sata 1 controller with 4 samsung spinpoint 250GB, 8MB cache in raid 5 on a Athlon XP 2000+/512MB.

Quoted 8 lines

Yes, read on raid5 isn't as fast as we might like at the moment.

It looks like you are getting about 11MB/s of each disk which is probably quite a bit slower than they can manage (what is the single-drive read speed you get dding from /dev/sda or whatever).

You could try playing with the readahead number (blockdev --setra/--getra). I'm beginning to think that the default setting is a little low.

Changed from 384 to 1024, no improvement.

Quoted 4 lines

You could also try increasing the stripe-cache size by writing numbers to
/sys/block/mdX/md/stripe_cache_size

Actually, there's no directory /sys/block/md0/md/ here. Can I find that in proc somewhere? And what are sane numbers for this setting?

Quoted 8 lines

I wonder if your SATA controller is causing you grief. Could you try
dd if=/dev/SOMEDISK of=/dev/null bs=1024k count=1024
and then do the same again on all devices in parallel e.g.
dd if=/dev/SOMEDISK of=/dev/null bs=1024k count=1024 & dd if=/dev/SOMEOTHERDISK of=/dev/null bs=1024k count=1024 &
...

 4112 pts/0    R      0:00 dd if /dev/sda of /dev/null bs 1024k count 1024
 4113 pts/0    R      0:00 dd if /dev/sdb of /dev/null bs 1024k count 1024
 4114 pts/0    R      0:00 dd if /dev/sdc of /dev/null bs 1024k count 1024
 4115 pts/0    R      0:00 dd if /dev/sdd of /dev/null bs 1024k count 1024
 4116 pts/0    R+     0:00 ps ax

1024+0 Datensätze ein
1024+0 Datensätze aus
1073741824 Bytes (1,1 GB) kopiert, 34,5576 Sekunden, 31,1 MB/s 1024+0 Datensätze ein
1024+0 Datensätze aus
1073741824 Bytes (1,1 GB) kopiert, 36,073 Sekunden, 29,8 MB/s 1024+0 Datensätze ein
1024+0 Datensätze aus
1073741824 Bytes (1,1 GB) kopiert, 40,5109 Sekunden, 26,5 MB/s 1024+0 Datensätze ein
1024+0 Datensätze aus
1073741824 Bytes (1,1 GB) kopiert, 40,5054 Sekunden, 26,5 MB/s

(Partly german, but I think you get it)

A single disks pumps out 65-70MB/s. Since they are on a PCI 32bit controller the combined speeds when reading from all four disks at once pretty much max the 133MB/s PCI limit. (I' surprised it comes so close. That controller works pretty well for 18 bucks.)

Dex

Signature · 13 lines
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C+++(++++) UL+>++++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS++(+) PE(-) Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ 
b++(+++) DI+++ D G++ e* h>++ r%>* y?
------END GEEK CODE BLOCK------

http://www.stop1984.com
http://www.againsttcpa.com
-
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
#8 lore raw

Quick Question ..

In reply to Gordon Henderson

I'm just after conformation (or not!) of something I've done for a long time which I think is right - it certainly seem right, but one of those things I've always wondered about ...

When creating an array I allocate drives from alternative controllers with the thought that the OS/system/hardware might be able to better overlap accesses to the devices - but it sort of assumes that the kernel drivers (and/or mdadm) don't re-order accesses to the devices internally (I'm not counting SCSI logical re-ordering here)

So. eg. an example I'm working on now - I have a server with 2 external facing SCSI interfaces, and a box with 14 drives on 2 chains - so 7 drives on each interface (I'd prefer less, but it's what I've got - it's a Dell external box) sd{a-g} are on scsi0, and sd{h-n} are on scsi1, so I issue the create command with:

  mdadm --create /dev/md1 -n14 -l6	\
	 /dev/sda /dev/sdh		\
	 /dev/sdb /dev/sdi		\
	etc.

I guess benchmarking it would be the way to really test it, but I'm not after performance for this particular box - just after some thoughts as to whether this is the "best" (or not!) way to do things, or if I'm wasting my time doing it this way!

Thanks,

Gordon