Closed poige closed 8 years ago
Can you be more specific? Yes, this nocache
is more of a dirty hack that after the fact evicts pages from the page cache. Not exactly preventing cache pollution, more a way to avoid cache trashing by certain classes of applications.
If you want a foolproof solution, use a cgroup and limit its memory footprint; see the README here: https://github.com/Feh/nocache#alternate-approaches
Closing this issue; please reopen if you have a reproducible problem or a concrete idea of how to improve the current code.
My observations show that method's being currently used possibly may fail to prevent cache pollution.
May be it's related to https://www.percona.com/blog/2010/04/02/fadvise-may-be-not-what-you-expect/
I suppose using O_DIRECT could be more promising way to achieve the goal.