public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Best strategy for use of swap?
@ 2010-01-24 10:21 Kenni Lund
  2010-01-24 10:42 ` Michael Tokarev
  0 siblings, 1 reply; 2+ messages in thread
From: Kenni Lund @ 2010-01-24 10:21 UTC (permalink / raw)
  To: kvm

Hi

I was wondering; Does it make any sense to use swap inside guests?
Wouldn't it give better performance to just skip swap entirely in the
guest, assign it more memory and then increase the swap size on the
host?

Writing to swap on the host side doesn't have the overhead of the
virtio layer, Qcow2 filesystem or an underlying host filesystem. And
at the same time, KSM can decrease the overall memory usage on the
host, which I suppose will lower the risk of the host using swap at
all.

Are there any disadvantages to this or would this be the prefered way
of using swap on a KVM-based system?

Thanks

Best Regards
Kenni Lund

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-24 10:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-24 10:21 Best strategy for use of swap? Kenni Lund
2010-01-24 10:42 ` Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox