--experimental-memory-mlock support

The flag protects etcd memory from being swapped out to disk.
This can happen in memory constrained systems where mmaped bbolt
area is natural condidate for swapping out.

This flag should provide better tail latency on the cost of higher RSS
ram usage. If the experiment is successful, the logic should get moved
into bbolt layer, where we can protect specific bbolt instances
(e.g. avoid protecting both during defragmentation).
This commit is contained in:
Piotr Tabor
2021-03-05 16:17:59 +01:00
parent f4001630d9
commit a46a358577
18 changed files with 104 additions and 16 deletions

View File

@@ -37,6 +37,7 @@ require (
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0
golang.org/x/lint v0.0.0-20200302205851-738671d3881b // indirect
golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb
golang.org/x/sys v0.0.0-20210305215415-5cdee2b1b5a0
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e
golang.org/x/tools v0.0.0-20201014170642-d1624618ad65 // indirect
google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884