From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 306DE3A7855 for ; Tue, 10 Mar 2026 03:02:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.119 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773111779; cv=none; b=LsMVnSROqPn9ibODbHjvjC+QLYiVLl+UwSIgo/XTCPBZP+d3A4AiFemuOtoLsRfkxYqMrpqPoCd3TdYJGYJs+srOd8ilFG+vWvWisUTHxXfQN9oNNac5bKNB3pFNSpSimpx+5mxa1lpvr4gyjdVxxpNb80B1NwITEfoF6eFS34k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773111779; c=relaxed/simple; bh=ADhJs8vQPIJQCrT2UaWlhf9t9nlvbhVHbhVWpN1gQ1c=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hU8hVOnFfyctmwZsvzvy2E/3fDb0y5ETYkBvp+dTV1oI5OgoRYIZniiMJ1cQGCiJUbnxqRtzcGDugsWON4HaIpYhh10JzFjL7ImJpfmU6amb4UgQnOMCqQtlCfLmqtDzFngR28Z/PxqeELNbHEoKkcNYMnzF+cNl/DXGQ+9CeO8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=VRlRqtGq; arc=none smtp.client-ip=115.124.30.119 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="VRlRqtGq" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1773111768; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=qHBHkkng8rV2mhedXap1Lsv/z2EqeSLBm/xnyxfphXw=; b=VRlRqtGqzhhDekNejaE6Q/3QxLxBtWuzA5yRVrrPibuq1H6QxpHhcrnX77iSvRdQmVHpbw/BsqW/DiE8zV0sBd+Ke/C5wYVuQlAC4KP65NQpgsxCditUniXnhHgVzO+6YM3/5qSQGWGU0eevT5cDVOydkNykxPXH8Z4DBmRRD/0= Received: from 30.74.144.119(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0X-eGuu-_1773111765 cluster:ay36) by smtp.aliyun-inc.com; Tue, 10 Mar 2026 11:02:46 +0800 Message-ID: Date: Tue, 10 Mar 2026 11:02:45 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 4/4] mm: ratelimit min_free_kbytes adjustment messages To: Breno Leitao , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , Zi Yan , "Liam R. Howlett" , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Vlastimil Babka , Suren Baghdasaryan , Michal Hocko , Brendan Jackman , Johannes Weiner , Mike Rapoport Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, usamaarif642@gmail.com, kas@kernel.org, kernel-team@meta.com References: <20260309-thp_logs-v4-0-926b9840083e@debian.org> <20260309-thp_logs-v4-4-926b9840083e@debian.org> From: Baolin Wang In-Reply-To: <20260309-thp_logs-v4-4-926b9840083e@debian.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 > --- LGTM. Reviewed-by: Baolin Wang