---
title: "Scaling Kubernetes Workloads with Node Swap"
description: "Kubernetes node swap, GA since v1.34 and backed by fast NVMe Local SSDs, lets nodes page out dormant anonymous memory and pack far more pods."
url: "https://swe.quest/articles/scaling-kubernetes-workloads-with-node-swap-f795d2bfe3f76482"
canonical: "https://kubernetes.io/blog/2026/10/05/scaling-kubernetes-workloads-with-node-swap/"
source: "Kubernetes Blog"
published: "2026-10-05"
difficulty: "medium"
kind: "Research"
reading_minutes: 6
tags: ["kubernetes","linux","sandboxing","performance","cost-optimization"]
---

# Scaling Kubernetes Workloads with Node Swap

A post on [Kubernetes Blog](https://swe.quest/sources/kubernetes.md), published 2026-10-05, 6 min read, Research. Original: [https://kubernetes.io/blog/2026/10/05/scaling-kubernetes-workloads-with-node-swap/](https://kubernetes.io/blog/2026/10/05/scaling-kubernetes-workloads-with-node-swap/)

## Summary

Kubernetes node swap, GA since v1.34 and backed by fast NVMe Local SSDs, lets nodes page out dormant anonymous memory and pack far more pods. Benchmarks show a Linux kernel build running at half the memory limit (300 MB vs 600 MB) with no slowdown, gVisor headless Chrome doubling from 80 to 160 pods, Kata rising from 40 to 50, and gVisor Python sandboxes tripling from 80 to 240. At peak density, latency rises mainly from CPU contention rather than swap I/O, but squeezing limits into the active working set (200 MB for the build) cost over 40% runtime, so swap is burst insurance, not a RAM replacement. To use it, enable LimitedSwap in the kubelet config on cgroup v2 and run workloads as Burstable QoS.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)

## Prerequisites

- Kubernetes pods and QoS classes ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- Linux memory and swap basics ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))
- cgroups

## Keywords

Kubernetes node swap, cgroup v2, LimitedSwap, gVisor, Kata Containers, Agent Sandbox, GKE, Local SSD

## Related posts

- [Incident Report: May 4th, 2024](https://swe.quest/articles/incident-report-may-4th-2024-b8a15a36661e2277.md): Railway · 2024-05-08 · Medium · 6 min read · Incidents & postmortems, Multi-tenancy, Capacity planning, Scheduling, Linux
  A single self-service customer workload deployed multiple memory-hungry replicas into Railway's smallest region, Asia-Southeast, and exhausted its memory.
- [Transparent memory offloading: more memory at a fraction of the cost and power](https://swe.quest/articles/transparent-memory-offloading-more-memory-at-a-fraction-of-the-cost-and-power-9a77f7c0bbbc4e59.md): Meta Engineering · 2022-06-20 · Hard · 11 min read · Linux, Memory management, Operating systems, Cost optimization, Storage systems
  TMO offloads cold memory to compressed RAM (zswap) or NVMe SSD swap.
- [Scaling to 1 million concurrent sandboxes in seconds](https://swe.quest/articles/scaling-to-1-million-concurrent-sandboxes-in-seconds-44dad4f83cd974c1.md): Modal · 2026-07-16 · Medium · 10 min read · Scheduling, Scaling, Sandboxing & isolation, Distributed systems, Containers
  Modal rebuilt its sandbox control plane to run 1 million concurrent sandboxes, creating all of them in under a minute, by removing central coordination and durable stores from the creation path.
- [1 Year of Autoscaling Postgres: How it’s going, and what’s next](https://swe.quest/articles/1-year-of-autoscaling-postgres-how-it-s-going-and-what-s-next-a75ce75d92118903.md): Neon · 2024-04-15 · Hard · 8 min read · PostgreSQL, Virtualization, Capacity planning, Memory management, Kubernetes
  Neon autoscales Postgres by running each instance as a VM in Kubernetes (NeonVM), with a per-node autoscaler-agent, a modified scheduler, and an in-VM vm-monitor that resizes the Local File Cache.
- [The Shift to cgroup v2 in Kubernetes: What You Need to Know](https://swe.quest/articles/the-shift-to-cgroup-v2-in-kubernetes-what-you-need-to-know-ef93aafe6f995ba1.md): Kubernetes Blog · 2026-10-06 · Medium · 11 min read · Kubernetes, Linux, Containers, Memory management
  Kubernetes has deprecated cgroup v1: from v1.35 the kubelet refuses to start on cgroup v1 nodes by default (\`failCgroupV1: true\`), kubeadm preflight errors on it, and the fallback is slated for removal in v1.38. cgroup v2 enables Memory QoS with \`memory.high\` throttling and tiered \`memory.min\`/\`memory.low\` reservations, container-wide OOM kills via \`memory.oom.group\`, safe rootless delegation, eBPF-based device control, PSI metrics, and accurate Pod-level in-place resizing.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
