Show memory, swap areas and swappiness
how much ram is free | does the server have swap | show swappiness value | free | swap | ram | swappinessfree -h && swapon --show && cat /proc/sys/vm/swappinessfree -h shows total, used and available for RAM and swap; the available column is what matters, not free. swapon --show lists swap files and partitions with size and usage, and the last number is the swappiness (default 60). Lower values make the kernel swap out later.
Note: If swapon --show prints nothing, no swap is configured. Which processes are swapped out is covered by the entry on swap usage per process.
Also searched as
- how much ram is free
- does the server have swap
- show swappiness value