Konubinix' opinionated web of thoughts

What Is Swappiness on Linux?

Fleeting

What Is Swappiness on Linux? (and How to Change It)

Swapping is a technique where data in Random Access Memory (RAM) is written to a special location on your hard disk—either a swap partition or a swap file—to free up RAM.

https://www.howtogeek.com/449691/what-is-swapiness-on-linux-and-how-to-change-it/

Linux has a setting called the swappiness value. There’s a lot of confusion about what this setting controls. The most common incorrect description of swappiness is that it sets a threshold for RAM usage, and when the amount of used RAM hits that threshold, swapping starts.

https://www.howtogeek.com/449691/what-is-swapiness-on-linux-and-how-to-change-it/

description of swappiness from the Linux documentation on GitHub: “This control is used to define how aggressive (sic) the kernel will swap memory pages. Higher values will increase aggressiveness, lower values decrease the amount of swap. A value of 0 instructs the kernel not to initiate swap until the amount of free and file-backed pages is less than the high water mark in a zone. The default value is 60.”

https://www.howtogeek.com/449691/what-is-swapiness-on-linux-and-how-to-change-it/

Notes linking here