From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-00364e01.pphosted.com (mx0a-00364e01.pphosted.com [148.163.135.74]) (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 10A812D1931 for ; Tue, 14 Apr 2026 20:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.135.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776198925; cv=none; b=BE1+yy7iXFbsQ83l9CzI4x3QAl7luyBqzZRis90PRdVwF8ci4VS5nt3QQwZeE065Dt3BuBbd+HcTbi4LfTBAtgLypYcufw21rB+y5b6/Ueg6VZLAIo06lyteHOIrneUqMrWi8BuQyGaQA5PqPyurfUwo/y147oLcUsOs3oVT1xc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776198925; c=relaxed/simple; bh=adOm0b5PLKbcD+/RPQsz466lOD3unkYQdbCXBZX4Fb0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=snEC1PQ6qP7AegzekGPREhe/v4eZcNEz0OZZeuO8z98nlXQzHbl0QK1RgHQJtBvylb+gav5s7L5MISbkJJcr920dpRa10qQBbzIr19BaYvTV+iNPuDBWltCs8rinAvrBmgXwEVwSdBhoFBdXATWh40qkwbVQcZaXHtHesDiokIg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=columbia.edu; spf=pass smtp.mailfrom=columbia.edu; dkim=pass (2048-bit key) header.d=columbia.edu header.i=@columbia.edu header.b=lRFBKYLM; arc=none smtp.client-ip=148.163.135.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=columbia.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=columbia.edu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=columbia.edu header.i=@columbia.edu header.b="lRFBKYLM" Received: from pps.filterd (m0167071.ppops.net [127.0.0.1]) by mx0a-00364e01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63EKR6Xo2604763 for ; Tue, 14 Apr 2026 16:35:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=columbia.edu; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pps01; bh=nLeT RRGmHX5BMpVtP+w58//ItyrkZ9dOA8UVe6ev+tk=; b=lRFBKYLMi6M71+q2z04O PrgzuYcimOMwgpRqxfzegjL42voJYBu14rD6eghtLednwYVfY1arPN4h3/UUYcWg fpyO5gUQMknmKcePDV1qnAgnCGWC1S5BibH7IfdGD176gCMdNha0TKOaqDUMVz50 6wNzTXwqXBaDcuOnVSQ/Uewn/tKDOMEq0g4RFr+0og+ZRoB3rwUx0zgVtXbSViRW JKoq3v5fZzippF3MJoFOvOIH0bdxJ1Ber868W0eEEnugnBkaxL5dZgOYHlU+G+z+ cY521DDO7UJSxS4hBRY6MxiT6sxRO/2Mb5uQsJLhIxVSXJ+IrvOBMiGFsKLDa0vk 4Q== Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-00364e01.pphosted.com (PPS) with ESMTPS id 4dh85dr4rt-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 14 Apr 2026 16:35:22 -0400 (EDT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-8d3a8df9a52so1222668985a.1 for ; Tue, 14 Apr 2026 13:35:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776198922; x=1776803722; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nLeTRRGmHX5BMpVtP+w58//ItyrkZ9dOA8UVe6ev+tk=; b=p9LNZ8JhiliK4beSoaiWrBRCIgZChZUCSKhQEzT8VC0o2xXwkjt4/BCt3Fbjuewu9v oMI2PGUooGz0bxNJQwC931/k+lv7SRQLJGqkUtyCk95XtsH3b9pUVzJ14b/NyvyplRoH HP6eDHEsoInuROgelyedWPxCTfHO42WcNLhBGbLiI9zp+BmzLfIvEX4UyoYpreR/s5m5 uP6stVEr/lIj+BffFU4XAKbNGbPVbAZKRtKSc6i7OycJfgFcxX8i+YOrYmExMa1N9IH1 5g02bJIy8ipqAExHI8eRox3jXOS6y1CJ2HvF+Z8lFz01yfQiMqxm/eDL30DLQKYCmSW6 WJFw== X-Forwarded-Encrypted: i=1; AFNElJ8S2vAoujD0NpzPAUysUcgKbsWbi3VAft9obrryq18Gf1ekms/zUdUTAPmdg4o6Y6hlc9KKlmB820hIjr4=@vger.kernel.org X-Gm-Message-State: AOJu0Ywle0cF7nWYI09dPwqchEnM0pytH2FZerr5Li8BccPGN6vUL53m BXCr8de9fEJqBBdtd38Ju+/Kct46fU5CJx3E8AHfSEjA6EOtcizocA4jfkKZ/77tAfKn8PtgaTV j86ek2d2QblOZsqW5R69H1BWT+ZrF9AjbfCGwEWAvCGdGR3HS87oNfNrePF3hFA== X-Gm-Gg: AeBDieukPmdgx6hizenRki2xzI/uOwg7f3U7/T9ToyAHQhsoziLiJTjIwawIyfSVj/Q vS44cfJxll0WXk9sUMkWELjedjUo57ihFlTSfYdWwqz0P3eiyoRfo5HqiO/9zO3soSJE0jQ9Wg8 yKaErPKpetS+vSeIWqzjKzkFJZfD9SsPLFtzMH4RN9tI+h9w9P6ZBy93BS8WS7DRTAuStgDtAYn pK+7FKRmQnON0SdBCXPfw7jxMtNKQbeVPJo9jNPXN5VeWkMMkOlfWtuGt1OcuSbQMQt/S4eki4B 2n8Sd9DKfTfkOTcrvcgk6L8gQuSZKj7vs0cPMs4GJmFnhgneGxO3G76ppmYhld6Fbf2TD5gby77 XQxAqearSNbk7B2au6kEXgM0SF+bvWRT/3J7tdRli+fFURdmlj99iPpWw9L3oc1B6kjxo2GU= X-Received: by 2002:a05:620a:468e:b0:8d8:2a0:e17a with SMTP id af79cd13be357-8ddcfcb2d46mr2770769385a.50.1776198921808; Tue, 14 Apr 2026 13:35:21 -0700 (PDT) X-Received: by 2002:a05:620a:468e:b0:8d8:2a0:e17a with SMTP id af79cd13be357-8ddcfcb2d46mr2770761585a.50.1776198921305; Tue, 14 Apr 2026 13:35:21 -0700 (PDT) Received: from [192.168.1.62] (dyn-160-39-33-242.dyn.columbia.edu. [160.39.33.242]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8ddb915b46bsm1196176385a.33.2026.04.14.13.35.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Apr 2026 13:35:20 -0700 (PDT) Message-ID: <7dc54b9c-ba2b-4044-8cb7-b95ce89f1e09@columbia.edu> Date: Tue, 14 Apr 2026 16:35:19 -0400 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: [LSF/MM/BPF TOPIC] Towards Unified and Extensible Memory Reclaim (reclaim_ext) To: John Hubbard , Matthew Wilcox , Axel Rasmussen Cc: Gregory Price , "Lorenzo Stoakes (Oracle)" , Michal Hocko , Andrew Morton , Shakeel Butt , lsf-pc@lists.linux-foundation.org, Johannes Weiner , David Hildenbrand , Qi Zheng , Chen Ridong , Emil Tsalapatis , Alexei Starovoitov , Yuanchu Xie , Wei Xu , Kairui Song , 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 References: <20260325210637.3704220-1-shakeel.butt@linux.dev> <20260325190547.abb7309fb63473b57b7a90a0@linux-foundation.org> <6f40c513-af3e-45b6-9000-c61494a23bd3@columbia.edu> <70fd648a-efa1-465a-8e6a-51411dfd50b8@nvidia.com> Content-Language: en-US From: Tal Zussman In-Reply-To: <70fd648a-efa1-465a-8e6a-51411dfd50b8@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDE0MDE5MiBTYWx0ZWRfXxJUnM8XFcRp4 FBmzdtAGAzVC++4r8CvgYbdbwwPl9AaWNOtE+TZ1b2VTAUr/3Udz4ynbwz845vMLAmS4ciWLWNU /1yFfWd41sy6Dfz/i/15HCLczi9Y3eivIx7z9nbQbZkUZvtIm1Jpgak7t+wG0aoDDgQ3NPGGA/A NctPov+D9ZhhDTYB3dvHAf59Stm0i4yFnmnEmsUgLb8zHOv+k4sld+RcZBo34Za5SIkSXIXvfGk Rinrm+OusFelRj2+EQcQhrkXidOybhhxTNZqFc4ZyHUxgCL0xy1h4TuNAsr9AVGE27Eag/fOwAG yB2Tr78v1zp5pLoew4ULuTBHBhyGatnjwnQizMtXs3FszA/g+YFgj+UXEy0WXnB7Pj3gSlfGkXH yoiRFFl6SicxLJ9HEVlr/opQlfVfNQMbmgSddZZ3oPc1G3gxiaEDhCHb1jIOzzRILhmbJF6sNQT kwrYJq3RsSDBz30U5zA== X-Proofpoint-ORIG-GUID: QuAoQ8MQD0pmqOM6gAs8ivWO66zuy-au X-Authority-Analysis: v=2.4 cv=eJYjSnp1 c=1 sm=1 tr=0 ts=69dea50b cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=GaPK54s0Se3oFqK5NkZy0g==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=x7bEGLp0ZPQA:10 a=VkNPw1HP01LnGYTKEx00:22 a=Da8U98TiO7q1upZEImrf:22 a=79PYxaXUQd1wl-QFWJnA:22 a=N54-gffFAAAA:8 a=tHa68p0SAAAA:8 a=zHSXLxmVE_XwShEkr-4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=ufIsyHvWW7FwcMbVRpPq:22 X-Proofpoint-GUID: QuAoQ8MQD0pmqOM6gAs8ivWO66zuy-au X-Proofpoint-Virus-Version: vendor=nai engine=6800 definitions=11759 signatures=596818 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 lowpriorityscore=10 phishscore=0 bulkscore=10 malwarescore=0 adultscore=0 impostorscore=10 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604140192 On 4/8/26 8:21 PM, John Hubbard wrote: > On 3/27/26 12:12 PM, Tal Zussman wrote: >> On 3/26/26 11:43 PM, Matthew Wilcox wrote: >>> On Thu, Mar 26, 2026 at 01:47:43PM -0700, Axel Rasmussen wrote: >>>> On Thu, Mar 26, 2026 at 1:30 PM Gregory Price wrote: > ... >> Yeah, unfortunately it's not so straightforward. As a simple illustrative >> example, consider a file-search workload, where you search through a large >> number of files over and over again (e.g., a poor kernel developer trying to >> understand how the page cache works). This follows an MRU, rather than LRU, >> pattern, and readahead doesn't help much, leading the active/inactive and >> MGLRU policies to have similar performance (~40s runtime in a specific >> benchmark we ran). In comparison, using cache_ext (our eBPF-based caching >> framework), we can run an MRU policy and it goes down to 20s. > > That's dramatic! > > ... >> It's been well-known in the academic realm for a while that there isn't >> really a "one-size-fits-all" policy that works *best* for all workloads. > > I think that that point has been less clear, outside of academia. In fact, > MGRLU (to the extent that we believed we would eventually get rid of LRU, > in favor of MGLRU) doubled down on the idea of one size fits all. So this > is interesting. > >> Yes, you can make a general policy that works *well*, but if you really care >> about a workload's performance and want to squeeze out the last 10-20% (or >> more) of performance, you need to be able to (1) experiment and (2) take >> advantage of application-level insights. Being able to extend reclaim (in >> our case with eBPF) enables that. >> >> We wrote a paper about this that was published a few months ago [1]. Happy >> to answer any questions and continue the discussion! >> >> [1] https://dl.acm.org/doi/pdf/10.1145/3731569.3764820 >> > > Excellent work, I was delighted to find a well-balanced description of > both older and more recent history of the Linux page cache there. > > It's helpful to read this, even if we go with a non-eBPF approach. > That's great to hear, thank you! > > thanks, > -- > John Hubbard >