On Mon 02-09-24 17:01:12, Yafang Shao wrote: > > I really do not see why GFP_NOFAIL should be any special in this > > specific case. > > I believe there's no way to stop it from looping, even if you > implement a sophisticated user space OOM killer. ;) User space OOM killer should be helping to replenish a free memory and we have some heuristics to help NOFAIL users out with some portion of memory reserves already IIRC. So we do already give them some special treatment in the page allocator path. Not so much in the reclaim path. -- Michal Hocko SUSE Labs