Skip to content

Commit 0f6a6df

Browse files
committed
Future extensions of swap
Signed-off-by: Itamar Holder <[email protected]>
1 parent 7027c81 commit 0f6a6df

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

keps/sig-node/2400-node-swap/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- [Low footprint systems](#low-footprint-systems)
3131
- [Virtualization management overhead](#virtualization-management-overhead)
3232
- [Notes/Constraints/Caveats (Optional)](#notesconstraintscaveats-optional)
33+
- [Future Extensions of Swap](#future-extensions-of-swap)
3334
- [Risks and Mitigations](#risks-and-mitigations)
3435
- [Existing use cases of Swap](#existing-use-cases-of-swap)
3536
- [Exhausting swap resource](#exhausting-swap-resource)
@@ -487,6 +488,18 @@ to not permit the use of swap by setting `memory-swap` equal to `limit`.
487488
488489
[runtime specification]: https://github.com/opencontainers/runtime-spec/blob/1c3f411f041711bbeecf35ff7e93461ea6789220/config-linux.md#memory
489490
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+
490503
### Risks and Mitigations
491504
492505
Having swap available on a system reduces predictability. Swap's performance is

0 commit comments

Comments
 (0)