Skip to content

sched/numa: Complete scanning of partial and inactive VMAs

Mel Gorman linux-mm lkml 1 version Applied

Status from this message: The following commit has been merged into the sched/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6sched/numa: Document vma_numab_state fieldsinclude/linux/mm_types.h+27 -30 replies
2/6sched/numa: Rename vma_numab_state.access_pidsinclude/linux/mm.h include/linux/mm_types.h kernel/sched/fair.c+10 -100 replies
3/6sched/numa: Trace decisions related to skipping VMAsinclude/linux/sched/numa_balancing.h include/trace/events/sched.h kernel/sched/fair.c+71 -40 replies
4/6sched/numa: Move up the access pid reset logickernel/sched/fair.c+7 -100 replies
5/6sched/numa: Complete scanning of partial VMAs regardless of PID activityinclude/linux/sched/numa_balancing.h include/trace/events/sched.h kernel/sched/fair.c+18 -40 replies
6/6sched/numa: Complete scanning of inactive VMAs when there is no alternativeinclude/linux/mm_types.h include/linux/sched/numa_balancing.h include/trace/events/sched.h +1 more+61 -46 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by.

PatchRaghavendra K T
SeriesT-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] sched/numa: Complete scanning of partial and inactive VMAs

NUMA Balancing currently uses PID fault activity within a VMA to determine if it is worth updating PTEs to trap NUMA hinting faults. While this is reduces overhead, it misses two important corner case. The first is that if Task A partially scans a VMA that is active and Task B resumes the scan but is inactive, then the remainder of the VMA may be missed. Similarly, if a VMA is inactive for a period of time then it may never be scanned again.

Patches 1-3 improve the documentation of the current per-VMA tracking and adds a trace point for scan activity. Patch 4 addresses a corner case where the PID activity information may not be reset after the expected timeout. Patches 5-6 complete the scanning of partial and inactive VMAs within the scan sequence.

This could be improved further but it would deserve a separate series on top with supporting data justifying the change. Otherwise and gain/loss due to the additional changes could be masked by this series on its own.

 include/linux/mm.h                   |   4 +-
 include/linux/mm_types.h             |  36 +++++++++-
 include/linux/sched/numa_balancing.h |  10 +++
 include/trace/events/sched.h         |  52 ++++++++++++++
 kernel/sched/fair.c                  | 103 ++++++++++++++++++++++-----
 5 files changed, 182 insertions(+), 23 deletions(-)
Signature · 1 line
2.35.3