LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-17-2003, 11:08 PM   #1
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
ways to check dma?


is there way to check if dma support is activated in my system or not?
 
Old 02-17-2003, 11:35 PM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
if u are referring to your disk drives, use hdparm:

for example:

hdparm /dev/hdc

you'd be able to see the DMA flag there if it is set or not. 1 means it is set. 0 is not set.
 
Old 02-18-2003, 01:48 AM   #3
carlywarly
Member
 
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825

Rep: Reputation: 30
To see what effect it has, run hdparm -tT /dev/hda It will do 2 timed reads, one from the cache and one direct from the drive.

Here's mine -
/dev/hda:
Timing buffer-cache reads: 128 MB in 0.63 seconds =203.17 MB/sec
Timing buffered disk reads: 64 MB in 1.60 seconds = 40.00 MB/sec
[root@1600 carlie]#
 
Old 02-18-2003, 03:03 AM   #4
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Original Poster
Rep: Reputation: 45
my second result is 23 mb so i dont have dma support right and what do i have to do enable it?
 
Old 02-18-2003, 03:19 AM   #5
Silent Bob
Member
 
Registered: Feb 2003
Location: Ireland
Distribution: Debian
Posts: 56

Rep: Reputation: 15
use hdparm -i /dev/hdX for LOADS of information about your drive, including what DMA modes it can support.

To find out whether it is on or not, do what born4linux suggested: hdparm /dev/hdX

To turn DMA on use hdparm -d1 -X<modenumber> /dev/hdX

You work out <modenumber> by adding 64 to the DMA mode you want to use, e.g. mode 2 you would use -X66, mode 5 -X69

Last edited by Silent Bob; 02-18-2003 at 03:22 AM.
 
Old 02-18-2003, 03:57 AM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
your bios probably sets your dma mode to the max
the drive can handle, but its just not getting enabled
by linux
hdparm -d1 /dev/hda
probably

if that doesn't cause any trouble, add it to one of your init
scripts.
 
Old 02-18-2003, 05:44 AM   #7
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Original Poster
Rep: Reputation: 45
dma support is on i checked it with hdparm /dev/hda but why is the data transfer is so slow my hardware is inspiron 2650 with ibm harddrive bu not sure btw it is a lop top
 
Old 02-18-2003, 07:06 AM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
did you try
hdparm -t /dev/hda
with and without dma enabled?
you can disable it with
hdparm -d0 /dev/hda

maybe it's something else thats making you
think the hard drive is slow.

23 megs a second is normal for a slower hard
drive running dma. if dma was off, it would
probably be around 3 megs a second.
 
Old 02-18-2003, 07:36 AM   #9
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
cat /proc/dma

will do it - it'll tell you which IRQ is routed to deal with DMA requests. If it doesn't work, you don't have it.
 
  


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 On
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 05:06 AM
How can I check if DMA is enabled? LegendBreath Fedora 7 06-06-2005 05:22 AM
Ways to check packages bipins1979 Linux - Software 1 03-22-2005 05:17 AM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 02:10 AM
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 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration