Unix Technical Forum

DMA is not set automatically on my DVD-ROM drive in Debian?

This is a discussion on DMA is not set automatically on my DVD-ROM drive in Debian? within the Debian Linux support forums, part of the Debian Linux category; --> Hello, I rarely used my Toshiba DVD-ROM Drive (hdc; IDE; SD-M1912/TMAG 16X/48X) on my Debian/Linux box. This morning, I ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 09:40 AM
Ant
 
Posts: n/a
Default DMA is not set automatically on my DVD-ROM drive in Debian?

Hello,

I rarely used my Toshiba DVD-ROM Drive (hdc; IDE; SD-M1912/TMAG 16X/48X)
on my Debian/Linux box. This morning, I decided to copy about 600 MB of
files from a CD-R to a an IDE HDD (hda) that took almost ten minutes
long (based on my human clock). I believe that is too slow. Also, I
noticed my CPU was at the maximum which doesn't seem right.

I looked around and noticed something doesn't look right:
# /sbin/hdparm -v /dev/hdc

/dev/hdc:
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Inappropriate ioctl for device

I don't know what HDIO_GETGEO failed: Inappropriate ioctl for device is
and don't know if that is a problem. The one I am concerned is the lack
of DMA. If I remember correctly (IIRC), DMA helps to speed up drives.
Maybe that is why my 600 MB copy files took forever.

I enabled DMA without problems:
# /sbin/hdparm -d1 /dev/hdc

/dev/hdc:
setting using_dma to 1 (on)
using_dma = 1 (on)

However, my CPU usage is still at the maximum and still takes a long
time to copy 600 MB of files and folders/directories (time said almost
eight minutes). I saw nothing odd in the recent dmesg (don't have the
boot up one since I ran out of buffer and don't know how to get the old
datas) and /var/log/messages.

Also, how come Debian's boot up did not set this DMA enabled
automatically? I am using Kernel 2.6.18-4-K7. My full computer
specifications can be found here:
http://alpha.zimage.com/~ant/antfarm.../computers.txt
(secondary/backup computer).

Thank you in advance.
--
"An ant can do more than an ox that is lying down." --unknown
/\___/\
/ /\ /\ \ Ant @ http://antfarm.ma.cx (Personal Web Site)
| |o o| | Ant's Quality Foraged Links (AQFL): http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 09:40 AM
Matt Giwer
 
Posts: n/a
Default Re: DMA is not set automatically on my DVD-ROM drive in Debian?

Ant wrote:
> Hello,


> I rarely used my Toshiba DVD-ROM Drive (hdc; IDE; SD-M1912/TMAG 16X/48X)
> on my Debian/Linux box. This morning, I decided to copy about 600 MB of
> files from a CD-R to a an IDE HDD (hda) that took almost ten minutes
> long (based on my human clock). I believe that is too slow. Also, I
> noticed my CPU was at the maximum which doesn't seem right.


> I looked around and noticed something doesn't look right:
> # /sbin/hdparm -v /dev/hdc


> /dev/hdc:
> IO_support = 0 (default 16-bit)
> unmaskirq = 0 (off)
> using_dma = 0 (off)
> keepsettings = 0 (off)
> readonly = 0 (off)
> readahead = 256 (on)
> HDIO_GETGEO failed: Inappropriate ioctl for device


> I don't know what HDIO_GETGEO failed: Inappropriate ioctl for device is
> and don't know if that is a problem. The one I am concerned is the lack
> of DMA. If I remember correctly (IIRC), DMA helps to speed up drives.
> Maybe that is why my 600 MB copy files took forever.


> I enabled DMA without problems:
> # /sbin/hdparm -d1 /dev/hdc
>
> /dev/hdc:
> setting using_dma to 1 (on)
> using_dma = 1 (on)
>
> However, my CPU usage is still at the maximum and still takes a long
> time to copy 600 MB of files and folders/directories (time said almost
> eight minutes). I saw nothing odd in the recent dmesg (don't have the
> boot up one since I ran out of buffer and don't know how to get the old
> datas) and /var/log/messages.
>
> Also, how come Debian's boot up did not set this DMA enabled
> automatically? I am using Kernel 2.6.18-4-K7. My full computer
> specifications can be found here:
> http://alpha.zimage.com/~ant/antfarm.../computers.txt
> (secondary/backup computer).
>
> Thank you in advance.


Going by the "human" clock leads to the watched pot never boiling effect.
However one assumes the disk speed is at least X16? And then one assumes it was
not a RW?

It is not clear that DMA would have anything to do with the speed of the burn
however if you had the computer create an ISO at the same time it was burning
that may explain the CPU usage.

--
Hodie septimo Idus Iulias MMVII est
-- The Ferric Webceasar
nizkor http://www.giwersworld.org/nizkook/nizkook.phtml
Larry Shiff http://www.giwersworld.org/computers/newsagent.phtml a8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 09:40 AM
Peter D.
 
