Re: [PATCH v5 4/4] mm: ratelimit min_free_kbytes adjustment messages

Zi Yan
2026-03-10T18:41:37Z

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@kernel.org>
> Acked-by: David Hildenbrand (Arm) <david@kernel.org>
> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
> Signed-off-by: Breno Leitao <leitao@debian.org>
> ---
> mm/khugepaged.c | 4 ++--
> mm/page_alloc.c | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
Makes sense.

Acked-by: Zi Yan <ziy@nvidia.com

Best Regards,
Yan, Zi