tempestuous
Group: Members
Posts: 259
Joined: Aug. 2004 |
|
Posted: April 26 2005,06:43 |
|
I run a remastered/customised version of DSL from HD as a "Poor Man's Install". This allows me to use the "toram" boot parameter, then suspend my hard drive at the end of bootup so my laptop is quieter and I get an extra 30 minutes battery life. At the end of bootup "free" shows my RAM usage as 98,700 kB, of 128,000 available.
Here's the problem - if I choose to listen to music (which I access from CompactFlash), each mp3 file continues to fill up the RAM cache, so that about 6 songs later I'm out of RAM and my hard drive spins up to use the swap file. This is the same with all playback applications - XMMS, mpg321, and MPlayer. Even streaming mp3's from the internet fill up the cache.
But here's the interesting part - if I playback CD audio tracks in XMMS, there's no RAM bloat. But I don't want to play my music from CD, because I have one of those ultra-compact laptops where the CD drive is a separate unit connected by PCMCIA.
A Google search indicates that Linux wants to cache everything accessed from a mounted filesystem. Audio CD's are, of course, not mounted.
Does anyone know how I might prevent my music files from filling up the RAM cache?
Craig S
|