0

My swap partition is not being used, I set the swappiness to 0 and fixed the UID in the config file to the UID of the swap partition but it's still at 0%.

Liam Judge
  • 13
  • 1
  • 6
  • If your swap is empty, that is good. You don't want it to be used while the same task could still be done with RAM alone, because that would just slow everything down. Also, what Terrance said. Swappiness 0 means off. – Byte Commander Apr 04 '18 at 00:03
  • 1
    How much RAM do you have? If you have a pretty high amount, the swap might not be used since swap is just RAM on disk space. – SealsRock12 Apr 03 '18 at 23:57
  • 2
    @Terrance Correction: vm.swappiness means swap is only used when absolutely needed when set to 0. – Thomas Ward Apr 04 '18 at 00:15

1 Answers1

1

SWAP space is used for RAM paging in cases where you may run out of available memory. If SWAP is active, but you are not using it, then it is likely that your resources are held in memory which has significantly faster read/write times than the SWAP space on a HDD.

To configre SWAP space, follow this guide

DWD
  • 296