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.
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…
All I know is that I had 16GB RAM and 4GB swap and I used to get crashes sometimes.
Set that fucker to 32GB out of spite, now no crashes. No idea why that helped. But I guess I do have like 15 tabs open on the regular (web dev)
15 tabs? Those are rookie numbers. Unless you mean “before 8:07 Monday morning”.
browsers offload inactive tabs from memory anyway, unless you’re actively switching among 15+ tabs, they won’t be using as much ram
what if you never restart the browser though?
I close my browser before hibernating; more lifetime for my SSD that way and it is faster, too.
fr. I’m over here with like 30+ tabs open. I should definitely trim these…
Historically swap needed to be a minimum of installed ram.
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.
I use 1.5-2x the swap on new installations these days. I want hibernate to always work.
I use the same, but I think to be super conservative It should be 1.5x + VRAM
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…
Minor league shit.