On Tue, Feb 24, 2026 at 01:22:36PM +0100, Michal Hocko wrote: > One thing that we could do to improve __GFP_RETRY_MAYFAIL resp. > __GFP_NORETRY is to use NOWAIT allocation semantic for page table > allocations as those could be achieved by scoped allocation context. > This could cause pre-mature failure after the whole bunch of memory has > already been allocated for the backing pages but considering that page > table allocations should be more and more rare over system runtime it > might be just a reasonable workaround. WDYT?
Why bother? __GFP_RETRY_MAYFAIL has pretty lose semantics. Trying too hard to allocate PTEs is not breaking the overall concept.
