Re:Linux Performance: Why You Should Almost Always Add Swap ...
by martin_andrino on Monday December 18, 2017 @09:02AM
(#15951619)
Swap isn’t needed at all in this age. It’s just there for people who can’t afford more RAM and therefore have to resort to hacky solutions like this.
[ Parent
| on HN ]
Re:Linux Performance: Why You Should Almost Always Add Swap ...
by geofft on Monday December 18, 2017 @09:13AM
(#15951684)
The article specifically lists reasons why you should enable swap when there is plenty of RAM. Can you elaborate on what part of the article's reasoning you disagree with?
Re:Linux Performance: Why You Should Almost Always Add Swap ...
by majewsky on Monday December 18, 2017 @09:20AM
(#15951739)
> It’s just there for people who can’t afford more RAM
So I should throw away my 5-year-old notebook that's still working perfectly fine just because the RAM is soldered in? Doesn't sound like efficient resource usage (both money and rare earths).
Re:Linux Performance: Why You Should Almost Always Add Swap ...
by tedeh on Monday December 18, 2017 @09:16AM
(#15951708)
Disk is still way cheaper than RAM, and I always add some swap space to my servers just to lessen the chance of getting ENOMEM errors if/when an unexpected or unusual workload would come along.
Re:Linux Performance: Why You Should Almost Always Add Swap ...
by bogomipz on Monday December 18, 2017 @09:52AM
(#15951960)
What an absurd statement.
Do you use a laptop? I do and I'm using swap space right now. I would like to buy a laptop with 32 or 64 Gigs of RAM but I can't as most(all?) laptop makers don't ship with a memory controller that permits more than 16 Gigs of RAM. And I can afford to buy more RAM.
Re:Linux Performance: Why You Should Almost Always Add Swap ...
by cztomsik on Monday December 18, 2017 @10:09AM
(#15952110)
What is the rule for setting swap size, or can I use just swap file just like on win/mac? (I heard it will disable hibernation then)
Re:Linux Performance: Why You Should Almost Always Add Swap ...
by warrenm on Monday December 18, 2017 @11:12AM
(#15952612)
The basic rule is `RAM + 2GB`
I usually peak at 34GB, unless I have reason (like needing/wanting to enable full hibernation) to use 66GB, 130GB, etc.
Re:Linux Performance: Why You Should Almost Always Add Swap ...
by cztomsik on Monday December 18, 2017 @12:52PM
(#15953584)
what if if you increase your RAM after installing the system?
Re:Linux Performance: Why You Should Almost Always Add Swap ...
by LinuxBender on Monday December 18, 2017 @03:11PM
(#15955013)
It's a circular argument that people get into because they have the incorrect kernel settings. Even if you have 4TB of ram, someone will say to add more memory on disk. It just means the system is not configured correctly. I have 30k servers and not a single one of them has swap.
Re:Linux Performance: Why You Should Almost Always Add Swap ...
by warrenm on Tuesday December 19, 2017 @09:32AM
(#15960422)
>I have 30k servers and not a single one of them has swap.
Physical? VM? Cloud?
I've never seen an environment with more than a couple carefully-tuned machines that didn't run swap on every last one
Re:Linux Performance: Why You Should Almost Always Add Swap ...
by LinuxBender on Tuesday December 19, 2017 @12:06PM
(#15961653)
30k physical servers. 512GB to 1TB ram each.
Re:Linux Performance: Why You Should Almost Always Add Swap ...
by warrenm on Tuesday December 19, 2017 @03:44PM
(#15964080)
>30k physical servers. 512GB to 1TB ram each.
You running an AWS data center?
Re:Linux Performance: Why You Should Almost Always Add Swap ...
by LinuxBender on Tuesday December 19, 2017 @05:29PM
(#15965036)
Not a public cloud. It does involve some private cloud visualization and containers.