LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-14-2005, 04:32 AM   #1
Ace2005
Member
 
Registered: Dec 2004
Distribution: OpenSuSE 10.0
Posts: 140

Rep: Reputation: 15
DMA Mode of Hard Drive


Hi

Its been bugging me all week, the speed at which files are coppied is very slow and i think its due to the DMA mode that linux is using, how do i find out the DMA mode that is in use and then change it.


Motherboard supports UDMA Mode 6


Hard Disk 1 - UDMA Mode 6

Hard Disk 2 - UDMA Mode 5

Hard Disk 3 - UDMA Mode 4

CDRom - UDMA Mode 2


Anyone else notice that hard disk access in linux is slow?
 
Old 07-14-2005, 07:59 AM   #2
Brian Knoblauch
Member
 
Registered: Jan 2005
Distribution: SuSE (x86), NetBSD (Sparc), Solaris (Sparc & 32-bit x86)
Posts: 278

Rep: Reputation: 30
I find it to be very fast, but all of my current systems are SCSI...
 
Old 07-14-2005, 08:27 AM   #3
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 37
As root in terminal, type "hdparm -i /dev/hdxx", where hdxx is the disk you want to check. This command will tell you what DMA modes are available for the specific disk and which mode is being used. It also spits out other relevant info

You can also do "hdparm -tT /dev/hdxx", which will give you some data read speeds for the disk.
This is the result on my disk for reference:
Code:
/dev/hda:
 Timing buffer-cache reads:   2268 MB in  2.00 seconds = 1131.91 MB/sec
 Timing buffered disk reads:  136 MB in  3.02 seconds =  45.08 MB/sec

Last edited by mdg; 07-14-2005 at 08:33 AM.
 
Old 07-14-2005, 02:23 PM   #4
vibrokatana
LQ Newbie
 
Registered: Jul 2005
Posts: 26

Rep: Reputation: 15
hdparm can set the settings i believe typing in hdparm will give a nice long list

im not sure if "rc-update add hdparm boot" is needed to keep the settings, when its added it says something about configuring drives during boot up

on my server i get about 62MB/sec w/ my hitachi 160gb sata
 
Old 07-14-2005, 03:46 PM   #5
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
Here is some information on hdparm;
http://forums.gentoo.org/viewtopic-t-319349.html
Look for;
4. Configure Your Hard Disk
 
Old 07-20-2005, 05:46 AM   #6
Ace2005
Member
 
Registered: Dec 2004
Distribution: OpenSuSE 10.0
Posts: 140

Original Poster
Rep: Reputation: 15
These results don't look too good

I also rearranged the hard disks, tried some other distros, then reinstalled with Fedora, its the only distro which i like (so far).

--==-----------------------------------------------------------==--

-------==Hard Disk 2 - UDMA Mode 5==-------

/dev/hda:
Timing cached reads: 836 MB in 2.01 seconds = 416.19 MB/sec
Timing buffered disk reads: 40 MB in 3.07 seconds = 13.04 MB/sec

/dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 39560/16/63, sectors = 20416757760, start = 0


-------==Hard Disk 3 - UDMA Mode 4==-------

/dev/hdb:
Timing cached reads: 820 MB in 2.01 seconds = 408.02 MB/sec
Timing buffered disk reads: 30 MB in 3.09 seconds = 9.71 MB/sec

/dev/hdb:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 25228/16/63, sectors = 13020069888, start = 0


-------==Hard Disk 1 - UDMA Mode 6==-------

/dev/hdc:
Timing cached reads: 832 MB in 2.00 seconds = 415.65 MB/sec
Timing buffered disk reads: 56 MB in 3.07 seconds = 18.22 MB/sec

/dev/hdc:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 65535/16/63, sectors = 81964302336, start = 0

--==CDRom - UDMA Mode 2==--

/dev/hdd:
Timing cached reads: 840 MB in 2.00 seconds = 419.64 MB/sec
Timing buffered disk reads: 8 MB in 3.08 seconds = 2.59 MB/sec

/dev/hdd:
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Invalid argument

--==-----------------------------------------------------------==--

It looks like all the hard disks are using UDMA mode 2 to me

 
Old 07-21-2005, 08:23 AM   #7
Ace2005
Member
 
Registered: Dec 2004
Distribution: OpenSuSE 10.0
Posts: 140

Original Poster
Rep: Reputation: 15
Ok everything is back to normal after i enabled S.M.A.R.T in Bios
 
  


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 Problems: timeout waiting for DMA; error waiting for DMA mintee Linux - Hardware 10 09-21-2007 06:06 AM
can't turn DMA on my hard drive slzckboy Linux - General 6 09-24-2005 02:26 PM
Howto activate DMA Mode on HardDisk Drive krasi Linux - Software 3 07-05-2004 04:59 PM
setting using dma flag on hard drive? danny678010 Linux - Hardware 3 08-27-2003 09:43 PM
Suse 8.2 change my DMA setting on my DVD-R drive to off & IDE DMA MODE NOT SHOWING IT maximalred Linux - General 0 08-23-2003 05:58 AM


All times are GMT -5. The time now is 07:34 PM.

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