From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f66.google.com (mail-dl1-f66.google.com [74.125.82.66]) (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 D0148296BD2 for ; Thu, 12 Feb 2026 21:22:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770931380; cv=none; b=LtYTAzNvk75ghBCaHyPsmClKHaQQ2KGJI45uFYeayRoDSHRc4U25OgkJGArkHdzI3Tu57lx/0Vv+kC0EIdIbCquqPYERWL+2JCQKS7YL4pSs6eB5+ERuZn2BkKD2HTMJfL3IB03+UPhFvtO8ulFdDcQi8Us7pZqIia/tC6A43kE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770931380; c=relaxed/simple; bh=FSqjcqciAdEJMHmURv6Wj+XypwEuC0lRa+6WDMtVmn4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=T4/DYYMA5sLpd2KoWfzFnuc/lg/Vj6JZW1WUFMS6eMrlyQLC+i9/nYMWs8kbUAlCljCLG0EPMeZwg5EuC1LR2aX4yuXqpjePEPICmO03qs0GCJkYG9E1ECaLbh3kme0FcH31Dgmeyk3Uki+EsWuB3ctewEAO8JG/qWHEy6YOGyU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dKQolMtp; arc=none smtp.client-ip=74.125.82.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dKQolMtp" Received: by mail-dl1-f66.google.com with SMTP id a92af1059eb24-126ea4e9694so729808c88.1 for ; Thu, 12 Feb 2026 13:22:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770931379; x=1771536179; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=5jt/ta2e9LCcgP20HRiThdqdZNOrA6s81xaFb0uWeWU=; b=dKQolMtpMmuApjxGdivJL/zsYodWIJbEdJp8AZwKDJzRhW1hoAY1claDMgyvw+mm5N +tF8hzfTcbEfPUO/gE9XGutkHWCmT2vyNuPZUSy48XAXR//5dfBASSGbFnAFOnX7nwfW ant/YprhGc9IQoHpa1pKu3R5JDZm4gEC3bgoqnRTYKJRmtM/Ennvqe3kWZhuR2+ccz++ QuztM4DTTwqWXtM1eIVSDMW8cQasJlU1FrvQJ52ScA1ByM4BYFnu1ZhgRLbwKtiDNAiy vvv8dtUEsv6TX3ng/YK05XC7H/kSvqk8r198OtN+ufoqVUzgKRYxF095nCCxbuNwsIYq +PMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770931379; x=1771536179; 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=5jt/ta2e9LCcgP20HRiThdqdZNOrA6s81xaFb0uWeWU=; b=XQyOUaF+SYeX1T4LzW9brpozVCmHjqXoqQkSXnzI5W+tTE1bg4vckHh1yTcKXEnjGW nAsaHQmINS6tNJmMhIhvfXCOsxHHD05rRAp0I5CxAIh/DIX0xXFdMdhj4p0wtiNEyywH jSM7nZEiSU0xd7Wy6hzm3HWjvvke8NFITr+FWCGRuxhE/hijftQGMM4nWsXcy1V8m/xZ H/jm7R+ZzCcyLoE/rivSK0MoJH6OudMXeOxX56KG4XCpBTiglWyLGf5avhCTsHzZYQZZ XUokSijfIIKwJHwcPzFh4t/S/NX9PDmyXbnvHJ0tMgieVEFGfHL2A0jwiAcEQuQcnZBT XAhQ== X-Forwarded-Encrypted: i=1; AJvYcCXH1Yx0Y2wmz370PK6q+09ufXLazxzJayHFUzai/8BP2aKcSHSjMX0W0yD1MAUNlvZoiAuYxp5eOJD4ML8=@vger.kernel.org X-Gm-Message-State: AOJu0YymGPzWQUG4eoPl9MUH8GUu743KmifFSW5IF/k0wJX37N06/gbW 65n62y4ElStuk8iNCY7DVf1rGcJ3gVPeMrPFWUJzmE3Mrd43s8Ji3OyB X-Gm-Gg: AZuq6aK3+Cbykk8CaoAc8kB3yXHoOQnreHjS2QT6QiWZ8Gv9uBoYW0TAtmKCvgEPudi xePphmFJBTFHN99ECZ4gSf6qLugK8Vk2TcK7TO1xZiz6oNBuwpQ35v30iVqiAhJyZCzjfJr4yOB 6zWMgRYHVgOB6cDtLmdfsj4qsTGZj8BXOEVi6KQtOHYE6hpx8MJMKwAffBCZP/VGiweu45HNg7W UULz7tB0Xe6lij5xidbXuUDV/JiQJ8yVkUfem3M3FSaD81O0sY+vp4DE9bQJz4KN9fN/dtL5Mq7 e95r1J5XKpoxmEPF5HZRwnKLc3wUV0EM7Stir/g5cmqfonkUEblIKLy1bwjvpKL/Decr3teLcUz eGFTZ6IlNsiVmuGbzvgCZImGJu4FXXcXeG+cgn5FDX7Nw8GWNIXR1sII9qQ+aufxwfnGsQdKvwR GRAqUTb3zi8CNiKqIdtOoPjTedsbbgvzM1A1iMsD8uxU0= X-Received: by 2002:a05:7301:2f99:b0:2b7:2f29:648c with SMTP id 5a478bee46e88-2baba00663fmr143646eec.8.1770931378888; Thu, 12 Feb 2026 13:22:58 -0800 (PST) Received: from [192.168.4.196] ([73.222.117.172]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2ba9dba2d44sm4184966eec.6.2026.02.12.13.22.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Feb 2026 13:22:58 -0800 (PST) Message-ID: Date: Thu, 12 Feb 2026 13:22:56 -0800 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: [PATCH 1/2] mm/mempolicy: track page allocations per mempolicy To: Michal Hocko Cc: linux-mm@kvack.org, apopple@nvidia.com, akpm@linux-foundation.org, axelrasmussen@google.com, byungchul@sk.com, cgroups@vger.kernel.org, david@kernel.org, eperezma@redhat.com, gourry@gourry.net, jasowang@redhat.com, hannes@cmpxchg.org, joshua.hahnjy@gmail.com, Liam.Howlett@oracle.com, linux-kernel@vger.kernel.org, lorenzo.stoakes@oracle.com, matthew.brost@intel.com, mst@redhat.com, rppt@kernel.org, muchun.song@linux.dev, zhengqi.arch@bytedance.com, rakie.kim@sk.com, roman.gushchin@linux.dev, shakeel.butt@linux.dev, surenb@google.com, virtualization@lists.linux.dev, vbabka@suse.cz, weixugc@google.com, xuanzhuo@linux.alibaba.com, ying.huang@linux.alibaba.com, yuanchu@google.com, ziy@nvidia.com, kernel-team@meta.com References: <20260212045109.255391-1-inwardvessel@gmail.com> <20260212045109.255391-2-inwardvessel@gmail.com> Content-Language: en-US From: JP Kobryn In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/11/26 11:29 PM, Michal Hocko wrote: > On Wed 11-02-26 20:51:08, JP Kobryn wrote: >> It would be useful to see a breakdown of allocations to understand which >> NUMA policies are driving them. For example, when investigating memory >> pressure, having policy-specific counts could show that allocations were >> bound to the affected node (via MPOL_BIND). >> >> Add per-policy page allocation counters as new node stat items. These >> counters can provide correlation between a mempolicy and pressure on a >> given node. > > Could you be more specific how exactly do you plan to use those > counters? Yes. Patch 2 allows us to find which nodes are undergoing reclaim. Once we identify the affected node(s), the new mpol counters (this patch) allow us correlate the pressure to the mempolicy driving it.