From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) (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 18AF829B8D3 for ; Tue, 31 Mar 2026 08:08:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774944525; cv=none; b=dqFHH5v9NlP98C+hiWPYMkOHQXjkXtg9TF4Sl5swLDscBY9sVkGKRNYSHXhLg6+pBhHuftIRHyBC9nLEWMKsXBcq/kDHESxTMgOLSCNL5cRP5Ik1OnZDfQL4RQwiml+Ocxxr4UYPwpd4MTLAVLmIkDf5ygPFVAtA36h0dobC2hk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774944525; c=relaxed/simple; bh=SBOjVg70WDzw8oBFhuJfSBdC70AJwHR67rWDgPAfitc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZXNeccgQXLNgzFwCvKyUZDAlQ42GZYTdi8RlJSgVFAf+6cjVR5ew5COZVt4ExaM3XrtsYXxy9MThxaApbr8ovCQfXVLNFRmP6QTsLdQwCkqPi2267erSizQuMFZ4S3kFWLTEOnaNru9+njsf2ao202KedrzGY0A/0FRU1RVrTrw= 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=qZlsrNIi; arc=none smtp.client-ip=115.124.30.100 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="qZlsrNIi" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1774944516; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=EV8xJIqn8NAPK38T98iwmuljhSW4bjva9mw3ateav4A=; b=qZlsrNIiUWCGDsbamO89trxfeJBpZZ24Lba6vM3RsmN/KHO6binD8ZTX7QCZlRye4+Uo0lWUmuKoHPmz01/e3TLvQ6QIQtI9UymfDRv9MAZ/bcNrdDfTtZbM/Psq7cRYm9UexvcLlSKfYWLgbeI/NN7lJ2VPcMGxFpfucHsK2rU= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R811e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037009110;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=25;SR=0;TI=SMTPD_---0X03n6My_1774944514; Received: from 30.74.144.129(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0X03n6My_1774944514 cluster:ay36) by smtp.aliyun-inc.com; Tue, 31 Mar 2026 16:08:35 +0800 Message-ID: <5a9333b4-c2d1-4db0-9c31-b9d611eb32b4@linux.alibaba.com> Date: Tue, 31 Mar 2026 16:08:33 +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 v2 06/12] mm/mglru: use a smaller batch for reclaim To: kasong@tencent.com, linux-mm@kvack.org Cc: Andrew Morton , Axel Rasmussen , Yuanchu Xie , Wei Xu , Johannes Weiner , David Hildenbrand , Michal Hocko , Qi Zheng , Shakeel Butt , Lorenzo Stoakes , Barry Song , David Stevens , Chen Ridong , Leno Hou , Yafang Shao , Yu Zhao , Zicheng Wang , Kalesh Singh , Suren Baghdasaryan , Chris Li , Vernon Yang , linux-kernel@vger.kernel.org, Qi Zheng References: <20260329-mglru-reclaim-v2-0-b53a3678513c@tencent.com> <20260329-mglru-reclaim-v2-6-b53a3678513c@tencent.com> From: Baolin Wang In-Reply-To: <20260329-mglru-reclaim-v2-6-b53a3678513c@tencent.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/29/26 3:52 AM, Kairui Song via B4 Relay wrote: > From: Kairui Song > > With a fixed number to reclaim calculated at the beginning, making each > following step smaller should reduce the lock contention and avoid > over-aggressive reclaim of folios, as it will abort earlier when the > number of folios to be reclaimed is reached. > > Reviewed-by: Axel Rasmussen > Reviewed-by: Chen Ridong > Signed-off-by: Kairui Song > --- LGTM. Reviewed-by: Baolin Wang