[libvirt] [PATCH v2] qemu: Set reasonable RSS limit on domain startup

Eric Blake eblake at redhat.com
Fri Aug 3 16:14:24 UTC 2012


On 08/03/2012 02:56 AM, Michal Privoznik wrote:
> If there's a memory leak in qemu or qemu is exploited the host's
> system will sooner or later start trashing instead of killing

s/trashing/thrashing/

> the bad process. This however has impact on performance and other
> guests as well. Therefore we should set a reasonable RSS limit
> even when user hasn't set any. It's better to be secure by default.
> ---
> 
> diff to v1:
> -the expression for reasonable limit adapted to VRAM + XBZRLE
>  (libvirt doesn't override migrate_cache_size yet, so the default
>   64MB should fit, and it did indeed during my testing)

Note that we aren't using XBZRLE migration yet (I am looking at what it
would take to implement that, though), but this should still be reasonable.

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120803/23678b40/attachment-0001.sig>


More information about the libvir-list mailing list