Solved

Slow Linux harddisk, please help

Posted on 2003-11-14
2
455 Views
Last Modified: 2010-05-18
I found that my harddisk does not use DMA transfer :

# hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 7297/255/63, sectors = 117231408, start = 0

And the speed is pathetic :

# hdparm -tT /dev/hda

/dev/hda:
 Timing buffer-cache reads:   128 MB in  1.15 seconds =111.30 MB/sec
 Timing buffered disk reads:  64 MB in 10.97 seconds =  5.83 MB/sec

Only 5.80+ MB/sec ...

However, it support some DMA transfer modes :

# hdparm -i /dev/hda

/dev/hda:

 Model=ST360021A, FwRev=7.73, SerialNo=3HV4ETBG
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=unknown, BuffSize=2048kB, MaxMultSect=16, MultSect=16
 CurCHS=4047/16/255, CurSects=16511760, LBA=yes, LBAsects=117231408
 IORDY=on/off, tPIO={min:240,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
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: device does not report version:  1 2 3 4 5

But why I cant set to use DMA ?

# hdparm -d1 -X67 /dev/hda

/dev/hda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 setting xfermode to 67 (UltraDMA mode3)
 HDIO_DRIVE_CMD(setxfermode) failed: Input/output error
 using_dma    =  0 (off)

Is this hardware related ? Kernel ? or ...

Please help.

0
Comment
Question by:kapot
2 Comments
 
LVL 20

Accepted Solution

by:
Gns earned 30 total points
ID: 9747612
Probably a question of kernel support for your chipset.... Example: http://forums.us.dell.com/supportforums/board/message?board.id=pes_linux&message.id=1409

What chipset do you have?

-- Glenn
0
 
LVL 5

Expert Comment

by:g0rath
ID: 9747654
exactly...

Things that can impact this is what kernel version are you running, are they going to support UDMA with your chipset in the future, etc.

Yes your hard drive may physically support UDMA, but the driver support isn't there yet. If you post more info on your chipset, kernel version, maybe linux distro, maybe someone will have an idea as to when or if you be able to get better support.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question