From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (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 1FC4D4A2079 for ; Thu, 24 Sep 2026 15:37:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790264252; cv=none; b=eGhmb417N80zwu057MsrFUaF43ok4dBinDUf51jjag0zSFegxefZ0zcFmLHtR9Sc8vQoxLnrnTiuc5kY30KIK3LbysaKeBro9w6BvHAvJrFVUwGFsiS5cDZeOizpqxf72ckEnya90YRHziBuZQkOsm00QDNvswyU7gaqlSuKMiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790264252; c=relaxed/simple; bh=ilTbEA4nqL0Pb5hvq4SxgWQ+Afmf5ZrPd409M0+tb1Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nXQMgZL0wy60oOBIywq7QkkiBLiaSi7GN4Q2Z6ERtuKUCDPhtjxih64SQ094mQRf+c90PMqWE0MxCvisQGdquBYTtbSZv/Eup7E6O5AAePrR+z0sDmLg8oas0XRTv7l5hUxuL8AP9OoC6SRFmuYDsC51zQSGReJTB7QduIYlsiE= 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=si0dVDe+; arc=none smtp.client-ip=209.85.222.181 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="si0dVDe+" Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-93be6d3f424so77472585a.1 for ; Thu, 24 Sep 2026 08:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1790264250; x=1790869050; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=36sy3YZJoi15KsekhCcXhYJyq8gSbQAoHXpfkXanlH8=; b=si0dVDe+6BJhARSTer7TPdJrRFPywAO1dcNsCuvmc/3f1ptzz19E86zhkI7VbXlUAE sbgsIZ1EZ61uECB0g8KaUH2FXLs0zCubsh5H5g6irNo2D3CtJEoWn433/wCgGqfmps8D r4cY/l3wHLC63HO7Dlyn7RrVd6zngZlzk77ehUi+Kj32hO1TfPwF1c5QFg9vpH8UUSrD 75UtNVAnSGAqYlmrdxvw1u+83FCfcA16HOCYGqeFiHdZS/e+kNlNkNRScuPBn9zPYmra xutqf3b3omj6JAskiXVCfYfOUVj9n9Yz9Y2SlKulTcrUjRSd2+b7y5nhWtOeykzQuAnh c9CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790264250; x=1790869050; h=in-reply-to:content-disposition:content-type: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 :content-type; bh=36sy3YZJoi15KsekhCcXhYJyq8gSbQAoHXpfkXanlH8=; b=rQYXxuzu7HVmem2jYxiw9LT1Y76ZtXTudLzbDkDdYMpsq5+weDUz6As+G43Pli9X8/ n0IDJTyWr+zWEddvDobxNGP1P9Romsf/b+fmQs7KRTyQS4AYATV3U8lANteNE0UwUaVQ NRr6bhDB7M58jiW3GyK1lThP5FH0tcqHLUY9GAzI1eKEKwOLmj5rsy/tH7NI/wIuD1sW OUe9yvla6OrGmVqaL77mZsi/rBl61VNokPAtDvRPJlGqSxAZ5j/c/icv42/twEZ48AjI k+/l8Nd2joSq7MOHz4WJ2XlQ3slRahOMnh3ND1cgeXpwzXyU2ORtAzYlq1eBzQ88vVod kOSg== X-Forwarded-Encrypted: i=1; AKwUvBxa0gIFzfg2TS5BU8pT77SCW5hOKSRLb/62I08BGuYPh9jTPU3by8VnZXXqoxNWI/BxrDGUsI3Da/sIFvY=@vger.kernel.org X-Gm-Message-State: AFuF++nnHBH6R4PEVMeGJqCLAIW4h1OCS8Y2rtZUz0NaGw6u6v0qOqOM mQMR+VqRpsKrL9Q+q3xBBtBWSof1CzWSGRiJfIIteCExTdPoKhetvBAhuKtWDYZygE0= X-Gm-Gg: AYBFou2jF5yW7qJj+FiPTyjGzEMzJWobuxg2uk/vMhDK+dR1lG58tz8fAcOE5AMSO1n iMvZVcJ6dkQo/iQtfmMjRq5acmpgEQnk6V/f01OvrDd9pu6u5OgqUc91bvV7j9ykUaWlBSpXx4Q nCJq6aNl69Y0QYYDL4ACmWb3qmnj613ro9L+43tDGJVagS4I/72iVjLePjwboTGvw4eikOKjmUS Kjq5HFhv2nv+Atit0NxoXXqSHi9zfcet2eYGYwKg4jX3n1Wkqc6IM8M4hPhSD7h67IFHIZRRPQ3 XMsg7VfoPVrpTt0/27gj4P4jkjcTvjv2Z+f1tMxTR8l24Md0mp90IbXWpOKhis72gGTerjrA+9w H9hpdHNXwknRE+ouWNHSP/YIxgyYjgRl6fk5QPbtAUdDQq5hOKN8cD667/j3iZ1g7cRMRU3V86/ 1idP9tlCIBpSqV2hiSPtIBUYbPxfDv5TIr9urWh+zu9IsmccITiUaJaf3LXLa46ZGBb4k6aCla/ 3XMEnqxptW4GYtZoh5L/UyrTNrrEzAVy1KC9BOhOqzXW9tsldBl0BY= X-Received: by 2002:a05:620a:461e:b0:939:319f:d6e3 with SMTP id af79cd13be357-93c3661afe0mr289242585a.5.1790264249896; Thu, 24 Sep 2026 08:37:29 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F (pool-173-79-60-52.washdc.fios.verizon.net. [173.79.60.52]) by smtp.gmail.com with ESMTPSA id af79cd13be357-93c29e070dbsm392841285a.14.2026.09.24.08.37.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2026 08:37:29 -0700 (PDT) Date: Thu, 24 Sep 2026 11:37:26 -0400 From: Gregory Price To: "David Hildenbrand (Arm)" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, akpm@linux-foundation.org, ljs@kernel.org, liam@infradead.org, vbabka@kernel.org, rppt@kernel.org, surenb@google.com, mhocko@suse.com, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, kprateek.nayak@amd.com, ziy@nvidia.com, baolin.wang@linux.alibaba.com, nico.pache@linux.dev, ryan.roberts@arm.com, dev.jain@arm.com, baohua@kernel.org, lance.yang@linux.dev, usama.arif@linux.dev, kas@kernel.org, matthew.brost@intel.com, joshua.hahnjy@gmail.com, rakie.kim@sk.com, byungchul@sk.com, ying.huang@linux.alibaba.com, apopple@nvidia.com, jannh@google.com, pfalcato@suse.de, hannes@cmpxchg.org, shy828301@gmail.com, raghavendra.kt@amd.com, stable@vger.kernel.org Subject: Re: [PATCH v3 2/7] mm: allow shared folios to be promoted to a fast tier Message-ID: References: <20260922182928.2199090-1-gourry@gourry.net> <20260922182928.2199090-3-gourry@gourry.net> 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 Thu, Sep 24, 2026 at 05:32:22PM +0200, David Hildenbrand (Arm) wrote: > On 9/24/26 16:07, Gregory Price wrote: > > On Thu, Sep 24, 2026 at 01:59:15PM +0200, David Hildenbrand (Arm) wrote: > >> I wonder if a better name would just make the comment above (about memory > >> tiering) implicit and make more sense of the sysctl_numa_balancing_mode & > >> NUMA_BALANCING_MEMORY_TIERING) check. > >> > >> folio_promotable() > >> > >> folio_is_promotable() > >> > >> folio_numa_promotable() > >> > >> etc. > >> > >> because that seems to be what we really test with both things combined. > >> > > > > maybe: folio_numab_promotable() ? > > Works for me if "numab" means numa balancing :) > Sounds good, i'll let this rest for a bit before spinning a v4. I think the rest is pretty solid, but there's one other sashiko thing i need to think about whether it's real or not. ~Gregory