[libvirt] (Dropping) OOM Handling in libvirt

Pavel Hrdina phrdina at redhat.com
Mon May 13 10:39:55 UTC 2019


On Mon, May 13, 2019 at 11:17:45AM +0100, Daniel P. Berrangé wrote:
> This is a long mail about ENOMEM (OOM) handling in libvirt. The executive
> summary is that it is not worth the maint cost because:
> 
>   - this code will almost never run on Linux hosts
>   
>   - if it does run it will likely have bad behaviour silently dropping
>     data or crashing the process
> 
>   - apps using libvirt often do so via a non-C language that aborts/exits
>     the app on OOM regardless, or use other C libraries that abort
> 
>   - we can build a system that is more reliable when OOM happens by
>     not catching OOM, instead simply letting apps exit, restart and
>     carry on where they left off
> 
> The long answer follows...

[...]

+1 as I was planning to slowly convince others as well.

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190513/9f2bd271/attachment-0001.sig>


More information about the libvir-list mailing list