how to knock a page out of file cache

Ishwor Gurung ishwor.gurung at
Wed Oct 21 09:19:31 CEST 2009


> Also, are you looking for sync(2)

Also, maybe mmap.flush([offset, size]) @ ?
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.

Ishwor Gurung

More information about the Python-list mailing list