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



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

Hmm, 32-bit, enabled unmaskirq, etc. I wonder if those are the problems?


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.

Here's mine:

$ /sbin/hdparm -tT /dev/hdc

/dev/hdc:
Timing cached reads: 808 MB in 2.00 seconds = 403.62 MB/sec
BLKFLSBUF failed: Permission denied
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Permission denied
Timing buffered disk reads: 8 MB in 3.03 seconds = 2.64 MB/sec
BLKFLSBUF failed: Permission denied
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Permission denied

# /sbin/hdparm -tT /dev/hdc

/dev/hdc:
Timing cached reads: 868 MB in 2.00 seconds = 434.11 MB/sec
BLKFLSBUF failed: Function not implemented
Timing buffered disk reads: 10 MB in 4.03 seconds = 2.48 MB/sec
BLKFLSBUF failed: Function not implemented

# /sbin/hdparm -tT /dev/hda

/dev/hda:
Timing cached reads: 856 MB in 2.00 seconds = 428.03 MB/sec
Timing buffered disk reads: 164 MB in 3.03 seconds = 54.12 MB/sec


Just for kicks, I made a new CD-R copy of the same image because I
noticed the CD-R I used had some scratches. Maybe the scratches were
causing the slow downs. CPU were still high (1.xx -- load average:
1.31, 0.81, 0.40) and time was:

$ time cp -R /media/cdrom0/* .

real 4m9.138s
user 0m0.224s
sys 0m14.501s


I guess it was because of the scratches. OK, the questions is why no DMA
by default and why the high CPU usage? Or are those normal?

I forgot to mention that I have had this DVD-ROM drive since January
2005 and the motherboard since 9/2004. :)
--
"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.
( )
.



Relevant Pages

  • Re: Impossible to enable DMA- Tried Everything.
    ... Try the CD-R on cable select and the DVDRW as master. ... > and can't get Windows to enable DMA transfer. ... > BIOS Settings for these drives have the default setting of Auto ...
    (alt.comp.periphs.mainboard.asus)
  • CD-RW drive will only recognise CD-R as CD-RW
    ... Optical Drive GENERIC CRD-BP1700P (40x/12x/40x CD-RW) ... I assume this is because the disc is showing up as a RW disc. ... However, when I place the same CD-R into the DVD-RW drive, its icon changes ... Jukebox reported that no CD/DVD drives had been detected and so I had to ...
    (microsoft.public.windowsxp.hardware)
  • Re: CD-R drive/software failure
    ... Harry Ohrn MS MVP ... OR WHEN ON A HURRY TO A PRESENTATION THEY WANT TO BURN A CD-R and FAIL ... will disable XP's native CD writing software. ... Device Manager says that the drives are working normally, ...
    (microsoft.public.windowsxp.basics)
  • Re: CD-RW - Need help; basic question.
    ... Certainly DVD-RW drives have dropped in price to become very affordable. ... I lived through the era of early CD-R and CD-RW drives, media, AND, most ...
    (alt.sys.pc-clone.dell)
  • Re: DMA enabled on adapter but not on CD-R
    ... and foundt that DMA was marked as enabled for the ... but not the CD-R burner. ... If the CD-R doesn't think it's a DMA slave, ... configuration/optimisation and stops unnecessary memory to memory copying, ...
    (comp.sys.ibm.ps2.hardware)