Can all my spare RAM be used to mimimize hard drive activity

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Zaz
New Cone
New Cone
Posts: 3
Joined: 04 Oct 2007 22:14

Can all my spare RAM be used to mimimize hard drive activity

Postby Zaz » 04 Oct 2007 22:32

Whenever I watch a movie on my computer, usually that is the single task I'm using that computer for.

This means that I have some 300 Mb of unused RAM sitting in the computer, and I was wondering if vlc could somehow use that memory as a buffer for the video file being read, to minimize hard drive activity.

Usually when the video is playing the harddrive is in use all the time, reading the file as it is played.
If instead of that the video player could store perhaps 30 minutes of the video file (before it's decompressed) in RAM, that would take a few minutes of loading, then there would be no hard drive activity for perhaps 20 minutes. And since I have very aggressive harddrive power-down timings set, that would mean that my hard-drives could be resting for half the time the movie is playing.

Would this work?
Is it possible to do using vlc?

erazor02
New Cone
New Cone
Posts: 1
Joined: 22 Nov 2007 19:35

Re: Can all my spare RAM be used to mimimize hard drive activity

Postby erazor02 » 22 Nov 2007 20:00

That would be a very usefull feature.

I got 2 gigs of RAM in my system and when watching video I have about 1.5 gigs of free memory doing just... well - nothing. In my observation the decoding of videofiles (I hereby exclude HD videos with 720p and above resolution) doesn't use very much RAM, so for me that could mean a whole movie without any harddiskactivity.

As a suggestion VLC could "reserve" a good part of the memory only for itself. Maybe a user-defined amount, maybe proportional to the overall amount of currently available RAM. Or the user pre-sets a maximum filesize (eg. 1024MB) for prefetching the video to RAM and files bigger than 1024MB would have to load several times from the disks.

Thanks for considering.

....and good job on VLC!

Zaz
New Cone
New Cone
Posts: 3
Joined: 04 Oct 2007 22:14

Re: Can all my spare RAM be used to mimimize hard drive activity

Postby Zaz » 29 Jan 2008 16:50

The video player would of course have to make sure that the OS doesn't swap the memory back to the hard drive, since that would be counter productive.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Can all my spare RAM be used to mimimize hard drive activity

Postby Jean-Baptiste Kempf » 29 Jan 2008 18:29

It will be possible for next version of VLC. Or partly indeed.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Zaz
New Cone
New Cone
Posts: 3
Joined: 04 Oct 2007 22:14

Re: Can all my spare RAM be used to mimimize hard drive activity

Postby Zaz » 15 Nov 2008 17:23

Really? That's great. What is the feature called, and where can I read about how it works?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 54 guests