Re: [PATCH] mm,oom: Bring OOM notifier callbacks to outside of OOM killer.

From: Paul E. McKenney
Date: Wed Jun 27 2018 - 10:34:32 EST


On Wed, Jun 27, 2018 at 09:22:07AM +0200, Michal Hocko wrote:
> On Tue 26-06-18 10:03:45, Paul E. McKenney wrote:
> [...]
> > 3. Something else?
>
> How hard it would be to use a different API than oom notifiers? E.g. a
> shrinker which just kicks all the pending callbacks if the reclaim
> priority reaches low values (e.g. 0)?

Beats me. What is a shrinker? ;-)

More seriously, could you please point me at an exemplary shrinker
use case so I can see what is involved?

Thanx, Paul