Re: Ability to limit or disable page caching?

From: Kevin Burton
Date: Mon May 05 2008 - 14:47:10 EST


>> 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.

> See this article for an explanation of swappiness :
> http://www.leap-cf.org/oldarchive/2004-May/038622.html
>
>> You could do this with RHEL 4.x but I don't recall this ever making it
>> into 2.6 :-/
>
> AFAIK RHEL 4.x runs 2.6.9.

OK... maybe it was 3.x .. I might be getting confused with their
kernel release numbers.

Kevin

--
Founder/CEO Tailrank.com
Location: San Francisco, CA
AIM/YIM: sfburtonator
Skype: burtonator
Work: http://spinn3r.com and http://tailrank.com
Blog: http://feedblog.org
Cell: 415-637-8078
Fax: 1-415-358-419 PIN: 0092
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/