File Read Cache - How to purge?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Wed Aug 22 03:47:32 EDT 2007


On Wed, 22 Aug 2007 06:05:03 +0200, Hrvoje Niksic wrote:

> Nick Craig-Wood <nick at craig-wood.com> writes:
> 
>> If you are running linux > 2.6.18 then you can use
>> /proc/sys/vm/drop_caches for exactly that purpose.
>>
>>   http://www.linuxinsight.com/proc_sys_vm_drop_caches.html
> 
> That URL claims that you need to run "sync" before dropping the cache,
> and so do other resources.  I wonder if that means that dropping the
> cache is unsafe on a running system.

Of course not.  It means that dirty pages are not dropped, so if you
really want to invalidate as much cache memory as possible you have to
``sync`` before.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list