Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

happycache may double-load pages #8

Open
hashbrowncipher opened this issue May 30, 2019 · 0 comments
Open

happycache may double-load pages #8

hashbrowncipher opened this issue May 30, 2019 · 0 comments

Comments

@hashbrowncipher
Copy link
Owner

Right now, we do two passes to load pages: first an fadvise pass, then a pass where we actually fault the pages using mmap. If the OS is doing a non scan-resistant LRU, then we can get in a situation where we scan once, evict a few pages at the end of the scan, and then scan again. This would happen whenever a larger page cache is dumped from a larger machine and loaded on a smaller one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant