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

Beginners Questions • [Hardware] Swappiness on servers

$
0
0
A good NVMe SSD costs in the range of 250-350 dollars per drive. It is not cheap.
A "good" SSD should have write endurance far in excess of expected hardware lifetime under any remotely normal workload. That includes swap, so long as the system has sufficient RAM to avoid thrashing.
I still have several first-generation 60GB SSDs, which despite being used as OS drives (with swap) for long enough to become completely obsolete still have ~80% write endurance remaining.
In fact I'm pretty sure I have never encountered anyone who has retired an SSD of any kind due to write endurance. They simply get upgraded for more capacity or better performance long before that becomes an issue.
Additionally the IO speed of a disk read/write pales in comparison to RAM IO read/write.
Which is why we enable swap even when it's not "needed", so very infrequently accessed pages can be swapped out to free memory for disk cache.
It is expected that people will try to minimize the disk writes and TRIM commands as far as possible.
If you're not going to use it, why buy it? What exactly is the point of read-write storage you're afraid to write to?
As for trim, avoiding trimming interferes with wear-levelling and degrades performance.

Statistics: Posted by steve_v — 2024-11-25 06:27 — Replies 16 — Views 414



Viewing all articles
Browse latest Browse all 3567

Trending Articles