Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2901

Beginners Questions • Re: [Hardware] Swappiness on servers

$
0
0
My idea of setting swappiness to 0 is that as I have a lot of RAM, no swap is needed. It is correct?
No.
Is it also true that having swap being used on a server disk lowers its lifespan?
Not unless the system is thrashing, in which case the solution is installing more physical memory or reducing load. Even then...
The pathological obsession people seem to have with reducing disk writes truly confounds me. If you're so keen to not use it, why have disk at all? If lifetime writes on a particular SSD is really a problem, get a better SSD.
A good NVMe SSD costs in the range of 250-350 dollars per drive. It is not cheap. Additionally the IO speed of a disk read/write pales in comparison to RAM IO read/write.

It is expected that people will try to minimize the disk writes and TRIM commands as far as possible.

Statistics: Posted by DebianFox — 2024-11-25 05:31



Viewing all articles
Browse latest Browse all 2901

Trending Articles