I assume I should get rid of most of the swap. I also read somewhere to increase… swappiness of zram?

  • @[email protected]
    link
    fedilink
    7
    edit-2
    1 year ago

    Why would you get rid of the swap? Having swap space should never hurt. Swap can sit empty when it’s not needed, and some memory pages are rarely used, so you’ll hardly notice if they’re swapped out.

    Only too much swapping is annoying/slow. This happens if you run out of physical RAM; mostly independent of your swap size.

    You can listen to the experts here for how to fine-tune the parameters (swappiness). Linux (as most operations systems) is built with the assumption that swap > physical RAM exists. Linux can run without swap, but the kernel runs into a huge problem if RAM becomes nearly full and has to kill processes. Usually adding swap is the better option.

    • @ExplodeyWolfOP
      link
      21 year ago

      You know, for some reason I thought that zram was on the disk, and it isn’t. That makes a huge difference. I’ll keep the swap then!