LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 07-10-2004, 06:47 AM   #1
alpha97
LQ Newbie
 
Registered: Jun 2004
Location: Pakistan
Distribution: Red Hat 9.0
Posts: 22

Rep: Reputation: 15
Exclamation Did not get the Hard drive performance Raid0!


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.

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
The device is activated to save anything.


################### Kernel Setup Log ################
Linux version 2.4.18-14 (bhcompile@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@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@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 from linux guru.

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

Malik
 
Old 07-10-2004, 09:05 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
that's about what i would expect, but you'll get a lot better performance out a raid0 if you put the 2 drives on different channels.(not the same cable.)
 
Old 07-10-2004, 05:41 PM   #3
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Like what whansard said, if you place the hard drives on seperate IDE channels instead on one IDE channel, RAID will work better. The speed of RAID 0 or RAID 5 depends on hard drive overhead, filesystem overhead, bus overhead, and controller overhead. Seagate IDE hard drives have a very high overhead. Using IBM/Hitachi or Western Digital hard drives will give you the least overhead.

If you copy files from an single hard drive to an hard drive array set at RAID 0 the speed will be the maxium throughput of the single hard drive not the hard drive arrray. If you use tmpfs or RAM Disk, you will get more accurate results. RAM is a lot faster than any hard drives today. Using benchmark programs like Bonnie will give you even more accurate results than using the time and cp command.

With RAID you have to try different size blocks to optimize your hard drive arrarys for certain files.

Some people said LINUX software RAID is better than the software RAID on the controller. You can try LINUX software RAID to see if it gives you any improvement.
 
Old 07-11-2004, 06:36 AM   #4
alpha97
LQ Newbie
 
Registered: Jun 2004
Location: Pakistan
Distribution: Red Hat 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Thank Electro and Whansard

The both harddrives are conneted with different channel as Master Drives. see
# 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


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!

What I think, it could be wrong with the configuration and installation of Raid-0 on OS.

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

Plz help me!

Malik
 
Old 07-11-2004, 09:14 AM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
dma is off on both of those drives. it looks like the dma mode is set, but dma is not turned on. /dev/hda means primary master. /dev/hdb means primary slave. /dev/hdc would be secondary master. usually the raid controller would be hde, hdf, hdg,hdh.
you say you have 4 drives hooked up, but i only see two. that's a lot of info to go through though. maybe you set up raid one way under windows, and it's getting set up wrong in linux. (not the same drives?)


DMA enabled: no__________ no _________ no ____________ no
DMA Mode: _UDMA 4 ___ NOTSET ___ UDMA 4 _____NOTSET
PIO Mode: _ PIO 4 ______ NOTSET ___ PIO 4 _______ NOTSET

this crap looks messed up.
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
 
Old 07-12-2004, 01:39 AM   #6
alpha97
LQ Newbie
 
Registered: Jun 2004
Location: Pakistan
Distribution: Red Hat 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Hi Whansard
I have tried to set dma using "hdparm" command but it says dma mode of scsi device cant be set. /dev/sda

Since I had disabled the IDEs except two by append line in grub boot file according to given instruction in readme of driver of promise fasttrak:

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

That would be reason the devices hde, hdg is out of seen.

this crap looks messed up.
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)
... I think this might be a real mess but why? But wht would one say about this

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

I had install the Linux and promise according to given instructions in readme of promise fasttrak. I didn't thing any thing else but why its happening?
 
Old 07-12-2004, 05:49 AM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
you should still be able to access the drives hde and hdg with hdparm. hdparm doesn't access a raid, just specific devices.
 
Old 07-12-2004, 06:11 AM   #8
alpha97
LQ Newbie
 
Registered: Jun 2004
Location: Pakistan
Distribution: Red Hat 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
I couldnt access the hde and hdg instead i can access /dev/sda the ide-scsi emulation for raid.
so i am not able to set any parameter using hdparm for scsi drive.
 
Old 07-12-2004, 03:47 PM   #9
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
The reason you are having trouble is because your Promise controller is software RAID. Most everything is done by software, so your module (driver) have to do most of the RAID work while the chip just handles reading and writing to hard drives. If the partition is FAT and it was created in Windows, I suggest you do not mess with it. If the Promise BIOS can set DMA on the hard drives. I suggest setting it there.

I did some searching. Upgrade your kernel to one of the kernel-2.4.*-ac version. Some people said those kernel version have more support for Promise controllers.
 
Old 07-13-2004, 12:22 AM   #10
alpha97
LQ Newbie
 
Registered: Jun 2004
Location: Pakistan
Distribution: Red Hat 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
No I cannot access the hde/hdg devices. There are only three devices I had
hda, hdb and sda regarding Hard Disks.
How could I do hdparm to those devices.
 
Old 07-13-2004, 02:27 AM   #11
alpha97
LQ Newbie
 
Registered: Jun 2004
Location: Pakistan
Distribution: Red Hat 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Electro!
I had already the 2.4.* kernel, and the controller is installed smoothly but does provides the efficiency.

The raid-0 drive is formatted as ext3. Ihad cleanup all thing and the machine is dedicated to only linux.