Posts: n/a
Default Re: DMA is not set automatically on my DVD-ROM drive in Debian?

on Tuesday 10 July 2007 04:57
in the Usenet newsgroup comp.os.linux.hardware
Ant wrote:

> Hello,
>
> I rarely used my Toshiba DVD-ROM Drive (hdc; IDE; SD-M1912/TMAG 16X/48X)
> on my Debian/Linux box. This morning, I decided to copy about 600 MB of
> files from a CD-R to a an IDE HDD (hda) that took almost ten minutes
> long (based on my human clock). I believe that is too slow. Also, I
> noticed my CPU was at the maximum which doesn't seem right.
>
> I looked around and noticed something doesn't look right:
> # /sbin/hdparm -v /dev/hdc
>
> /dev/hdc:
> IO_support = 0 (default 16-bit)
> unmaskirq = 0 (off)
> using_dma = 0 (off)
> keepsettings = 0 (off)
> readonly = 0 (off)
> readahead = 256 (on)
> HDIO_GETGEO failed: Inappropriate ioctl for device


My DVD-RW (Benq DW1650) has

hdparm /dev/hdc

/dev/hdc:
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Inappropriate ioctl for device


> I don't know what HDIO_GETGEO failed: Inappropriate ioctl for device is
> and don't know if that is a problem. The one I am concerned is the lack
> of DMA. If I remember correctly (IIRC), DMA helps to speed up drives.
> Maybe that is why my 600 MB copy files took forever.

[snip]

hdparm -tT /dev/xxx shows 850 + MB /s for buffer transfer for
both the hard drive and the DVD drive. Head transfer speed
is > 50MB/s for the HD, 6.19 MB/s for a DVD and 3.31 MB/s for
a CD.

It should take my system about 200 seconds to read a full CD.


--
sig goes here...
Peter D.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 09:40 AM
Ant
 
Posts: n/a
Default Re: DMA is not set automatically on my DVD-ROM drive in Debian?

In comp.os.linux.hardware Matt Giwer <jull43@tampabay.remover.rr.com> wrote:
> Ant wrote:
> > Hello,


> > I rarely used my Toshiba DVD-ROM Drive (hdc; IDE; SD-M1912/TMAG 16X/48X)
> > on my Debian/Linux box. This morning, I decided to copy about 600 MB of
> > files from a CD-R to a an IDE HDD (hda) that took almost ten minutes
> > long (based on my human clock). I believe that is too slow. Also, I
> > noticed my CPU was at the maximum which doesn't seem right.


> > I looked around and noticed something doesn't look right:
> > # /sbin/hdparm -v /dev/hdc


> > /dev/hdc:
> > IO_support = 0 (default 16-bit)
> > unmaskirq = 0 (off)
> > using_dma = 0 (off)
> > keepsettings = 0 (off)
> > readonly = 0 (off)
> > readahead = 256 (on)
> > HDIO_GETGEO failed: Inappropriate ioctl for device


> > I don't know what HDIO_GETGEO failed: Inappropriate ioctl for device is
> > and don't know if that is a problem. The one I am concerned is the lack
> > of DMA. If I remember correctly (IIRC), DMA helps to speed up drives.
> > Maybe that is why my 600 MB copy files took forever.


> > I enabled DMA without problems:
> > # /sbin/hdparm -d1 /dev/hdc
> >
> > /dev/hdc:
> > setting using_dma to 1 (on)
> > using_dma = 1 (on)
> >
> > However, my CPU usage is still at the maximum and still takes a long
> > time to copy 600 MB of files and folders/directories (time said almost
> > eight minutes). I saw nothing odd in the recent dmesg (don't have the
> > boot up one since I ran out of buffer and don't know how to get the old
> > datas) and /var/log/messages.
> >
> > Also, how come Debian's boot up did not set this DMA enabled
> > automatically? I am using Kernel 2.6.18-4-K7. My full computer
> > specifications can be found here:
> > http://alpha.zimage.com/~ant/antfarm.../computers.txt
> > (secondary/backup computer).
> >
> > Thank you in advance.


> Going by the "human" clock leads to the watched pot never boiling effect.
> However one assumes the disk speed is at least X16? And then one assumes it was
> not a RW?


> It is not clear that DMA would have anything to do with the speed of the burn
> however if you had the computer create an ISO at the same time it was burning
> that may explain the CPU usage.


It is just a regular DVD-ROM drive. Not a CD/DVD burner.
--
"An ant can do more than an ox that is lying down." --unknown
/\___/\
/ /\ /\ \ Ant @ http://antfarm.ma.cx (Personal Web Site)
| |o o| | Ant's Quality Foraged Links (AQFL): http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:42 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com