how to knock a page out of file cache

Ishwor Gurung ishwor.gurung at gmail.com
Wed Oct 21 03:19:31 EDT 2009


[...]

> Also, are you looking for sync(2) http://linux.die.net/man/2/sync?

Also, maybe mmap.flush([offset, size]) @
http://docs.python.org/library/mmap.html ?
Get the file, mmap it and flush it. The docs has more info on flush(...)

Afaik, ultimately the kernel will control the writebacks of dirty
pages and their frequency of writebacks.
So if you want the shortest path, you can choose to go the /proc path.

[...]
-- 
Regards,
Ishwor Gurung



More information about the Python-list mailing list