Configure Swap and Inspect Memory Pressure

Add a small swap area on its own partition, make it permanent, watch a bounded workload push the machine, and learn to tell 'memory is full' from 'memory is under pressure'.

Skill labintermediate~30 minPro

What you'll do

  • ✓Read free, swapon and vmstat and know what available means
  • ✓Create and activate a swap partition
  • ✓Persist swap in fstab by UUID and prove it after a reboot
  • ✓Observe a bounded memory workload without triggering the OOM killer

Lab outline

  1. 01Swap
  2. 02Persist
  3. 03Observe
  4. 04Prove it

Before you start

  • Filesystems and Persistent UUID Mounts
  • Processes, Signals, and Job Control

Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.

← All Linux System Administration labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

Configure Swap and Inspect Memory Pressure — Linux lab | Kube Labs