I guess this works if you run few well known apps which manages memory well (yeh right). Maybe recycle/restart in regular intervals. Some programs have 4-8GB limits and will crash by themselves. Or you have a watcher service and recycle/restart after some threshold. And probably your distributed system can handle a few nodes going down. But without memory they will start to act weird. With swap they will usually work, but slower, and might eventually grind to an halt anyway, but it will make it easier to make a graceful shutdown/restart.
Re:Swap, swap, swap, and bad places to work
by VectorLock on Friday August 09, 2019 @10:09AM
(#20654439)
If your application starts running slower it should be killed. Redundancy means not having to worry about graceful anything.
Re:Swap, swap, swap, and bad places to work
by jmiserez on Friday August 09, 2019 @03:29PM
(#20657571)
You've stated this multiple times in this thread now.
Maybe consider that not everyone has the same use case as you: some people are running larger chunks of computation per node or even stateful applications. Even when they could be killed and are redundant, running a bit slower for a moment until they recover may be preferable to restarting the node (which also takes time).
Re:Swap, swap, swap, and bad places to work
by VectorLock on Friday August 09, 2019 @04:42PM
(#20658100)
There are lots of different application models the issue here is ton of rule-of-thumb regression from "redundancy is important" to "swap is okay after-all I guess."
Re:Swap, swap, swap, and bad places to work
by rambojazz on Friday August 09, 2019 @11:27AM
(#20655214)
> I’ve run clusters of several thousands machines installed with petabytes of ram
Do you mean a cluster of many computers that are collectively seen by the OS as a single machine with petabytes of ram? I can I do that too?
Re:Swap, swap, swap, and bad places to work
by georgebarnett on Saturday August 10, 2019 @03:52AM
(#20660783)
Sorry if it’s not clear.
The cluster had thousands of individual machines, each performing their own discrete tasks with aggregate ram across the cluster in the petabytes.
There was no swap on any of those machines.
Re:Swap, swap, swap, and bad places to work
by georgebarnett on Friday August 09, 2019 @04:11AM
(#20652233)
As an aside, the commentary at the bottom of the post is very insightful and a great example of how important it is to carefully choose what is being optimised for.
It works just fine however you need to keep a appropriate headroom to allow the kernel to do its thing with caches as indicated otherwise things get very weird very quickly.
Containers are very helpful in this regard for helping explicitly divide a machine up between processes without allowing any one to get out of hand.