Vm.swappiness. Is it really necessary?

Hello, everyone.

I have a laptop. With two SSDs (no HDD).

As far as I know, SWAP uses Flash, which can wear out my SSD.

If I just disable it by setting vm.swappiness to 0, what can happen?

I am very new to this, so please advise.

Asus TUF A15 hardware

more importantly…how much RAM do you have on your laptop?

If you have enough RAM the the system won’t use swap at all. Do you run out of the RAM normally ?

For SSDs, you may want to use setting vm.swappiness=10 instead of disabling swap completely (0). This keeps swap available only as a last resort, reducing SSD wear while preventing crashes.

16 Gb

No, luckily. At least I didn’t saw it

In that case you are creating a problem where there is none. If you are really concerned. Otherwise, set it to 10, meaning that the swap is used only when absolutely necessary as opposed to current settings 60.