On 04.02.20 19:52, Tyler Sanderson wrote: > > > On Tue, Feb 4, 2020 at 12:29 AM David Hildenbrand <david@xxxxxxxxxx > <mailto:david@xxxxxxxxxx>> wrote: > > On 03.02.20 21:32, Tyler Sanderson wrote: > > There were apparently good reasons for moving away from OOM notifier > > callback: > > https://lkml.org/lkml/2018/7/12/314 > > https://lkml.org/lkml/2018/8/2/322 > > > > In particular the OOM notifier is worse than the shrinker because: > > The issue is that DEFLATE_ON_OOM is under-specified. > > > > > 1. It is last-resort, which means the system has already gone through > > heroics to prevent OOM. Those heroic reclaim efforts are expensive > > and impact application performance. > > That's *exactly* what "deflate on OOM" suggests. > > > It seems there are some use cases where "deflate on OOM" is desired and > others where "deflate on pressure" is desired. > This suggests adding a new feature bit "DEFLATE_ON_PRESSURE" that > registers the shrinker, and reverting DEFLATE_ON_OOM to use the OOM > notifier callback. > > This lets users configure the balloon for their use case. You want the old behavior back, so why should we introduce a new one? Or am I missing something? (you did want us to revert to old handling, no?) I consider virtio-balloon to this very day a big hack. And I don't see it getting better with new config knobs. Having that said, the technologies that are candidates to replace it (free page reporting, taming the guest page cache, etc.) are still not ready - so we'll have to stick with it for now :( . > > I'm actually not sure how you would safely do memory overcommit without > DEFLATE_ON_OOM. So I think it unlocks a huge use case. Using better suited technologies that are not ready yet (well, some form of free page reporting is available under IBM z already but in a proprietary form) ;) Anyhow, I remember that DEFLATE_ON_OOM only makes it less likely to crash your guest, but not that you are safe to squeeze the last bit out of your guest VM. -- Thanks, David / dhildenb _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization