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

Potential future breakage on linux #74

Open
hoytech opened this issue Jul 8, 2019 · 1 comment
Open

Potential future breakage on linux #74

hoytech opened this issue Jul 8, 2019 · 1 comment

Comments

@hoytech
Copy link
Owner

hoytech commented Jul 8, 2019

It looks like mincore() may be crippled in new linux kernels to protect against side-channel attacks: see this linux kernel commit

Unfortunately, on kernel versions 5.2+, you'll need to run vmtouch as root to get accurate page-residency information on files you don't have write access to.

@freedge
Copy link

freedge commented Oct 5, 2019

indeed, we experienced issue with SLES12 and kernel 4.12.14-95.24 - vmtouch would just report every single file as fully present in the page cache.

It's a bit messy, Linus committed, then reverted, a patch for mincore. Not sure how newer kernel versions will behave.

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

2 participants