From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (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 23F71311C27 for ; Thu, 2 Apr 2026 03:18:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775099884; cv=none; b=DzZiElRy8Eot1HIa2S8diYrhgysJlu8LLTRON0tQNceFsJ5mKFWHDb+IslZa341lk87x20II2W1sHHT4CKKVUOL+kX+p4wio0IDlPtfwmEiOKEQuMK0MUP/kfxHDri73py+gvof1EObGF2USfmUqhyjMpQggiIiVl/G1JGH/ye4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775099884; c=relaxed/simple; bh=e8kn7MVcc1ZYD9OMq2hCXBTpxlkX+9OfPWcy9PlJbdo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=b4uUnwqBSI3BPFSo5iP0iiqtEaNS7Mwxsx7IHgtVgzE0mGL4zV3iwzPwIwsceF0LW9hM6qOTRGytk7VZdewO2xLp+emr6yYUGLwOS0T23kmtL322FrTBz9fHi82EnMPWCmeldiVde6Wo4QTYXKix93+Arz0ahAl4vdKhhg7vSrc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=E6hjWsug; arc=none smtp.client-ip=91.218.175.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="E6hjWsug" Date: Wed, 1 Apr 2026 20:17:54 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1775099881; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OedAVzv3pki3zjwyWzevU6Wd3yAWCzqLX9bfFQXON0s=; b=E6hjWsug1PI27grAK/Tc1n8qBEVC1in18IJCGr/YYmDjZ7Rtm1rWUOvue6H7fjyvTlk0ou ggFN+TL+xAtdP5ylKVLAqgAzpukJnyBAW338EAa3j9rohT36YJg3+ih0bKn+HgEY4cU55C 9sxH07TUWdTsmhoJpPFPsJLXZ+WW5Q0= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Shakeel Butt To: Kairui Song Cc: kasong@tencent.com, linux-mm@kvack.org, Andrew Morton , Axel Rasmussen , Yuanchu Xie , Wei Xu , Johannes Weiner , David Hildenbrand , Michal Hocko , Qi Zheng , 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 , Baolin Wang Subject: Re: [PATCH v2 12/12] mm/vmscan: unify writeback reclaim statistic and throttling Message-ID: References: <20260329-mglru-reclaim-v2-0-b53a3678513c@tencent.com> <20260329-mglru-reclaim-v2-12-b53a3678513c@tencent.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Thu, Apr 02, 2026 at 10:56:07AM +0800, Kairui Song wrote: > On Wed, Apr 01, 2026 at 07:39:03PM +0800, Shakeel Butt wrote: > > On Sun, Mar 29, 2026 at 03:52:38AM +0800, Kairui Song via B4 Relay wrote: > > > From: Kairui Song > > > [...] > > > > > > After this commit, congestion control is now effective and no more > > > > What do you mean by congestion control here? > > This particular case demostrated here is VMSCAN_THROTTLE_CONGESTED so > I described it as "congestion control", may I'll just say throttling to > avoid confusion, it's not limited to that. Yes use throttling or VMSCAN_THROTTLE_CONGESTED directly. Congestion control gives a networking vibe. > > > > > > spin on LRU or premature OOM. > > > > > > Stress test on other workloads also looking good. > > > > > > Suggested-by: Chen Ridong > > > Signed-off-by: Kairui Song > > > > There is still differences for global and kswapd reclaim in the shrink_node() > > like kswapd throttling and congestion state management and throttling. Any plan > > to unify them? > > Of course. Let fix it step by step, Fine with me but better to be clear about the destination. > this series is pretty long already. > I originally plan to put this patch in a later series, but as Ridong > pointed out leaving these counter updated but unused looks really > ugly. And this fix is clean and easily to understand I think.