Re: [PATCH] mm/memory-failure: allow memory allocation from emergency reserves

From: Andrew Morton
Date: Tue Jun 25 2024 - 16:03:06 EST


On Tue, 25 Jun 2024 10:23:42 +0800 Rui Qi <qirui.001@xxxxxxxxxxxxx> wrote:

> we hope that memory errors can be successfully handled quickly, using
> __GFP_MEMALLOC can help us improve the success rate of processing
> under memory pressure, because to_kill struct is freed very quickly,
> so using __GFP_MEMALLOC will not exacerbate memory pressure for a long time,
> and more memory will be freed after killed task exiting, which will also
> reduce memory pressure.

Has this been observed to improve behavior in some situation? In
other words, please fully describe the observed runtime effects of this
change.