linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2] sched/numa: Skip VMA scanning on memory pinned to one NUMA node via cpuset.mems
@ 2025-04-24  2:45 Libo Chen
  2025-04-24  2:45 ` [PATCH v5 1/2] " Libo Chen
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Libo Chen @ 2025-04-24  2:45 UTC (permalink / raw)
  To: akpm, rostedt, peterz, mgorman, mingo, juri.lelli,
	vincent.guittot, tj, llong
  Cc: sraithal, venkat88, kprateek.nayak, raghavendra.kt, yu.c.chen,
	tim.c.chen, vineethr, chris.hyser, daniel.m.jordan,
	lorenzo.stoakes, mkoutny, linux-mm, cgroups, linux-kernel

v1->v2:
1. add perf improvment numbers in commit log. Yet to find perf diff on
will-it-scale, so not included here. Plan to run more workloads.
2. add tracepoint.
3. To peterz's comment, this will make it impossible to attract tasks to
those memory just like other VMA skippings. This is the current
implementation, I think we can improve that in the future, but at the
moment it's probabaly better to keep it consistent.

v2->v3:
1. add enable_cpuset() based on Mel's suggestion but again I think it's
redundant.
2. print out nodemask with %*p.. format in the tracepoint.

v3->v4:
1. fix an unsafe dereference of a pointer to content not on ring buffer,
namely mem_allowed_ptr in the tracepoint.

v4->v5:
1. add BUILD_BUG_ON() in TP_fast_assign() to guard against future
changes (particularly in size) in nodemask_t.

Libo Chen (2):
  sched/numa: Skip VMA scanning on memory pinned to one NUMA node via
    cpuset.mems
  sched/numa: Add tracepoint that tracks the skipping of numa balancing
    due to cpuset memory pinning

 include/trace/events/sched.h | 33 +++++++++++++++++++++++++++++++++
 kernel/sched/fair.c          |  9 +++++++++
 2 files changed, 42 insertions(+)

-- 
2.43.5



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

end of thread, other threads:[~2025-04-24  9:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-24  2:45 [PATCH v5 0/2] sched/numa: Skip VMA scanning on memory pinned to one NUMA node via cpuset.mems Libo Chen
2025-04-24  2:45 ` [PATCH v5 1/2] " Libo Chen
2025-04-24  2:45 ` [PATCH v5 2/2] sched/numa: Add tracepoint that tracks the skipping of numa balancing due to cpuset memory pinning Libo Chen
2025-04-24  4:42 ` [PATCH v5 0/2] sched/numa: Skip VMA scanning on memory pinned to one NUMA node via cpuset.mems K Prateek Nayak
2025-04-24  7:05 ` Venkat Rao Bagalkote
2025-04-24  7:46   ` Libo Chen
2025-04-24  9:47     ` Venkat Rao Bagalkote
2025-04-24  7:52 ` Aithal, Srikanth
2025-04-24  9:50 ` Venkat Rao Bagalkote

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