LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-07-2004, 05:13 AM   #1
giadem
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian
Posts: 4

Rep: Reputation: 0
DVD performance


Hello,

I have problems with dvd playback performance on my laptop: movies freeze
every 2 seconds for about half a second. I have read that other people
having the same problem, got their troubles solved by enabling dma, but
unfortunately this does not seem to fix anything in my case.
I must say that I have also a windows partition on my laptop and movies are
smooth on that partition.
I have an ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, DMA.
When I run
> hdparm -tT /dev/hdc

I get the following:

/dev/hdc:
Timing buffer-cache reads: 408 MB in 2.01 seconds = 203.32 MB/sec
Timing buffered disk reads: 6 MB in 3.12 seconds = 1.93 MB/sec

It seems to mee that 1.93 MB/sec are too slow. Can anybody suggest me what
to do?

--giadem
 
Old 08-07-2004, 09:07 AM   #2
wrat
Member
 
Registered: May 2004
Posts: 245

Rep: Reputation: 30
google is your friend
http://www.linuxdevcenter.com/pub/a/...29/hdparm.html
 
Old 08-07-2004, 10:13 AM   #3
giadem
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for replying!
...Well, I've tried all that staff already, but no success.
The output of
hdparm /dev/hdc

is the following:

/dev/hdc:
HDIO_GET_MULTCOUNT failed: Invalid argument
IO_support = 3 (32-bit w/sync)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 1 (on)
readahead = 256 (on)
HDIO_GETGEO failed: Invalid argument

It is strange that I do not have such a problem under windows on the
same machine. There should be something to speed up the execution
that I don't know.

Any help is very much appreciated!

--giadem
 
Old 08-07-2004, 03:46 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by giadem
Thanks for replying!
...Well, I've tried all that staff already, but no success.
The output of
hdparm /dev/hdc

is the following:

/dev/hdc:
HDIO_GET_MULTCOUNT failed: Invalid argument
IO_support = 3 (32-bit w/sync)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 1 (on)
readahead = 256 (on)
HDIO_GETGEO failed: Invalid argument

It is strange that I do not have such a problem under windows on the
same machine. There should be something to speed up the execution
that I don't know.

Any help is very much appreciated!

--giadem
In your /etc/hdparm.conf near the bottom of the file is an example for the first cdrom0 uncomment it and use /etc/init.d/hdparm restart and see if this helps. If it does not work then try this after commenting out the previous suggestion.

Code:
/dev/hdc {
       dma = on
}
According to your output above it should already be working but trying these should not hurt and can only help.
 
Old 08-08-2004, 08:59 AM   #5
giadem
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks a lot Stephen,

I've implemented your suggestions but unfortunately I did
not notice any improvement.
One more thing that I've experimented is the following:
if I reduce the movie window to about 320x240 then
the problem disappear: the playback becomes really fluid;
as soon as I switch back to fullscreen mode, it becomes to
freeze again.
Moreover, I noticed that there is almost no difference in performance between dma enabled and not. Namely, here are the two respective outputs of 'hdparm -tT /dev/hdc'

dma enabled:

/dev/hdc:
Timing buffer-cache reads: 392 MB in 2.01 seconds = 195.25 MB/sec
Timing buffered disk reads: 6 MB in 3.12 seconds = 1.93 MB/sec

dma not enabled:

/dev/hdc:
Timing buffer-cache reads: 396 MB in 2.00 seconds = 197.93 MB/sec
Timing buffered disk reads: 6 MB in 3.87 seconds = 1.55 MB/sec

I repeat that I have no problem under windows on the same machine
and with the same dvd. So it cannot depend on my laptop.
That is very frustrating. But I don't want to give up. Please help!

--giadem
 
Old 08-08-2004, 11:10 AM   #6
wrat
Member
 
Registered: May 2004
Posts: 245

Rep: Reputation: 30
its not dma or your dvdreader it has to do with your video driver thats why its ok at 320x240 ..you may need to load the proper driver from the manuf rather than the generic xfree or x.org
 
Old 08-08-2004, 12:49 PM   #7
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
You may want to check and make sure that the DMA is getting turned on when you boot for the drive and for the chipset on the motherboard.

Code:
>$ dmesg | grep DMA
  DMA zone: 4096 pages, LIFO batch:1
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci0000:00:07.1
    ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:DMA
hda: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(100)
hdd: 78198750 sectors (40037 MB) w/2000KiB Cache, CHS=65535/16/63, UDMA(100)
Otherwise I'm agreeing with wrat here what driver are you using for the video?
 
Old 08-09-2004, 02:46 AM   #8
giadem
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 0
The output of dmesg is the following:

DMA zone: 4096 pages, LIFO batch:1
VP_IDE: VIA vt82c686b (rev 42) IDE UDMA100 controller on pci0000:00:07.1
ide0: BM-DMA at 0x1840-0x1847, BIOS settings: hdaMA, hdbio
ide1: BM-DMA at 0x1848-0x184f, BIOS settings: hdcMA, hddio
hda: 78140160 sectors (40007 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, DMA

So I think DMA is working.
Anyway, I've installed kaffeine (before I've been using okle) and now the playback is
improved a lot, although not as smooth as under windows.
The best performance is reached when using the 'very low cpu usage' option.

Concerning my video card, I have a ProSavage VIA Twister-K/KT133x/KM133 chipset.
I use the xfree86 x server and I've the 'savage' driver installed.
I don't know if this is the best setting for my video card...

Thanks a lot to HappyTux and wrat for helping me!!
 
Old 08-09-2004, 06:13 AM   #9
wrat
Member
 
Registered: May 2004
Posts: 245

Rep: Reputation: 30
for the best video performance got to the manuf web sie get their driver and install it with the instructions
 
  


Reply



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
which DVD player can play DVD from hard drive *and* support DVD Menu ? tho_x_tran Linux - Software 16 11-16-2006 02:00 PM
Inspiron 9300: Harddrive and DVD-drive performance issues zeruel Linux - Laptop and Netbook 7 10-11-2005 10:25 AM
DVD playback performance nephron Linux - Newbie 2 07-29-2004 12:32 PM
Horrible video card performance and DVD problems Pathian Slackware 4 03-18-2004 04:21 PM
DVD performance software adz Linux - Software 5 10-14-2003 11:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:02 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