--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

@@ -8,7 +8,7 @@ require (
github.com/dustin/go-humanize v1.0.0
github.com/spf13/pflag v1.0.5
go.uber.org/zap v1.16.0
golang.org/x/sys v0.0.0-20201009025420-dfb3f7c4e634
golang.org/x/sys v0.0.0-20210305215415-5cdee2b1b5a0
google.golang.org/grpc v1.32.0
)