Skip to content

Commit 8d8d009

Browse files
authored
Mark article for immediate publication
1 parent f107d4a commit 8d8d009

File tree

1 file changed

+6
-3
lines changed
  • content/en/blog/_posts/2025-06-29-linux-swap-tuning-for-kubernetes

1 file changed

+6
-3
lines changed

content/en/blog/_posts/2025-06-29-linux-swap-tuning-for-kubernetes/index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
---
22
layout: blog
33
title: "Tuning Linux Swap for Kubernetes: A Deep Dive"
4-
date: 2025-07-xx
5-
draft: true
4+
date: 2025-08-19T10:30:00-08:00
5+
draft: false
66
slug: tuning-linux-swap-for-kubernetes-a-deep-dive
77
author: >
88
Ajay Sundar Karuppasamy (Google)
99
---
1010

11-
The Kubernetes [NodeSwap feature](/docs/concepts/cluster-administration/swap-memory-management/) now enables controlled swap usage, a significant shift from the traditional 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, `NodeSwap` aims to improve resource utilization and reduce out-of-memory (OOM) kills.
11+
The Kubernetes [NodeSwap feature](/docs/concepts/cluster-administration/swap-memory-management/), likely to graduate to _stable_ in the upcoming Kubernetes v1.34 release,
12+
allows swap usage:
13+
a significant shift from the conventional practice of disabling swap for performance predictability.
14+
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.
1215

1316
However, enabling swap is not a "turn-key" solution. The performance and stability of your nodes under memory pressure are critically dependent on a set of Linux kernel parameters. Misconfiguration can lead to performance degradation and interfere with Kubelet's eviction logic.
1417

0 commit comments

Comments
 (0)