• tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 days ago

    I don’t recall that, but IIRC it does need to be a minimum of installed RAM if you want to be able to hibernate, since then you write out the contents of your memory to swap. That makes having at least as much swap as RAM a good rule of thumb for many systems.

    IIRC kernel crash dumps also make use of swap in a similar way, though I assume that in most sane scenarios, it’s not going to actually require as much swap as physical memory, because you won’t have all of your physical memory allocated to the kernel.

    On non-exotic Linux systems, I always make sure to have more swap than physical RAM.

    • j3tt@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      I use 1.5-2x the swap on new installations these days. I want hibernate to always work.

    • rumschlumpel@feddit.org
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      I don’t recall that, but IIRC it does need to be a minimum of installed RAM if you want to be able to hibernate, since then you write out the contents of your memory to swap.

      IF RAM used + swap used don’t exceed total swap space. Yeah, sometimes I run into that. Solved by killing webbrowsers, which suggests that most of the swap space is filled with unused webpages…