LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2003, 10:22 PM   #1
LinuxBlackBox
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Slackware 9
Posts: 243

Rep: Reputation: 30
CD\DVD Cache


When I am playing DVDs with VLC, the frame rate is very poor, and my drive is almost constantly reading the disk. How can I set the read-ahead or cache size in RH9 to speed up performance?

Please give me any suggestions,
-LBB
 
Old 10-25-2003, 11:41 PM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Well you can get a utility called hdparm. Use it to make sure that dma is turned on for that drive and see what else you can do to it to make it run faster. The "-a" flag sets the read ahead but increasing this doesn't always help. Check out the "-u", "-E", and "-b" options.
 
Old 10-26-2003, 03:01 PM   #3
LinuxBlackBox
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Slackware 9
Posts: 243

Original Poster
Rep: Reputation: 30
I downloaded hdparm, install went smoothy. But when I try to run it, the shell says it's an invalid command ("hdparm"). However, 'man hdparm' shows the proper manual page. What is going on?

Thanks for that tip about hdparm, adz, I wouldnt have found it otherwise.

-LBB
 
Old 10-26-2003, 03:39 PM   #4
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
You have to be root to run it. It gets installed into /sbin. Therefore, only root has it in his/her PATH.
 
Old 10-26-2003, 05:19 PM   #5
LinuxBlackBox
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Slackware 9
Posts: 243

Original Poster
Rep: Reputation: 30
Apparently I'm not that lucky:

"[root@LinuxBlackBox root]# hdparm
bash: hdparm: command not found
[root@LinuxBlackBox root]#"

-LBB
 
Old 10-26-2003, 05:37 PM   #6
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Do a find / -iname hdparm. Then type in the entire path to the file. It will be in /sbin or /usr/sbin most likely. For example you would type /sbin/hdparm from the prompt. If nothing comes up from the find command then something went wrong with the install. How did you install it? RPM?
 
Old 10-26-2003, 05:38 PM   #7
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Do a find / -iname hdparm. Then type in the entire path to the file. It will be in /sbin or /usr/sbin most likely. For example you would type /sbin/hdparm from the prompt.

If nothing comes up from the find command then something went wrong with the install. How did you install it? RPM? What was the exact name of the .rpm file?
 
Old 10-26-2003, 07:30 PM   #8
LinuxBlackBox
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Slackware 9
Posts: 243

Original Poster
Rep: Reputation: 30
Ahhh.. now I feel better:
"[root@LinuxBlackBox root]# /sbin/hdparm -a /dev/cdrom

/dev/cdrom:
readahead = 8 (on)
[root@LinuxBlackBox root]#"

And one more thing if you dont mind: how can I change it?

-LBB
 
Old 10-27-2003, 01:28 AM   #9
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Change the read ahead? Read the manpages on getting/setting values. To change that particular one type hdparm -a <value> /dev/cdrom. But like I said the read ahead doesn't help THAT much. Play around with the other settings I suggested.
 
  


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
which DVD player can play DVD from hard drive *and* support DVD Menu ? tho_x_tran Linux - Software 16 11-16-2006 03:00 PM
DVD+RW UFS: Overflooded Disk Cache? rtg Linux - Hardware 5 04-07-2006 04:14 PM
dvd cache ? d1l2w3 Linux - General 2 07-15-2005 09:40 AM
Error: Caching enabled and local cache: //var/cache/yum/base/primary.xml.gz does... dr_zayus69 Linux - Software 2 07-06-2005 05:32 AM
Acidrip from dvd cache? Giallo998 Linux - Software 1 11-13-2003 05:11 AM


All times are GMT -5. The time now is 06:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration