public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* [v2 PATCH 0/1] fs/proc: Expose mm_cpumask in /proc/[pid]/status
@ 2025-12-26 21:14 Aaron Tomlin
  2025-12-26 21:14 ` [v2 PATCH 1/1] " Aaron Tomlin
  0 siblings, 1 reply; 6+ messages in thread
From: Aaron Tomlin @ 2025-12-26 21:14 UTC (permalink / raw)
  To: oleg, akpm, gregkh, david, brauner, mingo
  Cc: sean, linux-kernel, linux-fsdevel

Hi Oleg, David, Greg, Andrew,

This patch introduces two new fields to /proc/[pid]/status to display the
set of CPUs, representing the CPU affinity of the process's active memory
context, in both mask and list format: "Cpus_active_mm" and
"Cpus_active_mm_list". The mm_cpumask is primarily used for TLB and cache
synchronisation.
    
Exposing this information allows userspace to easily describe the
relationship between CPUs where a memory descriptor is "active" and the
CPUs where the thread is allowed to execute. The primary intent is to
provide visibility into the "memory footprint" across CPUs, which is
invaluable for debugging performance issues related to IPI storms and TLB
shootdowns in large-scale NUMA systems. The CPU-affinity sets the boundary;
the mm_cpumask records the arrival; they complement each other.
    
Frequent mm_cpumask changes may indicate instability in placement policies
or excessive task migration overhead.


Changes since v1:
 - Document new Cpus_active_mm and Cpus_active_mm_list entries in
   /proc/[pid]/status (Oleg Nesterov)

[1]: https://lore.kernel.org/lkml/20251217024603.1846651-1-atomlin@atomlin.com/

Aaron Tomlin (1):
  fs/proc: Expose mm_cpumask in /proc/[pid]/status

 Documentation/filesystems/proc.rst |  3 +++
 fs/proc/array.c                    | 22 +++++++++++++++++++++-
 2 files changed, 24 insertions(+), 1 deletion(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-01-15 18:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-26 21:14 [v2 PATCH 0/1] fs/proc: Expose mm_cpumask in /proc/[pid]/status Aaron Tomlin
2025-12-26 21:14 ` [v2 PATCH 1/1] " Aaron Tomlin
2025-12-30 21:16   ` David Hildenbrand (Red Hat)
2026-01-01  1:19     ` Aaron Tomlin
2026-01-06 18:54       ` David Hildenbrand (Red Hat)
2026-01-15 18:40         ` Aaron Tomlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox