Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently purchased couple of 3Ware 7450-4 RAID card and I'm not so thrilled about the performance of the cards. Currently I configured a 3 HD (á 160Gb) RAID-5 (sda) and in the fourth channel I've one 160Gb HD for testing purposes (sdb). Here's the results of hdparm:
Code:
[root@localhost root]# hdparm -tT /dev/sda
/dev/sda:
Timing buffer-cache reads: 672 MB in 2.00 seconds = 336.00 MB/sec
Timing buffered disk reads: 50 MB in 3.01 seconds = 16.61 MB/sec
[root@localhost root]# hdparm -tT /dev/sdb
/dev/sdb:
Timing buffer-cache reads: 696 MB in 2.00 seconds = 348.00 MB/sec
Timing buffered disk reads: 182 MB in 3.01 seconds = 60.47 MB/sec
[root@localhost root]#
Output of lspci -vvv follows:
Code:
00:09.0 RAID bus controller: 3ware Inc 7xxx/8xxx-series PATA/SATA-RAID (rev 01)
Subsystem: 3ware Inc 7xxx/8xxx-series PATA/SATA-RAID
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (2250ns min), cache line size 08
Interrupt: pin A routed to IRQ 16
Region 0: I/O ports at dc00 [size=16]
Region 1: Memory at da800000 (32-bit, non-prefetchable) [size=16]
Region 2: Memory at da000000 (32-bit, non-prefetchable) [size=8M]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: [40] Power Management version 1
Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
I've tested several OS's and versions (ubuntu from 6.4 to 8.10, centos 3 and 5, freebsd6) and the performance (or lack of it) is not OS related. The computer in which the card is now installed has dual P3 1000MHz CPU's and roughly 1GB RAM. I tested also with other computer (800Duron) which has a motherboard officially supported by the 3Ware but it didn't change anything. I've the same problem with both of the RAID cards so it's not card related either (unless both of those are broken :|)
What can I do to enhance the performance and lower the CPU usage?
Stripe size is 64kB which can't be changed at the time when creating the array in the 3ware BIOS.
Code:
Unit 0 (Controller ID 0)
Status OK
Capacity 447.15 GB
Type RAID 5
Stripe 64kB
Subunits 4
Subunit 0
Status OK
Type DISK
Port 0
Subunit 1
Status OK
Type DISK
Port 1
Subunit 2
Status OK
Type DISK
Port 2
Subunit 3
Status OK
Type DISK
Port 3
Code:
Drive Information (Controller ID 0)
Port Model Capacity Serial # Firmware Unit Status
0 WDC WD1600AAJB-00WRA0 149.05 GB WD-WCAS2C137588 58.01H58 0 OK
1 ST3160812A 149.05 GB 4LS3MS6Y 3.AAJ 0 OK
2 WDC WD1600AAJB-00WRA0 149.05 GB WD-WCAS2C262152 58.01H58 0 OK
3 ST3160023A 149.05 GB 5JS3W4HJ 8.01 0 OK
The other settings didn't seem to affect that much.
The 29.99MB/sec is not that much I expected to have but it's something I can live with.
Now with the other issue. The CPU load. Is it normal that the load average is around 0.5 - 0.6 in situation where I'm copying four ISO images to the server simultaneously and copying one image from the server? Since the RAID card is hardware based shouldn't it do all the work and leave the CPU alone?
A hardware RAID controller is designed to off load the processor when doing RAID tasks. It will not help during reading and writing data. The main processor is handling the file system.
I suggest for better throughput is test both the Western Digital and Seagate hard drives separately. Set pairs of hard drives with the same brand in RAID level 0 and then test the raw throughput using hdparm. Do the same for other pair of hard drives. This separates which one is causing a conflict or a performance penalty. You should get close to 100 megabytes per second.
Bonnie++ is OK if you can read it correctly. I suggest iozone. It mainly tests everything as a whole.
It was indeed one of the disks that caused the poor performance (ST3160023A I think it was). Earlier I tested the configuration with 1+0 and it gave near 70Mb/sec so I thought all the disk are OK. Silly from me for not to do test separately for each disk time ago :|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.