Commit 849eb4a
committed
Don't use MADV_RANDOM
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 #9391 parent 53df586 commit 849eb4a
1 file changed
+0
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 60 | | |
69 | 61 | | |
70 | 62 | | |
| |||
0 commit comments