Forums » Discussion »
Free memory chewed up (file memory caching)
Added by Roger Jönsson over 1 year ago
If I watch a movie, the free memory used up until there is none left.
From what I understand this is because of the OS X automatic file caching, which for watching movies is pointless.
It results in the Mac getting very sluggish, frosen, with terrible disk file swapping, close to useless for a long time after having watched a DVD-movie or other large file movie. If I need to work on my mac after having watched a movie and is in a hurry I have to restart it or use an app like iFreeMemory. The waiting time for other apps to take back the memory stolen, feels like forever and the computer is not responding well. Pausing a movie and trying to open another program or just looking around the files is not fun either and sometimes takes forever, when the free memory is not available.
This behaviour is the same in VLC by default (nowadays) with memory mapping turned on. The file memory mapping however can be turned off in VLC and then the caching stops. Apple obvoiusly turned off the file memory caching in the DVD-player and it doesn't steal the free memory either as it goes.
Someone in the VLC forum suggested using fcntl(F_NOCACHE) ,whatever that is, to make OS X not cache the file in memory.
Turning off file memory caching is the right way to go with a movie player!
If this could be fixed in MPE it would be GREAT!