From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8CD25326927 for ; Sat, 28 Feb 2026 18:58:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772305110; cv=none; b=OxCBGDBUfGEmJnxWoJJT9T8NIh+P6C2s26MJ0sgYnh1eSFYXfWrvBdoUHCpf4QNPqRSsJGbyX/MQQCE7fqcgqxqogZqL5T25C4JSBo/OMRG0Sm1kAG7jlxgbyV2SuYSOQ6TkhrNT5qFT70LRZResitxhbYD6Npm63rgtUj82KEk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772305110; c=relaxed/simple; bh=PVJ8xGUP0hvJcBF/VoFPVYjM25XHcE1Qvl6tuLGWU14=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=M/0XvQtlnLf9O80G5P1GMYk6S19HnakSHJuom4dM0x051xPDyK7ioA/wSOZQHdQljqsIkIcJ9lGRLcL+TjQBDAUr/5/gQF1PEEvjXy7z9K6WvDqk+ZkvOtmhe7es7TYTTHMAlQL1tC8TpfZOneGZnVNfsd+1GWD2/DJvnCVVh3A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=oruM4hTc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="oruM4hTc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BED08C116D0; Sat, 28 Feb 2026 18:58:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1772305110; bh=PVJ8xGUP0hvJcBF/VoFPVYjM25XHcE1Qvl6tuLGWU14=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oruM4hTcXifAYrBU7Zr+gWGR2kYzQ3H3DYeRPfO+p3EJvtjhhfiO7nkywQxMgB/bE Ec9ZjWbZK9B5mBOxRvtrij4608SEswjLURkzt2FxIcClBU+xVQo1cIyvznzDKssxan zT6Or8B/F+NEvJf7alPOEpZ6QxpiZpOWwGsA8Uwo= Date: Sat, 28 Feb 2026 10:58:29 -0800 From: Andrew Morton To: Leno Hou Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Axel Rasmussen , Yuanchu Xie , Wei Xu , Barry Song <21cnbao@gmail.com>, Jialing Wang , Yafang Shao , Yu Zhao Subject: Re: [PATCH] mm/mglru: fix cgroup OOM during MGLRU state switching Message-Id: <20260228105829.984f06aeaf701487036ac992@linux-foundation.org> In-Reply-To: <20260228161008.707-1-lenohou@gmail.com> References: <20260228161008.707-1-lenohou@gmail.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Sun, 1 Mar 2026 00:10:08 +0800 Leno Hou wrote: > When the Multi-Gen LRU (MGLRU) state is toggled dynamically, a race > condition exists between the state switching and the memory reclaim > path. This can lead to unexpected cgroup OOM kills, even when plenty of > reclaimable memory is available. > > ... > Nice description, thanks. I'll queue this for testing while we await comments. > > Reproduction script: > --- Please avoid using the ^---$ separator in changelogs - it means "end of changelog text"! > Signed-off-by: Leno Hou > > --- Ditto.