File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
keps/sig-node/2400-node-swap Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 30
30
- [ Low footprint systems] ( #low-footprint-systems )
31
31
- [ Virtualization management overhead] ( #virtualization-management-overhead )
32
32
- [ Notes/Constraints/Caveats (Optional)] ( #notesconstraintscaveats-optional )
33
+ - [ Future Extensions of Swap] ( #future-extensions-of-swap )
33
34
- [ Risks and Mitigations] ( #risks-and-mitigations )
34
35
- [ Existing use cases of Swap] ( #existing-use-cases-of-swap )
35
36
- [ Exhausting swap resource] ( #exhausting-swap-resource )
@@ -487,6 +488,18 @@ to not permit the use of swap by setting `memory-swap` equal to `limit`.
487
488
488
489
[runtime specification]: https://github.com/opencontainers/runtime-spec/blob/1c3f411f041711bbeecf35ff7e93461ea6789220/config-linux.md#memory
489
490
491
+ ### Future Extensions of Swap
492
+
493
+ This feature was created so that we iterate on adding swap to Kubernetes.
494
+ Due to this, pods will not be able to request swap memory directly nor explicitly for the current implementation.
495
+ To make swap more useful for workloads, we acknowledge the need for proper APIs for swap to make it customizable and flexible.
496
+
497
+ For example, we're considering the following features for future KEPs:
498
+ - Swap should be opt-in and opt-out at the workload level.
499
+ - Customization of swap limit calculation for workloads.
500
+ - Eviction Manager to be more flexible in regards to swap limits.
501
+ - Eviction Manager should look at more advanced ways of determining swap pressure (PSI for example).
502
+
490
503
### Risks and Mitigations
491
504
492
505
Having swap available on a system reduces predictability. Swap's performance is
You can’t perform that action at this time.
0 commit comments