Re: [PATCH v5 4/4] mm: ratelimit min_free_kbytes adjustment messages
From: Zi Yan
Date: Tue Mar 10 2026 - 14:49:54 EST
On 10 Mar 2026, at 13:57, Breno Leitao wrote:
> The "raising min_free_kbytes" pr_info message in
> set_recommended_min_free_kbytes() and the "min_free_kbytes is not
> updated to" pr_warn in calculate_min_free_kbytes() can spam the
> kernel log when called repeatedly.
>
> Switch the pr_info in set_recommended_min_free_kbytes() and the
> pr_warn in calculate_min_free_kbytes() to their _ratelimited variants
> to prevent the log spam for this message.
>
> Reviewed-by: Lorenzo Stoakes (Oracle) <ljs@xxxxxxxxxx>
> Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
> Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
> ---
> mm/khugepaged.c | 4 ++--
> mm/page_alloc.c | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
Makes sense.
Acked-by: Zi Yan <ziy@xxxxxxxxxx
Best Regards,
Yan, Zi