LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   CD\DVD Cache (https://www.linuxquestions.org/questions/linux-software-2/cd%5Cdvd-cache-108526/)

LinuxBlackBox 10-25-2003 09:22 PM

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? :scratch:

Please give me any suggestions,
-LBB

adz 10-25-2003 10:41 PM

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.

LinuxBlackBox 10-26-2003 02:01 PM

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

adz 10-26-2003 02:39 PM

You have to be root to run it. It gets installed into /sbin. Therefore, only root has it in his/her PATH.

LinuxBlackBox 10-26-2003 04:19 PM

Apparently I'm not that lucky:

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

-LBB

adz 10-26-2003 04:37 PM

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?

adz 10-26-2003 04:38 PM

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?

LinuxBlackBox 10-26-2003 06:30 PM

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

adz 10-27-2003 12:28 AM

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.


All times are GMT -5. The time now is 01:45 AM.