To be clear, I don’t blame the poster of this comment at all for the content of their post – this is accepted as “common knowledge” by a lot of Linux sysadmins and is probably one of the most likely things that you will hear from one if you ask them to talk about swap. It is unfortunately also, however, a misunderstanding of the purpose and use of swap, especially on modern systems.

  • boredsquirrel@slrpnk.net
    link
    fedilink
    arrow-up
    2
    ·
    5 months ago

    Swap is only needed for emergencies, if you have a bad oom, and if you have low RAM.

    If you have like 1-4GB of RAM, ZRAM may be better than swap.