View previous topic :: View next topic |
Author |
Message |
MadEgg l33t
Joined: 06 Jun 2002 Posts: 678 Location: Netherlands
|
Posted: Fri May 09, 2003 2:38 pm Post subject: Can't get harddisks in DMA mode :( |
|
|
I've installed Gentoo Linux on a Pentium1 166 MHz with MMX as a server.
I got everything set up now, but the harddisk performance is quite low.
I only get about 2 - 3 MB/s on both my disks,
the first: 1,2 GB
hdparm -i /dev/hda returns:
Code: |
/dev/hda:
Model=QUANTUM FIREBALL1280A, FwRev=A63.0E00, SerialNo=122534124508
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=2484/16/63, TrkSize=32256, SectSize=512, ECCbytes=4
BuffType=DualPortCache, BuffSize=83kB, MaxMultSect=8, MultSect=8
CurCHS=2484/16/63, CurSects=2503872, LBA=yes, LBAsects=2503872
IORDY=on/off, tPIO={min:333,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 *mdma2
AdvancedPM=no |
The second: 20 GB.
hdparm -i /dev/hdd returns:
Code: | /dev/hdd:
Model=Maxtor 2F020J0, FwRev=VAM51JJ0, SerialNo=F169PH1E
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=40718160
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 *mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 udma6
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: (null): 1 2 3 4 5 6 7 |
The mainbord installed is a SQ585 mainbord, more info on http://www.bcmcom.com/tech/sq585/tech585.htm
That link says it should support DMA:
Quote: | PCI Bus Master IDE Controller: Onboard PCI Bus Master IDE controller with 2 ports to support 4 IDE devices. This controller supports PIO mode 3 and 4 with a data transfer rate up to 17MB per second. The Bus Master IDE DMA mode 2 transfer up to 22MB per second. |
The chipset is SIS 5513.
When using PIO mode 3 or 4 for both disks, I do not get 17 MB p/s, and when I attempt to put them in DMA mode I get this:
Code: | server root # hdparm -d1 /dev/hda
/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
server root # hdparm -d1 /dev/hdd
/dev/hdd:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
server root # |
I've compiled support for all availabe chipsets in the kernel(2.4.20 vanilla).
I also tried various IDE Transfer modes using -X34, -X33, -X32, all to no avail.
Is there anything I missing? Why can't I get these disks into DMA?
In the BIOS I've turned all sorts of stuff on like Fast Burst and Post Writing, I tried several default PIO modes and 'default', to make this work but that didn't help either. _________________ Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755 |
|
Back to top |
|
|
MerlinTheWizard Apprentice
Joined: 06 Apr 2003 Posts: 270
|
Posted: Fri May 09, 2003 3:34 pm Post subject: just a thought... |
|
|
in my opinion, you should try and get rid of the older drive: I'm suspecting that it is its presence that hinders both drives' performance. |
|
Back to top |
|
|
Anubis n00b
Joined: 09 Nov 2002 Posts: 68 Location: BYU
|
Posted: Fri May 09, 2003 9:40 pm Post subject: |
|
|
Could be the older drive. As well as the cabels that you're using. I had a problem with my DMA not enabling on one of my two new drives, and during that time I got fed up with my case and bought a new one. After throwing in my drives, I decided to try a new cabel that was provided and boom, DMA worked... So you may want to look into that as well. _________________ The one who says it cannot be done should never interrupt the one who is doing it. |
|
Back to top |
|
|
antik Apprentice
Joined: 01 Oct 2002 Posts: 212
|
Posted: Fri May 09, 2003 10:05 pm Post subject: Re: just a thought... |
|
|
MerlinTheWizard wrote: | in my opinion, you should try and get rid of the older drive: I'm suspecting that it is its presence that hinders both drives' performance. |
And your cdrom is connected to /dev/hdc ???
Try swap to primary drive your newer disk and cdrom with older-slower drive lay on second ide controller.
SIS baaad, Intel good.
IMHO _________________ "Yes, I know Linux runs faster, but they can do that because they have thrown out the weight of the airbag, collision frame and safety belt." —Poul-Henning Kamp |
|
Back to top |
|
|
MadEgg l33t
Joined: 06 Jun 2002 Posts: 678 Location: Netherlands
|
Posted: Sat May 10, 2003 9:27 am Post subject: |
|
|
Yea, I agree but I don't have any intel motherboards that I'm not using for anything else, so I suppose I'm stuck with this one.
There's not CD-rom or anything connected anymore, I removed that as soon as I finished the installation.
Only /dev/hda as the first harddisk and /dev/hdd as the second harddisk.
The problem with trying without the first and older disk is that the second disk is fat32 formatted and should actually stay that way as I want to be able to read that in a Windows machine as well in case things go wrong badly. So to try that I'd have to backup the whole disk, repartition it and format it, just to see if that helps, and if it does, the problem isn't solved
[edit]Ow I could of course just try the harddisk from the gentoo cd without installing anything [/edit] _________________ Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755 |
|
Back to top |
|
|
daveg208 n00b
Joined: 15 May 2003 Posts: 1
|
Posted: Thu May 15, 2003 3:12 pm Post subject: |
|
|
Very quickly - the master hard drive defines the specs for that particular bus, effectively the electronics on the master drive acts as controller for both drives, and, since the master is not capable of DMA or UDMA you will not be able to use these on the slave.
If you connect the 20GB slave drive as a master drive on your secondary bus, you will get far better throughput. |
|
Back to top |
|
|
neuron Advocate
Joined: 28 May 2002 Posts: 2371
|
Posted: Thu May 15, 2003 3:41 pm Post subject: |
|
|
upgrade hdparm , fixed HDIO_SET_DMA for me. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|