From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) (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 A9B9821A447 for ; Mon, 25 May 2026 01:50:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779673813; cv=none; b=IIBH+UWkQuHEYi3cxRJm8hL5vM/aczywwsHPXh2YgJKakufJOr8mDJi2GjovSSbtCbehd5DC3Q6fkiNkifc7yWZ8rmjfD1pWtdqTyq3Y/Ql/YORUzNWMgFzfyC1OZh2MzpNgyxaSMmtUa/FYuquHgX//0xQHyljcPvlxzP5pGQM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779673813; c=relaxed/simple; bh=WItw+Ef2NecqHrR2z8eKezrYOTV9vVAproVcjHSpa8s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HVBeKoF7GslG+VkndsYRJWKF13ZUWHdW8Ijw2Mifrb1ewy52Fs8RDijboqKUA2OJRTX+30btryKTaIrw4oMax/kmn1oqJ9r+vtUTrBh28Bfp2jrx1hKS/C63eAvtK0XTkLfAQQL8P4P19YRnR8zAEJ9fzwncu7kmjU+Xli+vL74= 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=S8rhOAxu; arc=none smtp.client-ip=209.85.160.176 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="S8rhOAxu" Received: by mail-qt1-f176.google.com with SMTP id d75a77b69052e-5165195c8b0so101828211cf.0 for ; Sun, 24 May 2026 18:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1779673810; x=1780278610; 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=HaMGwylp+AdTKGZZEDuVzWMLLa2CVFaFeY7VVe9bsb0=; b=S8rhOAxuUxvInQfgUiQ2mvxTf0rogF94vTf/QgcmXGhoA24Ha5G/S4dCF3bHuL7NV4 ee8v7mwuRY6OD9yULJejS3qA3b5l4fsk+zLXBqLX00Y2mj97CyWZ6aAny/UfcpBAXi8W yAZI+dLYcP1cj2Tk+ngTgcEIy6neYCfIuki/MDttJsUTZ7szC0yJxi5lobNjvKq6ToPU XiiFKwQ+OhpcYufR+H26LzTP9W1+hGT2ym2ujh9qG5fUcS0so/h6KolHx4acaW5aUGsT HRqdBQm6HksZCzFY8aFkXofaHMnu+NOCzRys/xWdNmc3qkf8Ze1BBmq8OOwwxi/Cs/nR Iwng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779673810; x=1780278610; 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=HaMGwylp+AdTKGZZEDuVzWMLLa2CVFaFeY7VVe9bsb0=; b=NwHcI7Oak3zTMk50Oi+Um5erFun/l6XTZ1F7OanWVjW923KKsEf4N00C5gxg+gpnm9 fFxQlCz5B9/O8ehYxZq6HPGl55kCyTw1FhpeLX4qfn2rMApr8saOJ/vEBHQPWC3My/LZ WScIy+EENIS2QpVInunRo2zCumZkR2krk1Trx9Ip1qhV7yYwkyQvC7+rOyBz+8w+CkHz mb+aHng3TTb2w/kwXNl0e5teakd+59fSJA22rk3SDCdVAIGMxUNUw3BlTFKJM5oHLj47 2tGv3RI2gPHvBVWSibRXgxl+WFN6gwiGm8vf6Bc2PIz01KRTGrR5vEcxsYufcnw7jPas WFWQ== X-Forwarded-Encrypted: i=1; AFNElJ8vTpJkM5gF1NMX87F2fcTRSoYOPg0ZYfGG75WRco01/ZoIfYei7g/lgAhqxDXX4HyasB55F0IGZmm7AN3yOFO/Oyk=@vger.kernel.org X-Gm-Message-State: AOJu0YzZrUKGdBbZmRYDaBP7jpi1DOq1zS+J82NVNqEDflvmP1mo1JBB HqQ7eg6Q65MfJsJpCJiw9LwT8JfD1bkDtPTnqdEygcUVYPE3lNfsH6NSTjGguKLLp6E= X-Gm-Gg: Acq92OHRR3Rg8eN5GiuVbWa3ySSkigFYw6xd5PlcxliFKyvt6ApEUEDL8PTK293JDil IqwJLpGFEReH1vjtuyVgJc0k/GqLdCvyN5869enkWEYLd3He1jC1GsDxpprHbn9V2MSAdmJ6sz7 taDWk7KxG8BraxOk3JOXdK/ZspJ4nbCAsxrxndxR0qicF7Gkja0UHaykD2/geYZ1N9PexDh+we0 eloQLsjEaD8pZX+XqbGUaGa2PjJXeTkJm/Gwk4Li6QWHdXLVl4DE/XilZZKLiiDjgAAha1Mvx61 VaLPrBR1bLfDabHGFKSKpIICY0MSdBnjZibmQ76SbV0xUkyl+3+Brwot61y5OkdJCC+woXca1Wd xLRCBHd9Zp678unTlQUawMcfgafNlxkIkGL7LcCchcQZgj00tCu4NH75N0KA/vb4N4NuMCPzY2k pvWUxGBF6ZaVDg05zzUTQjO47tmoFY1E31aVQEZSJD0ae69yFtjuya3RCH+rnm80ogoP3ynlYcV LM2Sa8gJQoQ X-Received: by 2002:a05:622a:480a:b0:516:e7d0:73ab with SMTP id d75a77b69052e-516e7d079c5mr94541371cf.40.1779673810351; Sun, 24 May 2026 18:50:10 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F (pool-100-36-248-188.washdc.fios.verizon.net. [100.36.248.188]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-516d8cb9f11sm88159681cf.23.2026.05.24.18.50.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2026 18:50:09 -0700 (PDT) Date: Sun, 24 May 2026 21:50:06 -0400 From: Gregory Price To: Balbir Singh Cc: lsf-pc@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, damon@lists.linux.dev, kernel-team@meta.com, gregkh@linuxfoundation.org, rafael@kernel.org, dakr@kernel.org, dave@stgolabs.net, jonathan.cameron@huawei.com, dave.jiang@intel.com, alison.schofield@intel.com, vishal.l.verma@intel.com, ira.weiny@intel.com, dan.j.williams@intel.com, longman@redhat.com, akpm@linux-foundation.org, david@kernel.org, lorenzo.stoakes@oracle.com, Liam.Howlett@oracle.com, vbabka@suse.cz, rppt@kernel.org, surenb@google.com, mhocko@suse.com, osalvador@suse.de, ziy@nvidia.com, matthew.brost@intel.com, joshua.hahnjy@gmail.com, rakie.kim@sk.com, byungchul@sk.com, ying.huang@linux.alibaba.com, apopple@nvidia.com, axelrasmussen@google.com, yuanchu@google.com, weixugc@google.com, yury.norov@gmail.com, linux@rasmusvillemoes.dk, mhiramat@kernel.org, mathieu.desnoyers@efficios.com, tj@kernel.org, hannes@cmpxchg.org, mkoutny@suse.com, jackmanb@google.com, sj@kernel.org, baolin.wang@linux.alibaba.com, npache@redhat.com, ryan.roberts@arm.com, dev.jain@arm.com, baohua@kernel.org, lance.yang@linux.dev, muchun.song@linux.dev, xu.xin16@zte.com.cn, chengming.zhou@linux.dev, jannh@google.com, linmiaohe@huawei.com, nao.horiguchi@gmail.com, pfalcato@suse.de, rientjes@google.com, shakeel.butt@linux.dev, riel@surriel.com, harry.yoo@oracle.com, cl@gentwo.org, roman.gushchin@linux.dev, chrisl@kernel.org, kasong@tencent.com, shikemeng@huaweicloud.com, nphamcs@gmail.com, bhe@redhat.com, zhengqi.arch@bytedance.com, terry.bowman@amd.com Subject: Re: [LSF/MM/BPF TOPIC][RFC PATCH v4 00/27] Private Memory Nodes (w/ Compressed RAM) Message-ID: References: <20260222084842.1824063-1-gourry@gourry.net> Precedence: bulk X-Mailing-List: linux-trace-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 Thu, May 21, 2026 at 04:23:28PM +1000, Balbir Singh wrote: > On Sun, Feb 22, 2026 at 03:48:15AM -0500, Gregory Price wrote: > > Topic type: MM > > > > Presenter: Gregory Price > > > > This series introduces N_MEMORY_PRIVATE, a NUMA node state for memory > > managed by the buddy allocator but excluded from normal allocations. > > > > I present it with an end-to-end Compressed RAM service (mm/cram.c) > > that would otherwise not be possible (or would be considerably more > > difficult, be device-specific, and add to the ZONE_DEVICE boondoggle). > > > > Do we have updates/notes from the meeting? > I have been on leave since LSF, but I do have some notes posted: https://lore.kernel.org/linux-mm/af9i7dkNvGGxPHzu@gourry-fedora-PF4VCD3F/ https://lore.kernel.org/linux-mm/agYJcRgOHho8upVv@gourry-fedora-PF4VCD3F/ I will be trying to post an updated set stripped down without the GFP flag as a first pass w/o RFC tags and no UAPI implications so that device folks can play with this upstream. I'm debating on whether to include OPS_MEMPOLICY in the initial version if only because it's not intuitive how it interacts with pagecache. That needs more time to bake. > > > > page = alloc_pages_node(nid, __GFP_PRIVATE, 0); > > Do we want to provide kernel level control over allocation of private > pages, I assumed that only user space applications? I would assume > node affinity would be the way to do so, unless we have multiple > alloc_pages_node() is the kernel interface > > > > /* Ok but I want to do something useful with it */ > > static const struct node_private_ops ops = { > > .migrate_to = my_migrate_to, > > .folio_migrate = my_folio_migrate, > > .flags = NP_OPS_MIGRATION | NP_OPS_MEMPOLICY, > > }; > > node_private_set_ops(nid, &ops); > > > > Could you explain this further? Why does OPS_MIGRATION > and OPS_MEMPOLICY needs to be set explictly? > Both of these have been removed from the upcoming version, but in this RFC version i was testing OPS_MIGRATION as an explicit flag that meant "migrate.c can touch the folios" while OPS_MEMPOLICY meant "mempolicy.c can touch the folios". As it turns out, OPS_MIGRATION is not a useful filter, as it doesn't actually filter anything (anything using OPS_MIGRATION would also need its own filter flag, so better to just drop it and do per-server opt-ins). ~Gregory