From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 00E7B23BD01 for ; Fri, 10 Oct 2025 18:53:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760122416; cv=none; b=njSVj4FzUAK1XKrlLf6ACaYy3lSLXH1SCQynYlI5Iu6wf4QxKKzTreFYIFCVa+cKm4oaBIxNqGFHySX85t7J9GR+gr6kY3c9JLvFmug3tMnGQ2kaamMaGE8nmC+GxfVitMUcE6eaKpqTzzsizVkvI2DcgRpPobWCnxVo8V+ubcg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760122416; c=relaxed/simple; bh=1c9xpjEAyzSHEbTovQnqawRw2MZSunBs7oFhwkGp6IY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oOGVuW3aQkhrFRXEqTaKbTIcKQlwEB4nU/h5EB8xWj3MfirSBI+IMNIUPyH7tOmUm9GL12S1TGN0K1bupLGlfWWPqVjCegQiCrrriFTcPRmDAKfS4nz/4RdVQr/QRWVgRHtyYEqBu8m4IJDBCDLOdllYQTML7HKtSQ39a0n6pgo= 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=Jxu7m7px; arc=none smtp.client-ip=209.85.222.174 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="Jxu7m7px" Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-85ed0a1b35dso211089185a.2 for ; Fri, 10 Oct 2025 11:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1760122414; x=1760727214; 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=Yvk9+2uf5Jy110s1EexKEDqunnlIUh4JFbrOdrqUH1o=; b=Jxu7m7pxX092VH2TA771cV3O8FsblFnpBDecm18yIpEq1XXcTSka8IRHIyoqsAx4xA 2YCQqeZHg6o1Xz1yrLAtB67OSSjQm/I5y82gdsmvEHwi4d0rbzHN0F0R/y/9y1dGqzrB NUOLF0b6/7v+RPBmji1GIusX81AznCOzZnyNT7ynqfz55bnyW3IwelBZ0JylBDlnNgqA NFXCfol0tnhTlCDK1FzI8Qa2IIfqb2FKVuqLnf9JJIHYxnkPi86cvZxQ0Rrm44IFIITJ 8Y4GSDmBLU3P8mByqFWOeqcKWVrBP1tKSHafZxG2piZKNEkOcf6OXFrszcESGSHWhCJI 2ueQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760122414; x=1760727214; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Yvk9+2uf5Jy110s1EexKEDqunnlIUh4JFbrOdrqUH1o=; b=krhVXVdcYmzNFvhPiytqZbY64kl7fuHvU5tVbHUogdNa7j2qnzZBVNS/PQDr5mJm4F wNx9dg+zQmi2/VK7OC+nUEc8AD4vzxay1WQwKQvw0YJpNWHZvSjF8/Orew0YalaIYjzY m1T4a2JflfJOA+/cPsINlQE54HqdHHxzCTIaqsMxcz0Ux/eZGJN+6AHYcB85YmZiPHQK aPqyR2xwbFKnYVigbRBgERaUnEF8DvrponzKYPLHb7TWafNFgGxfYabcxYa4QF676SwL z8i/zQ2/fWGvhhi4MHFr4/vlqYyPVcU/BbabNQikW6yDUwtriAkr5r9nYDWN6pxVyky4 1L6A== X-Forwarded-Encrypted: i=1; AJvYcCU/SZqzhCxc11AuKI0YGcnMcE3TdLs4M2hIBvShEby47OSG9IzdMsNP2Y/5dj+AJpEhli2m8to0nPE=@vger.kernel.org X-Gm-Message-State: AOJu0Yx+tNdhhvkCVgw82ra1Kjs1DBB4zrfXz/WjCG6SCW1l6olodEI8 IZ4FPOorlE0XnW+horLhRwwCWcSPHWm68dTiCxSJSfeQZwAfG2YoaTp0NgKJxYKqvBo= X-Gm-Gg: ASbGncu3lcCdKODF9h7bfssNIN84d7VLAlDb9N5jQeTl46JQGWnzrKMUI308WQIQ0yr 4BwT6VNxfy3PxqlLTIGBm9w+vP5NFCOLXL9dK2OPRiOTpzJhzn4TTI47F6iyqYoU2NUXTQsil4+ l/e6Fvlkbny895WJ0hZsxVYZWZuMNTtOVrREkSs67YfhUzr2UDFFObKOq/zCVN6pr4emFGKvfs1 HSY0IUAOe6xrf4RR51abDMh75BHxrDhRE9paGjXqLAZUoEHPnEFKcab4aJpnPeSxAnnNm206KzJ ldnpY0IPicAfbuDa9cCFbnr/Lb2edpk5GzlbWxlrdhhAYvKiDkSW9I2gOlkFZwk/obI6NScD7+o NgTRt6HnWJapkPt6HHXeVm168ZXitMhcESQzqpKeZmGOaVWmCVWc6UKn69q/8AP71OvSDuUDBLE 52qmdcUzHSjRaiZMt1PlzgUNH1yhGZ0+qcO9Q= X-Google-Smtp-Source: AGHT+IFw83apThwu3Bu6mVESZP4W93bdkR0fqUQg02zKaUQROrWdoFXC8bV8nX7m1XqGZM4W610+FA== X-Received: by 2002:a05:620a:179f:b0:849:21b9:478f with SMTP id af79cd13be357-883534624f4mr1914757385a.35.1760122413577; Fri, 10 Oct 2025 11:53:33 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F (pool-96-255-20-138.washdc.ftas.verizon.net. [96.255.20.138]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8849f9ae48fsm459499385a.24.2025.10.10.11.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Oct 2025 11:53:32 -0700 (PDT) Date: Fri, 10 Oct 2025 14:53:30 -0400 From: Gregory Price To: David Hildenbrand Cc: Michal Hocko , linux-mm@kvack.org, corbet@lwn.net, muchun.song@linux.dev, osalvador@suse.de, akpm@linux-foundation.org, hannes@cmpxchg.org, laoar.shao@gmail.com, brauner@kernel.org, mclapinski@google.com, joel.granados@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Mel Gorman , Alexandru Moise <00moses.alexander00@gmail.com>, Mike Kravetz , David Rientjes Subject: Re: [PATCH] Revert "mm, hugetlb: remove hugepages_treat_as_movable sysctl" Message-ID: References: <271f9af4-695c-4aa5-9249-2d21ad3db76e@redhat.com> <83e33641-8c42-4341-8e6e-5c75d00f93b9@redhat.com> <1d7476e6-5c6d-4175-b28d-3622222ea8e6@redhat.com> Precedence: bulk X-Mailing-List: linux-doc@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: <1d7476e6-5c6d-4175-b28d-3622222ea8e6@redhat.com> On Fri, Oct 10, 2025 at 09:40:29AM +0200, David Hildenbrand wrote: > > > > Seems like this is pretty stable tbh. Obviously if you hack off the > > node0 hugepages migration fails - but I feel like you're signing up for > > that when you turn the bit on. > > Right, just needs to be documented thoroughly IMHO. > happy to make any doc adjustments. Better to move any notes every here though: https://lore.kernel.org/linux-mm/20251009161515.422292-1-gourry@gourry.net/T/#u --- Maybe worth finding some time at plumbers to discuss block-level allocation twiddly bits. Still not quite clear how this would pan out. Maybe it's as simple as adding GFP flags to blocks and having something like: echo NO_KERNEL > sys/bus/node/devices/node0/memory1234/eligibility echo PINNABLE > sys/bus/node/devices/node0/memory1234/eligibility folio_to_block(folio)->eligible(gfp) The issue here is obviously that it's clearly racey, in that a bit twiddle can change the eligibility mid-allocation. I'll think a bit more about this. ~Gregory