The DMA in Bios is set and it is 4.

I had found new thing in kernel tuning "syscntl" file its speed_limit_min=100 and speed_limit_max=100000
what does it mean those i resync it to max integer?
 
Old 07-13-2004, 02:36 AM   #12
alpha97
LQ Newbie
 
Registered: Jun 2004
Location: Pakistan
Distribution: Red Hat 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
correction in previous post
the promise card doen't provides the efficiency.
 
Old 07-13-2004, 06:56 AM   #13
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
)*&*&*^&. i just went looking for my f*&king promise cards, and i couldn't find them. through a bunch of motherboards and dozens of cards in my work room. i knew i had those sons of bit*&es somewhere. they were right beside my d^&m chair where i was sitting. i have a PDC20267 and a PDC20268. i'm gonna boot the f*&kers. I'm mad cause i knocked a cdrom drive off the top of a stack of computers, and it's probably broken, and it knocked a screwed in 3 prong plug out of the wall, and now it's broken too.

my highpoint says this.
# cat /proc/ide/hpt366
HighPoint HPT366/368/370/372/374
Controller: 0
Chipset: HPT370
--------------- Primary Channel --------------- Secondary Channel --------------
Enabled: yes yes
Cable: ATA-66 ATA-33
--------------- drive0 --------- drive1 ------- drive0 ---------- drive1 -------
DMA capable: yes no no no
Mode: UDMA off off off




ok, i've messed around now, and got the promise card in with a 120 gig hitachi/ibm.
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 : 1
Interrupt Check Status Polling Delay : 4
--------------- Primary Channel ---------------- Secondary Channel -------------
enabled enabled
66 Clocking enabled disabled
Mode PCI Mode PCI
FIFO Empty FIFO Empty
--------------- drive0 --------- drive1 -------- drive0 ---------- drive1 ------
DMA enabled: yes no no no
DMA Mode: UDMA 4 NOTSET NOTSET NOTSET
PIO Mode: PIO 4 NOTSET NOTSET NOTSET

with that it's

/dev/hde:
Timing buffer-cache reads: 128 MB in 0.86 seconds =148.84 MB/sec
Timing buffered disk reads: 64 MB in 1.71 seconds = 37.43 MB/sec


when i make it look like yours.


/# hdparm -d0 /dev/hde
/dev/hde:
setting using_dma to 0 (off)
using_dma = 0 (off)

/# hdparm -Tt /dev/hde
/dev/hde:
Timing buffer-cache reads: 128 MB in 0.87 seconds =147.13 MB/sec
Timing buffered disk reads: 64 MB in 16.54 seconds = 3.87 MB/sec

/# 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 : 1
Interrupt Check Status Polling Delay : 4
--------------- Primary Channel ---------------- Secondary Channel ------------
enabled enabled
66 Clocking enabled disabled
Mode PCI Mode PCI
FIFO Empty FIFO Empty
--------------- drive0 --------- drive1 -------- drive0 ---------- drive1 -----
DMA enabled: no no no no
DMA Mode: UDMA 4 NOTSET NOTSET NOTSET
PIO Mode: PIO 4 NOTSET NOTSET NOTSET


your dma isn't getting turned on or isn't supported by the kernel.
in my kernel config under PDC 202{46-67}, there is an option for " special UDMA feature" that you have enable. for the PDC 20268 and on you don't have to specially enable it.
maybe your kernel has support for the 20267, but doesn't have the udma feature enabled, or has it turned off, and you can't turn it on because you can't access the devices. I don't know. i suggest playing with some different kernel versions.

Last edited by whansard; 07-13-2004 at 07:21 AM.
 
Old 07-13-2004, 07:32 AM   #14
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
i don't know. it looks like your dma is off, but it seems too fast for dma to be off, so i don't know which it is. i'm not in the mood for setting up a quickie raid for tests. i don't know anything else to tell you, but i'd surely check on that kernel setup thing "Special UDMA feature".
 
Old 07-13-2004, 12:46 PM   #15
alpha97
LQ Newbie
 
Registered: Jun 2004
Location: Pakistan
Distribution: Red Hat 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Thanx whansard for such decriptive answere
I have noticed two noticeable point
1- 66 clocking
2- UDMA
At my site both are disabled but at your sight it is enabled.
Well I had checked the promise bios its is set to UDMA-5.
Again conflict with cat /proc/ide/pdc202xx that show UDMA-4
whilst cat /proc/scsi/fasttrak/0 showed UDMA-5.

The best thing I got from you is that I should upgrade my kernel I am upgrading my kernel-2.4.18-14 to kernel-2.4.20-ac2.2.
Good luck to me
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drive performance jeremy Linux - General 550 03-09-2013 08:48 PM
Hard Drive Performance - Raid funbags Linux - General 3 11-13-2005 10:31 AM
Horrible Hard Drive Performance????? linux-rulz Linux - Hardware 13 06-26-2005 08:10 PM
hard drive performance true_atlantis Linux - General 3 10-26-2004 03:15 AM
hard drive performance bynaar Slackware 2 12-18-2002 06:21 AM


All times are GMT -5. The time now is 10:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration