Did not get the Hard drive performance Raid-0

Malik Ali alimalik98 at yahoo.com
Sun Jul 11 11:48:56 UTC 2004


Hi
Why isn't the speed of raid-0 twice of the non-raid
devices?
I wonder the rate of data should be twice the
non-raid, if data transfering from or to on raid
device but it is not happening. Even raid device seems
to be slower than non-raid.

I got four ultra ATA 100 seagate drives 120 GB each.
hda, hdb the non-raid regular HDD (see !!!kernel log2)
sda is a raid-0 device comprise of to ultra ATA 100 on
promise fast track controller(see !!!kernel log3)

Here is a math of transfering 1 GB file in different
route

1- hda to hdb 50 secs (20.5 MB/s)
2- hda to hda 81 secs (13 MB/s)
3- sda to hda 50 secs (20.5 MB/s)
4- sda to sda 81 secs (13 MB/s)
5- hda to sda 77 secs (13 MB/s)
*These test has been taken so many times and the
result are very close.

Following are more details

I am using the RH8 on Intel S845WDE-1 having Promise
20267 on board controller and 512 DDR266 RAM. The bios
is configured with array of 2 disk on raid 0.

The both harddrives are conneted with different
channel as Master Drives (See # cat
/proc/ide/pdc202xx)

I had intall RH8 as per given instruction in readme on
promise driver that is booting linux with
Boot: linux ide0=ox... expert (see !!!kernel log1)
and install the driver downloaded from the intel
downloads page.

At the time of partition I chose disk druid, formated
whole free space of /dev/sda with ext3.
After completion of installation i found sda as
unformated. (Why?)

I had formated the raid device by using the mke2fs
command
# mke2fs -j -R stride=16 /dev/sda

Before Installation these Harddrives are configure on
windows 2000 professional with same H/W configuration,
providing faster even twice the throughput. 

I had check HDD the are well when I used them as
regular drives.

No Hardware fault any more!

I dont have option to switch on the Linux software
raid. I must use the Hardware/Firmware Raid on my
board.

################### Kernel Setup Log ################
Linux version 2.4.18-14
(bhcompile at stripples.devel.redhat.com) (gcc version
3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Wed Sep 4
13:35:50 EDT 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009bc00
(usable)
BIOS-e820: 000000000009bc00 - 000000000009c000
(reserved)
BIOS-e820: 00000000000e8000 - 0000000000100000
(reserved)
BIOS-e820: 0000000000100000 - 000000001ffc0000
(usable)
BIOS-e820: 000000001ffc0000 - 000000001fff8000 (ACPI
data)
BIOS-e820: 000000001fff8000 - 0000000020000000 (ACPI
NVS)
BIOS-e820: 00000000fec00000 - 00000000fec01000
(reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000
(reserved)
BIOS-e820: 00000000ffb80000 - 00000000ffc00000
(reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000
(reserved)
0MB HIGHMEM available.
511MB LOWMEM available.
On node 0 totalpages: 131008
zone(0): 4096 pages.
zone(1): 126912 pages.
zone(2): 0 pages.
!!! Kernel log1
Kernel command line: ro root=LABEL=/ ide0=0x1f0,0x3f6
ide1=0x170,0x376 ide2=0 ide3=0 ide4=0 ide5=0 ide6=0
ide7=0 ide8=0 ide9=0
ide_setup: ide0=0x1f0,0x3f6

ide_setup: ide1=0x170,0x376

ide_setup: ide2=0

ide_setup: ide3=0

ide_setup: ide4=0

ide_setup: ide5=0

ide_setup: ide6=0

ide_setup: ide7=0

ide_setup: ide8=0

ide_setup: ide9=0

Initializing CPU#0
Detected 2392.070 MHz processor.
Speakup v-1.00 CVS: Tue Jun 11 14:22:53 EDT 2002 :
initialized
Console: colour VGA+ 80x25
Calibrating delay loop... 4750.85 BogoMIPS
Memory: 511088k/524032k available (1326k kernel code,
10364k reserved, 999k data, 212k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7,
524288 bytes)
Inode cache hash table entries: 32768 (order: 6,
262144 bytes)
Mount cache hash table entries: 8192 (order: 4, 65536
bytes)
ramfs: mounted with options: <defaults>
ramfs: max_pages=64158 max_file_pages=0 max_inodes=0
max_dentries=64158
Buffer cache hash table entries: 32768 (order: 5,
131072 bytes)
Page-cache hash table entries: 131072 (order: 7,
524288 bytes)
CPU: Before vendor init, caps: bfebfbff 00000000
00000000, vendor = 0
CPU: L1 I cache: 0K, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: After vendor init, caps: bfebfbff 00000000
00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: bfebfbff 00000000 00000000
00000000
CPU: Common caps: bfebfbff 00000000 00000000 00000000
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 07
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch
(rgooch at atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfda95, last
bus=2
PCI: Using configuration type 1
PCI: Probing PCI hardware
Unknown bridge resource 0: assuming transparent
PCI: Using IRQ router PIIX [8086/2440] at 00:1f.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
speakup: initialized device: /dev/synth, node (MAJOR
10, MINOR 25)
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society
NET3.039
Initializing RT netlink socket
apm: BIOS not found.
Starting kswapd
VFS: Diskquotas version dquot_6.5.0 initialized
pty: 2048 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with
MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP
enabled
ttyS0 at 0x03f8 (irq = 4) is a 16550A
ttyS1 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10e
oprofile: can't get RTC I/O Ports
block: 992 slots per queue, batch=248
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes;
override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev f9
PIIX4: chipset revision 5
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hdaMA,
hdbMA
PDC20267: IDE controller on PCI bus 02 dev 70
PCI: Found IRQ 9 for device 02:0e.0
PDC20267: chipset revision 2
PDC20267: not 100% native mode: will probe irqs later
PDC20267: (U)DMA Burst Bit ENABLED Primary MASTER Mode
Secondary MASTER Mode.
PDC20267: too many IDE interfaces, no room in table
PDC20267: too many IDE interfaces, no room in table
PDC20267: neither IDE port enabled (BIOS)

!!!kernel log2
hda: ST3120022A, ATA DISK drive
hdb: ST3120022A, ATA DISK drive
ide2: ports already in use, skipping probe
ide3: ports already in use, skipping probe
ide4: ports already in use, skipping probe
ide5: ports already in use, skipping probe
ide6: ports already in use, skipping probe
ide7: ports already in use, skipping probe
ide8: ports already in use, skipping probe
ide9: ports already in use, skipping probe
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
blk: queue c03c0004, I/O limit 4095Mb (mask
0xffffffff)
blk: queue c03c0004, I/O limit 4095Mb (mask
0xffffffff)
hda: 234441648 sectors (120034 MB) w/2048KiB Cache,
CHS=14593/255/63, UDMA(100)
blk: queue c03c0140, I/O limit 4095Mb (mask
0xffffffff)
blk: queue c03c0140, I/O limit 4095Mb (mask
0xffffffff)
hdb: 234441648 sectors (120034 MB) w/2048KiB Cache,
CHS=14593/255/63, UDMA(100)
ide-floppy driver 0.99.newide
Partition check:
hda: hda1 hda2 hda3
hdb: unknown partition table
FDC 0 is a post-1991 82077
NET4: Frame Diverter 0.46
RAMDISK driver initialized: 16 RAM disks of 4096K size
1024 blocksize
ide-floppy driver 0.99.newide
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind
65536)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 241k freed
VFS: Mounted root (ext2 filesystem).
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k
scsi_hostadapter, errno = 2

!!!kernel log3
Promise FastTrak Series Linux Driver Version 1.2.0.15
scsi0 : FASTTRAK
Vendor: Promise Model: 2+0 Stripe/RAID0 Rev: 1.10
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun
0
SCSI device sda: 468882944 512-byte hdwr sectors
(240068 MB)
sda: unknown partition table
Journalled Block Device driver loaded
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 212k freed
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 13:44:31 Sep 4
2002
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 11 for device 00:1f.2
PCI: Sharing IRQ 11 with 02:0d.0
PCI: Setting latency timer of device 00:1f.2 to 64
usb-uhci.c: USB UHCI at I/O 0xef40, IRQ 11
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 10 for device 00:1f.4
PCI: Setting latency timer of device 00:1f.4 to 64
usb-uhci.c: USB UHCI at I/O 0xef80, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller
Interface driver
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik
<vojtech at suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
EXT3 FS 2.4-0.9.18, 14 May 2002 on ide0(3,1), internal
journal
Adding Swap: 1052248k swap-space (priority -1)
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on sd(8,0), internal
journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.18, 14 May 2002 on ide0(3,2), internal
journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running
e2fsck is recommended
EXT3 FS 2.4-0.9.18, 14 May 2002 on ide0(3,64),
internal journal
EXT3-fs: mounted filesystem with ordered data mode.

################### Other Maths ###################
----------------------------------------------------------------------------------
# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: Promise Model: 2+0 Stripe/RAID0 Rev: 1.10
Type: Direct-Access ANSI SCSI revision: 02
----------------------------------------------------------------------------------
# cat /proc/pci
...
Bus 2, device 14, function 0:
RAID bus controller: Promise Technology, Inc. 20267
(rev 2).
IRQ 9.
Master Capable. Latency=32.
I/O at 0xdff0 [0xdff7].
I/O at 0xdfe4 [0xdfe7].
I/O at 0xdfa8 [0xdfaf].
I/O at 0xdfe0 [0xdfe3].
I/O at 0xdf00 [0xdf3f].
Non-prefetchable 32 bit memory at 0xfeaa0000
[0xfeabffff].
...
----------------------------------------------------------------------------------
# cat /proc/ide/pdc202xx

PDC20267 Chipset.
------------------------------- General Status
---------------------------------
Burst Mode : enabled
Host Mode : Normal
Bus Clocking : 66 External
IO pad select : 10 mA
Status Polling Period : 0
Interrupt Check Status Polling Delay : 0
--------------- Primary Channel ----------------
Secondary Channel -------------
enabled enabled
66 Clocking disabled disabled
Mode MASTER Mode MASTER
FIFO Empty FIFO Empty
--------------- drive0 --------- drive1 --------
drive0 ---------- drive1 ------
DMA enabled: no no no no
DMA Mode: UDMA 4 NOTSET UDMA 4 NOTSET
PIO Mode: PIO 4 NOTSET PIO 4 NOTSET

----------------------------------------------------------------------------------
# cat /proc/partitions
major minor #blocks name rio rmerge rsect ruse wio
wmerge wsect wuse running use aveq

8 0 234441472 sda 102931 2266114 18952320 1941126
169412 4789483 39672208 2521385 0 1679126 4815910
3 0 117220824 hda 158268 1985197 17147260 4264425
47901 566852 4919776 5416146 -3 3892083 6373799
3 1 4192933 hda1 13028 18793 254546 83560 12124 72068
675120 3027902 0 263269 3113320
3 2 111973050 hda2 145229 1966373 16892594 4180806
35777 494784 4244656 2388244 0 590626 6584490
3 3 1052257 hda3 9 25 104 41 0 0 0 0 0 41 41
3 64 117220824 hdb 102094 1473798 12607106 2129949
85597 1230469 10528808 3382836 -3 3901315 2224366

------------------------------------------------------------------------------------------
# hdparm -Tt /dev/hda

/dev/hda:
Timing buffer-cache reads: 128 MB in 0.36 seconds
=358.14 MB/sec
Timing buffered disk reads: 64 MB in 1.40 seconds =
45.70 MB/sec
------------------------------------------------------------------------------------------
# hdparm -Tt /dev/hdb

/dev/hdb:
Timing buffer-cache reads: 128 MB in 0.34 seconds
=374.52 MB/sec
Timing buffered disk reads: 64 MB in 1.21 seconds =
52.68 MB/sec
------------------------------------------------------------------------------------------
# hdparm -Tt /dev/sda

/dev/sda:
Timing buffer-cache reads: 128 MB in 0.35 seconds
=368.20 MB/sec
Timing buffered disk reads: 64 MB in 0.96 seconds =
66.47 MB/sec

Thats all

I would appreciate any help.

There are several other question marks but right now I
required help to solve the problem mentioned.

Malik
Plz apologize for the long message


	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 





More information about the Ataraid-list mailing list