• FlexibleToast@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    2 days ago

    Creating your swap as 2x your RAM is outdated advice. Now it’s essentially changed to be 2x until 4GB of RAM, then 1x until 8GB, and anything over 8GB just use 4GB of swap because you probably have enough RAM. Or, even some modern systems like Fedora will swap to zRAM. Which is just a highly compressed portion of RAM.

    • wax@feddit.nu
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      I think that recommendation came partly due to hibernation, where the ram is dumped to disk before powering off. Today, I’d probably use a swapfile instead.

      • Smee@poeng.link
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago

        Swap files are just a file version of the swap partition. I need a 24GB swap file to hibernate.