On Tue 18-08-20 12:18:44, Peter Zijlstra wrote: > On Tue, Aug 18, 2020 at 12:05:16PM +0200, Michal Hocko wrote: > > > But then how can it run-away like Waiman suggested? > > > > As Chris mentioned in other reply. This functionality is quite new. > > > > > /me goes look... and finds MEMCG_MAX_HIGH_DELAY_JIFFIES. > > > > We can certainly tune a different backoff delays but I suspect this is > > not the problem here. > > Tuning? That thing needs throwing out, it's fundamentally buggered. Why > didn't anybody look at how the I/O drtying thing works first? > > What you need is a feeback loop against the rate of freeing pages, and > when you near the saturation point, the allocation rate should exactly > match the freeing rate. > > But this thing has nothing what so ever like that. Existing usecases seem to be doing fine with the existing implementation. If we find out that this is insufficient then we can work on that but I believe this is tangent to this email thread. There are no indications that the current implementation doesn't throttle enough. The proposal also aims at much richer interface to define the oom behavior. -- Michal Hocko SUSE Labs