Hacker News new | ask | show | jobs
by gymbeaux 833 days ago
I can see the benefit to not having swap in a server scenario, but to offer a counterpoint- it seems like IT likes to under allocate servers by something like 25%, so if you have a server with 256GB of RAM, by design it should never use more than 192GB. That’s a lot of RAM going to waste for the off-chance usage jumps above 75-80%.

I think I would rather have the server’s SSD be an Optane drive (or some other high-endurance flash memory) with a swap partition, and use some other means of monitoring and being alerted to high memory usage.

1 comments

Except that there's nothing you can do if it starts swapping suddenly and you basically lose a server once it atarts swapping due to how slow it is
I’m not sure what this scenario is but it sounds like you’d be F’d with or without swap