Swappiness
Il valore non è una percentuale, ma un indice di intervento. Questa impostazione può aumentare drasticamente le prestazioni quando ZFS è usato come filesystem.
Maggiori informazioni nelle Wiki di Proxmox VE: Swap on ZFS
| Valore | Funzionamento |
|---|---|
| 0 | The kernel will swap only to avoid an out of memory condition |
| 1 | Minimum amount of swapping without disabling it entirely |
| 10 | Recommended value to improve performance when sufficient memory exists in a system |
| 60 | The default value |
| 100 | The kernel will swap aggressively |
Impostazione temporanea
Lanciare questo comando da console bash:
L'impostazione verrà mantenuta solamente fino al prossimo shutdown del sistema host.
Impostazione permanente
Aggiungere questa riga di configurazione alla fine del file /etc/sysctl.conf:
dove 10 è il livello di swappiness scelto.