-
Notifications
You must be signed in to change notification settings - Fork 710
Don't use MADV_RANDOM #940
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
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sdodson The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Hi @sdodson. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
CC @dusk125 |
In addition to the explicit documented behavior in posix_madvise(2) this call since Linux 6.4 also causes the kernel to aggressively free pages from the page cache by short circuiting the LRU second chance mechanism. The result is compaction events that took 900ms now take up to 20s and a system which generally operated with near zero major page faults sees 600 or more major faults per second during compaction events. We've tested this change in older kernels and observed no negative impact in typical cloud instances. Fixes etcd-io#939
43efcdf to
849eb4a
Compare
|
I'll be revisiting this in the coming months as OpenShift moves to complete our transition to RHEL10 (6.12 baseline kernel). I'm OK with it being closed and would re-open it once I've confirmed that we see high rate of page faults, maybe something else in RHEL10 and/or upstream kernel mitigated the unique behavior seen on RHEL 9 kernels, who knows. |
In addition to the explicit documented behavior in posix_madvise(2) this
call since Linux 6.4 also causes the kernel to aggressively free pages
from the page cache by short circuiting the LRU second chance mechanism.
The result is compaction events that took 900ms now take up to 20s and
a system which generally operated with near zero major page faults sees
600 or more major faults per second during compaction events.
We've tested this change in older kernels and observed no negative impact
in typical cloud instances.
Fixes #939