Re: [PATCH v4 4/4] mm: ratelimit min_free_kbytes adjustment messages
From: Baolin Wang
Date: Mon Mar 09 2026 - 23:03:06 EST
On 3/9/26 7:07 PM, 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.
Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
---
LGTM.
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>