Manage swap space

Manage swap space in Linux — with the four heights of help laid out: do it now, make it easier for the next person to accept, work out the right move when you are stuck, and learn the pattern so it stops coming back.

4prompt heights
Open it in the interactive atlas →

The four heights

The same task, four distances: today's deadline, the next reviewer, the stuck moment, the pattern.

Execute — do the immediate task

+
On cache-node-1, add a 2 GiB temporary swap file, enable it immediately, and make no persistent…
On cache-node-1, add a 2 GiB temporary swap file, enable it immediately, and make no persistent changes. Verify swap is active and report total swap and free swap afterwards. I will remove it after the maintenance window ends.

Improve — make it easier to accept

+
Before I change swap on prod-search-2, prepare a clear summary: current RAM usage, existing swap…
Before I change swap on prod-search-2, prepare a clear summary: current RAM usage, existing swap size and utilization, recent OOM events, and how adding swap would change observed memory pressure. Recommend the minimal swap size and whether a temporary swap file or partition is safer, plus any performance impact to warn stakeholders about.

Decide — diagnose the stuck moment

+
During a nightly batch on analytics-01 the OOM killer started killing workers. Swap is currently…

OOM killer started on analytics-01 during a batch job.

During a nightly batch on analytics-01 the OOM killer started killing workers. Swap is currently zero and I don't know if adding swap would mask a memory leak. I fear adding swap will hide the root cause, but leaving none risks further OOMs. What's the most pragmatic next step to stabilize the job while preserving forensic data for debugging?

Become — change the pattern

+
Our ops habit is to add swap whenever memory issues appear, which reduces urgency to fix memory…

We reflexively add swap to stop crashes.

Our ops habit is to add swap whenever memory issues appear, which reduces urgency to fix memory leaks and bloats instance sizes. This defers real fixes and increases costs. What policy and practice should we adopt to decide when swap is acceptable, and how to pair temporary swap with follow-up actions to ensure leaks are tracked and resolved?

Next to this one

Other operating system work people do in Linux.

Every task here came from the work, not from a feature list — which is why the prompts name what you want done and never the button that does it. The tool changes; the work does not.
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.

The rest of the map

Same library, five ways in.