Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vms:debian [2019/01/17 06:27] admin [Time Sync] |
vms:debian [2019/04/09 12:25] (current) admin [Swap File] |
||
---|---|---|---|
Line 333: | Line 333: | ||
> sysctl -w vm.swappiness=30 | > sysctl -w vm.swappiness=30 | ||
vm.swappiness = 30 | vm.swappiness = 30 | ||
+ | </Code> | ||
+ | |||
+ | To make swappiness persistent: | ||
+ | <Code:bash> | ||
+ | > nano /etc/sysctl.conf | ||
+ | ... | ||
+ | ################################################################### | ||
+ | # Swap usage | ||
+ | # | ||
+ | # vm.swappiness = 0 The kernel will swap only to avoid an out of memory condition | ||
+ | # vm.swappiness = 1 Minimum amount of swapping without disabling it entirely. | ||
+ | # vm.swappiness = 10 This value is sometimes recommended to improve performance when sufficient memory exists in a system. | ||
+ | # vm.swappiness = 60 The default value. | ||
+ | # vm.swappiness = 100 The kernel will swap aggressively. | ||
+ | ################################################################### | ||
+ | vm.swappiness = 10 | ||
</Code> | </Code> | ||