How Much Swap Should I Use With 64 GB of RAM?

0
1
Asked By MellowPine42 On

I'm setting up a Gentoo system with 12 hardware threads and 64 GB of memory. With that much RAM and a relatively modest thread count, is swap still useful or necessary? If it is recommended, roughly how much should I allocate, and are options like zram or zswap worth considering?

2 Answers

Answered By QuietHarbor19 On

The exact amount is debatable, and it depends on whether you need hibernation. Without hibernation, a modest swap file or partition is generally enough for a system with 64 GB of RAM. Around 4–8 GB is a reasonable starting point, assuming you aren’t regularly running memory-heavy workloads.

Answered By CopperLynx7 On

You probably won’t need swap during normal use, but there’s little downside to setting aside a few gigabytes. Swap can prevent an occasional memory spike or runaway process from immediately crashing the system. The machine may become very slow while swapping, but staying online gives you a chance to diagnose and fix the problem.

MellowPine42 -

That makes sense. I’d rather have the system slow down temporarily than crash outright.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.