Optimizing Linux with cheap flash drives
Posted Feb 20, 2011 13:45 UTC (Sun) by nix
In reply to: Optimizing Linux with cheap flash drives
Parent article: Optimizing Linux with cheap flash drives
I really wish I could turn off caching on some files - there's no good reason to read-cache an MP3 or video file - it's going in and out of the app, and pretty much wastes memory when it's done so.
It takes code changes, but posix_fadvise() takes a POSIX_FADV_NOREUSE which may be useful for mpg123 et al (if indeed they are actually using most of the data only once: I don't know enough about media formats to know if this is true). But mpg123 doesn't use it... and the kernel doesn't use it either. Oops.
to post comments)