Linux › Section D · Disks and filesystems › Topic D.4

Swap space

When memory runs short, Linux can move idle pages of memory out to disk and bring them back later. That disk area is swap space. Setting it up takes three commands; deciding how much to have, and recognising when swapping hurts, takes judgement.

In this topic

  • What swap does
  • Seeing swap in use
  • A swap partition
  • A swap file
  • Worked example: sizing a swap file
  • Turning swap off and priorities
  • How much swap?
  • zram and swappiness
  • Worked example: is swap a problem?
  • Common mistakes to avoid
  • Key takeaways

This topic is part of Wuanberri Pro. Checking your access…

← Previous topicNext topic →