Re: Ability to limit or disable page caching?

From: Tomasz Kłoczko
Date: Tue May 06 2008 - 07:02:13 EST


On Mon, 5 May 2008, FD Cami wrote:

On Mon, 5 May 2008 11:34:24 -0700
"Kevin Burton" <burtonator@xxxxxxxxx> wrote:

In the mean time is it possible to disable the page cache or limit it
to say 10% of system memory?

You might want to look at /proc/sys/vm/ for tunables.
/proc/sys/vm/vfs_cache_pressure and /proc/sys/vm/swappiness are probably
what you are looking for.

I haven't played with vfs_cache_pressure so I'll take a look at this.

Unfortunately, swappiness doesn't work as intended.

Could you explain the original problem ? That way we might help you better.

Probably it is something like this:

http://blogs.smugmug.com/don/2008/05/01/mysql-and-the-linux-swap-problem/

kloczek
--
-----------------------------------------------------------
*Ludzie nie mają problemów, tylko sobie sami je stwarzają*
-----------------------------------------------------------
Tomasz Kłoczko | *e-mail: kloczek@xxxxxxxxxxxxxxxxxx*