News for hackers. Stuff that matters.
Re:Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4... by paulddraper on Saturday January 28, 2017 @10:53PM (#13511933)
Swap makes a lot of sense for a consumer device, where I'm opening a big spreadsheet, then putting that in background to edit this video.

It makes less sense for server workloads, where you usually don't have huge chunks of inactive memory.

I always run with no swap in AWS, especially with the newer EBS-only families.

Re:Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4... by dotancohen on Sunday January 29, 2017 @02:08AM (#13512744)
EBS is a problem because in reality you would be swapping to a network volume. But on a standard VPS server, a bit of swap can really save you some problems. Swap was invented at a time when *NIX was strictly used in a multi-user environment, not far removed from today's webservers but very different from today's consumer devices. It still serves a purpose in that role.
Re:Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4... by eikenberry on Sunday January 29, 2017 @04:54AM (#13513388)
> [...] a bit of swap can really save you some problems.

And cause a bunch more. Have you ever had to debug a race that is only triggered when a process hits swap. Not fun at all.

Re:Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4... by sscarduzio on Sunday January 29, 2017 @06:43AM (#13513694)
Yes I did, and the swappy machine started responding just a tad too slowly to other nodes' pings, engaging into a loop of join/parting the cluster, causing replication to kick in all the time and a whole "highly available" critical cluster of 9 nodes was unable to handle traffic (too busy replicating) causing millions in losses. So yeah, don't use swap in servers.

Ironically, if the node had crashed for OoM, the cluster would have survived just fine.