From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A9BB2BEC45 for ; Tue, 7 Apr 2026 16:56:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775580997; cv=none; b=c5v1d6F23HtH6PH1mzCf//OgffSI9Gmyd6noNJkzVwrDcTKAD/dysMMT5/ofWV16ieV/J+ilci/nJCnHj4pjKDUAgMtn0wT4KCrM+G4Bnrzh1rmnqJylPMEM53mhEFzqk2YlF/l6l87/QgWBms8LrB0UHwYuz/fVDZDlS5veU0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775580997; c=relaxed/simple; bh=m4BA0r0vR0TWiGRCvzFGAUHxARXfu4Wud/rIjLCribE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Sx825dqex271TEbrxmtclBOz3h5X4SPLW1/ji00n9a9AYlHMwjlZT0Ne5u7CO4i7XU1chHA9QAs0gdUhhvNyapQM9t3CEzDMewGUx8Csv0zdxUcmOi3GgUoA/Ufy0TqUFRQLhlu9trDfpzKjjA35IF430OhFQ1yMV8gCBrj9quM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b=CX8rJbY+; arc=none smtp.client-ip=209.85.219.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gourry.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b="CX8rJbY+" Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-899a9f445cbso66625876d6.0 for ; Tue, 07 Apr 2026 09:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1775580995; x=1776185795; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5H/LTMuHhHjt9i0cJQj2AuHwgZLtfBSzlCy+PjveH1U=; b=CX8rJbY+GW8NMMqmfnv4/CJ155O2uRApVBjYJ7TVkYltcwDUsy0Iq78tqBpIdzaHsU TOTWKre6c/5lMTmiSCl8aiFYehWPWX5mM5+4xZ3JsTktwGkgy6/b2ipXufSNjVmLaUNm 0Yv6Oa/IGuFjWdF0A6eYSd/nzrumOeWj8hYSGZ9T8/nuULFTCGV9mac0ps+4Bq1pSWLJ WyRdP62dZt8BKmH1vnHaDhmVqDtXZf36EktTnOM9Pqx+wA8DkPxmnO4G+OqRa/sCn5QG gZK4f3WsBnNiuGMe2odb3TxiZ/faboS/T1Kx1aIJq1yFri5djzZm++g8123B1SZaf6BB WtXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775580995; x=1776185795; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5H/LTMuHhHjt9i0cJQj2AuHwgZLtfBSzlCy+PjveH1U=; b=htxKmPQCCjSJVe/jCH4u4JGiFHT6bPQjB0mh2B0gNi9IS47N2Itzt/qMFcyEyl9TI9 AtUJMQHVVqcD64fd98gE0658Q+aTXHNiKZsCFAfcwqcYwep3tIdZ089kjFs8fIFVD6Zh C5rkp5sbF1hIw10g7lDlS5SR5M1J3R9fzT2sixFvi75p13eNNi7Xml8RqVWDFFn3+wj1 4UjvCSkOY95hpa4OB+FT19tAX8gNyxEmfc3xJYlIT5B394penR/xtXIfXNEXfme+MIAV +qeEdyOQm4WUj36Iykd11FF9yyXbRdzkLJCJ2DXBCqojPMFFw+72BiLZ0mlHuDndi1C9 7EGA== X-Forwarded-Encrypted: i=1; AJvYcCWe81+y5/2LGPKC5SvehdOOm50L3GBpYLY965IcbZoijGNV6KzZzpJmYEg4zkPw3BaHL3gtd0DcMfQFemM=@vger.kernel.org X-Gm-Message-State: AOJu0YxJ8IQLy9w7MbRQdD8SMszzTO9yRII4Gimm1oB3IyVw61wpBRef XWbf+S42i4GjFt+yVk1ze7lbEyNQe5BXmZzmAjvTyRAf8V3pptkhiBzm7dq6tm4RlrY= X-Gm-Gg: AeBDievYWZDedheMLQ5pznu5haxCs2Po6xbwKuEvJc3q4flxNA6kdNIJRqm7Isko+cg VG0AjNIT4pfV+LCXpIXykzpelpIAM3iu694pJ1ZzDfTiot0xTbSGr39+6m5bT9pznogWh6oKLan vRx02EYZPvJOA4Q5qC/GfSsduqqtmjAvsA4wbmHm9F++lPM61YdHedtI+oRlMDt0jk4jTbkfYVV ruo8gJEzAQpe/N+RCaFh4ek3Vdw3INs8DK77f02FoLU9ILy1BDJOteAJtJIuB8YVk8FQsyP1UBa THKvxTJk4ENjBql5wx6l22TAZXC6AWHHEobrjTUD5ojW02LUSPLzv48ISGni8pNro01HYGgVhy9 1XDOJnSy0WwWYuJenMB8dyPqBRS869zcXN6Wnt4iMUJy56kdrKXtUJOimPQFkI9XZrsq9pVyieg ncQvq9ZfjsuiHdR23t7UG/NunouIqEWCLz4+TvYoAkWfIGVqN00AKG3y4xgrhhYIjowEOV2cmBP b7zJJI6HRLx7nvf0FBwxyw= X-Received: by 2002:a05:6214:4883:b0:89c:518b:9dbd with SMTP id 6a1803df08f44-8a704da7fe5mr324190956d6.46.1775580995082; Tue, 07 Apr 2026 09:56:35 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F (pool-71-191-243-150.washdc.fios.verizon.net. [71.191.243.150]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8a593bf4b0fsm154393106d6.15.2026.04.07.09.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Apr 2026 09:56:34 -0700 (PDT) Date: Tue, 7 Apr 2026 12:56:31 -0400 From: Gregory Price To: Lorenzo Stoakes Cc: Johannes Weiner , Shakeel Butt , lsf-pc@lists.linux-foundation.org, Andrew Morton , David Hildenbrand , Michal Hocko , Qi Zheng , Chen Ridong , Emil Tsalapatis , Alexei Starovoitov , Axel Rasmussen , Yuanchu Xie , Wei Xu , Kairui Song , Matthew Wilcox , Nhat Pham , Barry Song <21cnbao@gmail.com>, David Stevens , Vernon Yang , David Rientjes , Kalesh Singh , wangzicheng , "T . J . Mercier" , Baolin Wang , Suren Baghdasaryan , Meta kernel team , bpf@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [LSF/MM/BPF TOPIC] Towards Unified and Extensible Memory Reclaim (reclaim_ext) Message-ID: References: <20260325210637.3704220-1-shakeel.butt@linux.dev> <42e26dbb-0180-4408-b8a8-be0cafb75ad9@lucifer.local> <248a126c-43e7-4320-b4bb-282e0b6da9c4@lucifer.local> 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: On Tue, Apr 07, 2026 at 12:36:36PM +0100, Lorenzo Stoakes wrote: > > > > And the current code structure makes it difficult to whittle down the > > differences methodically. > > > > IMO modularization is the best path forward. Giving people the ability > > to experiment with a la carte combinations of features would make it > > much easier to actually production test and prove individual ideas. > ... > > In a possibly, fantasy ideal world scenario *puffs on dream pipe*, it'd be > amazing to somehow isolate the reclaim code in such a way that we could > instrument it for testing purposes. > > E.g. if it could be invoked from userland, or UML, or _something_ and then > faked out to have a certain configuration of X NUMA nodes and Y GB of RAM > with Z processes competing with total observability of what's happening in > the algorithm that could allow for really robust controllable testing and > regression tests, as well as possibly some form of fuzzing for broken > reclaim scenarios. > > *Puts dream pipe down* *picks up the pipe* At risk of being shot - this kind of stubbing / functional testing is somewhat trivial work these days via with reasonably well designed interfaces. ( read: probably not with the current api n_n;; ). So to get there, we'd need to agree on the refactor work and interfaces that make it possible to model the scenarios outside a running kernel. If we do actually want to move the core to look like: - vmscan.c : core library - lru.c : standard lru - mglru.c : mglru Might as well consider the functional testing question as well as we decide what those interfaces look like anyway. *throws the pipe into the bikeshed* ~Gregory