Difference between revisions of "Swap space"
Jump to navigation
Jump to search
(Created page with "Linux ``` free -m swapoff -a # wait about 30 seconds swapon -a ```") |
|||
Line 1: | Line 1: | ||
− | Linux | + | # Linux |
+ | |||
+ | ## Clear swap | ||
``` | ``` | ||
free -m | free -m | ||
Line 5: | Line 7: | ||
# wait about 30 seconds | # wait about 30 seconds | ||
swapon -a | swapon -a | ||
+ | ``` | ||
+ | |||
+ | ## Check swappiness | ||
+ | ``` | ||
+ | sysctl -a | grep swap | ||
+ | vm.swappiness = 10 | ||
``` | ``` |
Latest revision as of 21:18, 8 February 2022
Linux
Clear swap
free -m swapoff -a # wait about 30 seconds swapon -a
Check swappiness
sysctl -a | grep swap vm.swappiness = 10