• neidu3@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    ·
    5 months ago

    When I started dabbling with FreeBSD over 25 years ago the rule of thumb was to have swap space at least twice the size of your RAM. Then as time went in and I was no longer limited by 32MB, I made a habit of having the same swap space as RAM.

    Nowadays it’s kind of machine dependent for me. On my daily driver I have a swap partition of roughly half the amount of RAM I have, and the few times when that’s not enough I can swapon some swap files on my root FS instead.

    At work I stopped using a swap partition, as the 256GB of RAM I install as default won’t run out any time soon. When oradb is having a stroke and starts eating up more than it should I add some swap files just to be safe.

    • Blaze@piefed.zipOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 months ago

      On my daily driver I have a swap partition of roughly half the amount of RAM I have

      That’s probably what I should do. I have 16GB of RAM, 2GB of swap, the swap is constantly at full use.

      Or maybe I should just add 16 GB of RAM 😅

      • neidu3@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 months ago

        I have 32GB of RAM which practically never runs out. I’m using a 16GB swap partition, but could’ve gotten away with much less. I think on the next install I’ll just go with the same approach as I have at work servers: No swap partitions, swapon some files on the fly instead if I really need to.