From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (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 0035F33C182 for ; Tue, 16 Jun 2026 13:47:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781617634; cv=none; b=mTYfR6ByCAwOgWkIk4H/jLT/LYg3IPWBQKGRt59BuohcpRoH1OPzcX2Z7zxkAdg9ZTT9I5vnKJnxBr03xH9wgo9SrDhc4mTBoXlQyAIFRhdfC66bGZDi2BB3qqCuwlZRBQaYIOscIYwaKQHgivKL8fPfG0TBXXHjsEcBvNPBZ4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781617634; c=relaxed/simple; bh=ON5XRz8lHOpOJ8xktgKhULmQK7Hl4dNNx6xl4pP0U7U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h4kUzNGniSJY5etw2pBfp3zxmOSdYnPUuLCMrrnzcmij9c1l+w0T5XD28z5DteZPNZ9SBdTgKM84n8GkGPzfku4nXei9bGMpWiFD/R1seGpQU3rGPLAEGrVuefC4QWieipGmzHPrNPTdqgFuzISErmltHp62hbE5EZieFJGD/uA= 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=LCkTe2IB; arc=none smtp.client-ip=209.85.160.179 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="LCkTe2IB" Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-517b1f2c668so50913781cf.2 for ; Tue, 16 Jun 2026 06:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1781617632; x=1782222432; 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=EvNzegJ7+heyexsBUGAQ0jwoVUjk7efTCiVuRf1VOy0=; b=LCkTe2IBkv5qsv/rAmGrOexkI/ZfXf5q6AV8BqKMOOZ+sHg78vk69hSs+G8iRTCY5v cBhcigAqcSSFuNUN6XPPFKundVuwRQFhop+/+/fUKrv3GG/rLB7va1VT2qASgn0EHkQH fIHaDBVjEL5IiGHZs1jE6KCzQxaM+SSybNLhFBQj9Uwl3v/L2i+i6lch40EIrpPmaVFQ c55fGSwNOIdqM4IPGd8JBp7QTkM8ULCKMIFgubmM5K7RtnuAWHk0qvXXik2UHAk/NcMx SuBqjt0rDc3YlRFJu1MXZNOhDqTDk5tk3S0IND+cMCL74Nhq+x5UQ3pvsyhBUR8CUkD8 WwBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781617632; x=1782222432; 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=EvNzegJ7+heyexsBUGAQ0jwoVUjk7efTCiVuRf1VOy0=; b=HgHU828urQVMStiIiqj762B9V1X9VHOtHoC139DbO64/Valf45UVoT3uSUsSZbg9jW teZqb+o3VE5QNjqmhSOHZIvnp+c6MFedXcWFLs66j2tlUoUQ03c+E7/aC4jALtY+tYLT yWOxD17MOn7Z/TLj2aKeO92NW3Q2aGamSWhHm/6DYMcwQA4f3TBDiCnFFHe47tLR2LO0 isQKmKpt2ynhjKW6CxRBj9b75umcGF2kC5IcOpyF65Yd3JdGA6Cw4eF6gV55kXj+fqyP CDwjPYMzVrFHL9MrV+M7BAClB8UXG5fRYfFRzJnhAtF2bPHbJEj25Qmf3IYcLznj3yem HxGA== X-Forwarded-Encrypted: i=1; AFNElJ+dLvpPcwNmkYnDuOKaIkqsWabfY5fp0jOVZGXDHBUXcC3XhrpgcAya3ILOVTSYnoZjv4G0loAT7ISjHYJwNBJ1J4o=@vger.kernel.org X-Gm-Message-State: AOJu0YyUl3BxVLkcRiWtNXIv32kdO31JjUaFOLoCrOvOXJaO4ULNoMhE Q7JfXu2UjF6FKVFd0+OrAAr+HVhCCl4T6u4YuGADWwfLG++NhsZB7goG7EXeuz2K5DU= X-Gm-Gg: Acq92OH58P0STTxR8L/GdHq21NzgpPK6ishBoBJmNu2qWzmoEDH0I5LKM48jwJxf5nz 7/fcobjsHC3usUzls/AmGRIOZ2kn0FKvb74AGSlbz6mgVxuck1RPbLXPOJsj0mXOBIJAW+AO7UH 5vlm+5Lhm2H8rFMiHw5zjiraMWl/NgoE/P0ubRKKzwotcnI2LpXbmUxzlkHJfss2kHgEO4Zf6Hv dxXqr2qPyOtws7kEvWwVptiS6RFw1W3E8RUFDvQYXw76kkvQ+VJBqe9SqQt9y/IPmDMuXPgOON3 SF0kc+1icTOYqSyN7W4YfofLVdUSfcWCvUlgJ6bO71Jl+Gz8N2vuw9drHODCTdZ88LrNSB5Z6Rh JCMkkYg93Ri2dHJ66pkq4enp3FIDZjHJCYi7/3FDyqqYLbMIlSb9OcRU/FaWV0NO0dHuVtPUSQL 4VvlHH6zS+NATCfLpljR0X X-Received: by 2002:a05:622a:a6d4:b0:517:7e3a:5ee1 with SMTP id d75a77b69052e-519916d65f2mr43449041cf.1.1781617631680; Tue, 16 Jun 2026 06:47:11 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F ([2620:10d:c091:500::3:437e]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-517fb84188asm150577021cf.29.2026.06.16.06.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2026 06:47:10 -0700 (PDT) Date: Tue, 16 Jun 2026 09:47:07 -0400 From: Gregory Price To: Brendan Jackman Cc: "Vlastimil Babka (SUSE)" , "David Hildenbrand (Arm)" , Balbir Singh , 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, 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, Matthew Wilcox Subject: Re: [Lsf-pc] [LSF/MM/BPF TOPIC][RFC PATCH v4 00/27] Private Memory Nodes (w/ Compressed RAM) Message-ID: References: <9f1815b0-896b-44ab-9e6d-9316d8f11033@kernel.org> 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 Tue, Jun 16, 2026 at 11:57:42AM +0000, Brendan Jackman wrote: > On Mon Jun 15, 2026 at 2:38 PM UTC, Vlastimil Babka (SUSE) wrote: > > On 6/12/26 17:29, Gregory Price wrote: > >> On Wed, Jun 10, 2026 at 04:12:52PM -0400, Gregory Price wrote: > >>> On Wed, Jun 10, 2026 at 08:59:59PM +0200, David Hildenbrand (Arm) wrote: > >>> > > > > > > I think the memalloc approach is dangerous due to unexpected nesting. There > > might be nested page allocations in page allocation itself (due to some > > debugging option). But also interrupts do not change what "current" points > > to. Suddenly those could start requesting folios and/or private nodes and be > > surprised, I'm afraid. > > Minor side-note: couldn't we just define it such that the allocator > ignores the context when not in_task() (and warn if you try to enter the > context while not currently in_task())? > > (Don't think this would change the conclusion very much, e.g. doesn't > help with the nesting issues. Mostly curious in case I'm missing a > detail here). > I looked at this - only solves one issue and oh boy is that an obtuse confusing condition to understand. We still suffer from recursion in reclaim. ~Gregory