Skip to contentSkip to conversation

3ware bad write speed.

DISCUSSION Donghui Wen 4 participants 6 messages Mar 22, 2003 – Apr 2, 2003 MD RAID

lore
Share & tools
lore
#0 lore raw

Hi,
We used 3ware 7500-4 as ide raid controler on a redhat advanced server
machine.
(kernel 2.4.9-e12, lastest 3ware driver). But we got a pretty bad write speed.

Sequential Writes
File Blk Num Avg

Maximum      Lat%     Lat%    CPU
Identifier                    Size  Size  Thr   Rate  (CPU%)  Latency
Latency      >2s      >10s    Eff
---------------------------- ------ ----- ---  ------ ------ --------- -----
------  -------- -------- -----
2.4.9-e.12enterprise          1792  4096    1    8.99 6.920%     0.394
29064.03   0.00240  0.00218   130
2.4.9-e.12enterprise          1792  4096    2   10.55 17.61%     0.637
23474.59   0.00480  0.00218    60
2.4.9-e.12enterprise          1792  4096    4    1.94 11.22%     0.156
1861.13   0.00000  0.00000    17
2.4.9-e.12enterprise          1792  4096    8    0.83 7.171%     0.274

995.19 0.00000 0.00000 12

I saw a thread (http://www.spinics.net/lists/raid/msg01762.html)
discussing the simillar problem by your guys. The possible reason you
pointed out is:
3ware card has its own caching mechanism to accelerate sequential
write, but combine with linux's
own VM caching and journaling filesystem, the disk physical accesses
aren't actually sequential.

I have several questions:

(1) Does this problem only exists in 3ware ide raid adaptor? We test SCSI
too, it is much faster.
If it is 3ware's driver problem, scsi raid should have the same
problem.
(2) Has 3ware fixed this problem yet? They claim they support linux.
(3) One solution is to setup 3ware in jbod mode and use linux
software-raid.
what percentage of CPU used if using software-raid? It might cost too
much CPU power
without using hardware raid.
(4) Other than 3ware, is there any better raid card supported by linux?

I appreciate your guys help

Donghui Wen

#1 lore raw

On Sat, 22 Mar 2003 at 12:45pm, Donghui Wen wrote

Quoted 20 lines

Hi,
We used 3ware 7500-4 as ide raid controler on a redhat advanced server
machine.
(kernel 2.4.9-e12, lastest 3ware driver). But we got a pretty bad write speed.

Sequential Writes
File Blk Num Avg

Maximum      Lat%     Lat%    CPU
Identifier                    Size  Size  Thr   Rate  (CPU%)  Latency
Latency      >2s      >10s    Eff
---------------------------- ------ ----- ---  ------ ------ --------- -----
------  -------- -------- -----
2.4.9-e.12enterprise          1792  4096    1    8.99 6.920%     0.394
29064.03   0.00240  0.00218   130
2.4.9-e.12enterprise          1792  4096    2   10.55 17.61%     0.637
23474.59   0.00480  0.00218    60
2.4.9-e.12enterprise          1792  4096    4    1.94 11.22%     0.156
1861.13   0.00000  0.00000    17
2.4.9-e.12enterprise          1792  4096    8    0.83 7.171%     0.274
Quoted 1 line

995.19 0.00000 0.00000 12

The card is capable of much better than that. Here are my numbers from a 7 disk RAID5 array (8th is a hot spare) on a 7500-8 board:

Sequential Writes
File Blk Num Avg
Maximum
Lat% Lat% CPU
Identifier Size Size Thr Rate (CPU%) Latency
Latency
>2s >10s Eff
---------------------------- ------ ----- --- ------ ------ ---------
---------
-- -------- -------- -----
2.4.18-17SGI_XFS_1.2pre3smp 4096 4096 1 49.50 20.52% 0.068
2915.
71 0.00124 0.00000 241
2.4.18-17SGI_XFS_1.2pre3smp 4096 4096 2 45.17 23.21% 0.141
7873.
45 0.00343 0.00000 195
2.4.18-17SGI_XFS_1.2pre3smp 4096 4096 4 39.98 23.29% 0.335
13338.
23 0.00887 0.00010 172
2.4.18-17SGI_XFS_1.2pre3smp 4096 4096 8 39.23 24.30% 0.631
7887.
96 0.01535 0.00000 161

Obviously I've got more spindles, but your speeds shouldn't be *that* bad. Some things to check:

1) You said latest drivers, but make sure that you upgraded everything -- a driver set from 3ware is driver+firmware+3dm. Specifically, make sure your firmware is up to date with your driver.

2) Make sure that your kernel supports HIGHIO. I don't know if that enterprise kernel does (do you need to run it?), but it makes a *big* difference. The latest 3ware drivers support HIGHIO, but the kernel needs to as well.

3) Make sure your drives are listed as compatible.

