====== swap ======
===== Swappiness beállítása =====
* https://en.wikipedia.org/wiki/Swappiness
Ha a géped akkor is swap-el, amikor még gigabájtok vannak szabadon a memóriában, akkor érdemes a ''swappiness'' értékét lecsökkenteni.\\
Ezt vagy a ''/etc/sysctl.conf''-ban, vagy a ''/etc/sysctl.d'' mappában egy ''.conf'' fájlban kell beállítani.
* A lehető legkevesebb automatikus swap-elés:
vm.swappiness = 10
* Csak 0 szabad RAM esetén swap-eljen:
vm.swappiness = 0
^Value ^Strategy | | ''vm.swappiness = 0'' | The kernel will swap only to avoid an [[https://en.wikipedia.org/wiki/Out_of_memory|out of memory]] condition. See the [[https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/sysctl/vm.txt|VM Sysctl documentation]]. | | ''vm.swappiness = 1'' | Kernel version 3.5 and over, as well as kernel version 2.6.32-303 and over: 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. |