Glossary

Swap

What is swap?

In short

Swap is disk space Linux uses as overflow when RAM is full, moving rarely used memory pages out to disk.

Why it matters

A little swap use is normal and gives the server a buffer against sudden spikes. Heavy, constant swapping is not: disk is far slower than RAM, so everything slows down and iowait climbs. No swap at all means a memory spike goes straight to the OOM killer.

How to check it on Linux

Swap size and use:

free -h && swapon --show

What Opservo does about it

The health score flags swap use above 25% and also notes a server with no swap configured, because a spike there ends in an OOM kill. The Opservo Health Standard

Swap, answered

What is swap?+

Swap is disk space Linux uses as overflow when RAM is full, moving rarely used memory pages out to disk.

How do I check swap on Linux?+

Swap size and use: free -h && swapon --show

How does Opservo handle swap?+

The health score flags swap use above 25% and also notes a server with no swap configured, because a spike there ends in an OOM kill.

Related terms

Opservo watches all of this on every server and explains problems in plain English. Free for 2 servers.