4) Try a different FS. The numbers above are with XFS -- with ext3 I was getting write speeds of only half that (at best).

Good luck.

Signature · 3 lines
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University
#2 lore raw

Thanks! Joshua:
We are runing oracle on rehat advanced server 2.1. Oracle only certified
this version of redhat with ext2. That' why we could not switch to another linux
or file system. :-(

Donghui

Quoted 55 lines

The card is capable of much better than that. Here are my numbers from a 7 disk RAID5 array (8th is a hot spare) on a 7500-8 board:

Sequential Writes
File Blk Num Avg
Maximum
Lat% Lat% CPU
Identifier Size Size Thr Rate (CPU%) Latency
Latency
>2s >10s Eff
---------------------------- ------ ----- --- ------ ------ ---------
---------
-- -------- -------- -----
2.4.18-17SGI_XFS_1.2pre3smp 4096 4096 1 49.50 20.52% 0.068
2915.
71 0.00124 0.00000 241
2.4.18-17SGI_XFS_1.2pre3smp 4096 4096 2 45.17 23.21% 0.141
7873.
45 0.00343 0.00000 195
2.4.18-17SGI_XFS_1.2pre3smp 4096 4096 4 39.98 23.29% 0.335
13338.
23 0.00887 0.00010 172
2.4.18-17SGI_XFS_1.2pre3smp 4096 4096 8 39.23 24.30% 0.631
7887.
96 0.01535 0.00000 161

Obviously I've got more spindles, but your speeds shouldn't be *that* bad. Some things to check:

1) You said latest drivers, but make sure that you upgraded everything -- a driver set from 3ware is driver+firmware+3dm. Specifically, make sure your firmware is up to date with your driver.

2) Make sure that your kernel supports HIGHIO. I don't know if that enterprise kernel does (do you need to run it?), but it makes a *big* difference. The latest 3ware drivers support HIGHIO, but the kernel needs to as well.

3) Make sure your drives are listed as compatible.

4) Try a different FS. The numbers above are with XFS -- with ext3 I was getting write speeds of only half that (at best).

Good luck.

--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University

-
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 Joshua Baker-LePain
Quoted 4 lines · Joshua Baker-LePain

2) Make sure that your kernel supports HIGHIO. I don't know if that enterprise kernel does (do you need to run it?), but it makes a *big* difference. The latest 3ware drivers support HIGHIO, but the kernel needs to as well.

what is this HIGHIO (patch?) ?

#4 lore raw

On Wed, 26 Mar 2003 at 1:40am, Stephan van Hienen wrote

Quoted 8 lines · Joshua Baker-LePain
Quoted 5 lines

2) Make sure that your kernel supports HIGHIO. I don't know if that enterprise kernel does (do you need to run it?), but it makes a *big* difference. The latest 3ware drivers support HIGHIO, but the kernel needs to as well.

what is this HIGHIO (patch?) ?

From Documentation/Configure.help:

HIGHMEM I/O support
CONFIG_HIGHIO
If you want to be able to do I/O to high memory pages, say Y. Otherwise low memory pages are used as bounce buffers causing a degrade in performance.

It's in mainline as of 2.4.20, and I know that RH has included it for a while.

Signature · 3 lines
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University
#5 lore raw
In reply to Donghui Wen

Hi *

I am using several hardware raid systems based on 3Ware, Adaptec and AC&NC hardware.

The Mainboard of the test machine is a Supermicro P4DMS-6GM with two Xeon 2.4GHz Processors and 1 Gig of RAM.

IDE (WD 120 Gig) disks are used in the AC&NC Jetstor III (14 disks) and in the 3Ware (7 disks). The Adaptec Raids use SCSI (Seagate) Disks.

All these systems show a remarkably bad performance (max. 80 MB/s write and max. 70 MB/s read, exact figures (bonnie++,iostat) available).

I am using kernel 2.4.20 without any patches (Highmem on / i2o off) and an ext3 filesystem.
I have played around with different stride settings and block sizes as well as chunk sizes on the raid and experienced minor differences within the above limits.

By setting

echo 256 > /proc/sys/vm/max-readahead
echo 128 > /proc/sys/vm/min-readahead

I could convince the 3ware to read data with up to 114 MB/s.

So basically I am experiencing the same bad speeds (especially write speeds) as Donghui (and others).

It seems to me like there might be a common reason behind the bad performance. (the VM Layer settings?)

While writing this email I just finished a bonnie++ run on a new software raid using 8 SCSI Disks:

softr.8disk.64chunk,2000M:64k,13630,99,41206,41,27280,27,15278,97,156480,62,329.8,12,16,1322,81,+++++,+++,29177,99,1510,99,+++++,+++,3981,98

That's an amazing difference in reading speed to the hardware raids (soft:156480;hard:70155). I will most probably not be able to convert all my Raids to Software Raids, so I would like to reach a similar performance with the Hardware Raid.

Any ideas,comments,...?

Christian