On Sun, 4 Apr 1999, Ted Pavlic wrote:

> Does anyone know how to limit the amount memory used for disk cache by
> Linux?

Firstly, this is the wrong list to ask it on.  Try linux-kernel.  I've
wanted to do this for a long time too, and the basic answer is "you
can't".  Linux has a nice little bug where when the sound driver tries to
allocate it's buffer space, and the disk cache is using it, it fails
because of being out of memory.  The solution to this, is to write a
simple little program to malloc space, and free it.  This will flush all
the disk cache out of memory.

Davey

Reply via email to