
13 May
2019
13 May
'19
8:14 a.m.
Daniel P. Berrangé <berrange@redhat.com> [2019-05-13, 11:17AM +0100]:
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...
Yes, please, thank you. All in favour!