T
T
timkin12020-08-26 12:10:56
System administration
timkin1, 2020-08-26 12:10:56

Should I set up swap on a VPS?

There is an opinion on the net that the swap file negatively affects solid state drives. Is this really the case and is it worth setting up swap on a VPS with an SSD?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artem @Jump, 2020-08-26
Tag

There is an opinion on the net that the swap file negatively affects solid state drives.
Quite right, there are such opinions on the net.
swap file negatively affects solid state drives
Complete nonsense, from illiterate idiots.
Is this really the case and is it worth setting up swap on a VPS with an SSD?
Yes, it is, yes it is worth doing a swap on an SSD.
Separately, I want to say about VPS - when you work with VPS, you should understand that SSD is nothing more than a marketing ploy. You are not working with a disk, but with virtual disk space. And on what it is placed physically you generally purple.

V
Vladimir Korotenko, 2020-08-26
@firedragon

The network is also advised to jump from the roof. Advice from vendors is about such a swap, do from 1/2 to 2.5 the size of RAM. Utilities to help you with occupied memory. Disabling it is not worth it at all, it disrupts the system. As a last resort, take it out to a file. Further, modern ssds are very reliable, so it's better to optimize your applications for io, however, there are applications that make a lot of records. And the most important advice is to leave about 20% of the empty space, in Enterprise solutions these cells are hidden but in the wings and in consumers it is not so developed.

J
justhostRU, 2020-08-26
@justhostRU

Load dependent.
At a low load, it just doesn't make sense.
And with a large one, it is desirable to add RAM, if you still need adequate performance.
It is not forbidden to create a swap file on our VPS.
moreover, it can save you when you run out of RAM.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question