I’ve heard a lot of people say your swap should be 2x RAM… but do I really need 32GB of swap?

  • z3bra@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    Don’t even bother with a SWAP partition. Create an empty file on your / partition so you can grow/shrink it as needed.

    did if=/dev/zero of=/SWAP bs=1024m count=4
    mkswap /SWAP
    swapon /SWAP