W
W
Warfare Noise2014-10-16 23:45:16
linux
Warfare Noise, 2014-10-16 23:45:16

Is swap needed in Linux VM?

Greetings!
Is swap needed as a partition/file inside a KVM virtual machine? I meet different opinions, I would like to know the pros and cons.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
G
Glueon, 2014-10-17
@powerthrash

As a reinsurance against the fall of the virtual machine - why not? Don't make it big and make vm.swappiness = 20. Then swap will be used only as a last resort, and its small size will give the minimum overhead to support it.

P
Puma Thailand, 2014-10-17
@opium

It is necessary of course, otherwise processes will die at the slightest lack of memory.
There can be no other opinion here, unfortunately.

K
Kirill 1, 2014-10-17
@SmileyK

If there are a lot of operatives, then there is no need. IMHO

N
Nazar Mokrinsky, 2014-10-17
@nazarpc

What's the point? Extra overhead?
Change in the host, and even put zram.
Better yet, move to Docker - resources are much better balanced.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question