The Kubernetes NodeSwap feature, likely to graduate to stable in the upcoming Kubernetes v1.34 release, allows swap usage: a significant shift from the conventional practice of disabling swap for performance predictability. This article focuses exclusively on tuning swap on Linux nodes, where this feature is available. By allowing Linux nodes to use secondary storage for additional virtual memory when physical RAM is exhausted, node swap support aims to improve resource utilization and reduce out-of-memory (OOM) kills.
Good write up. If you are trashing due to swap reads isnt that a sign that you’ve under specced your ram for the workload? If you try fix the issue by reducing swappiness wont you run into the same issue when you need to refetch the dropped pages from disk again.