Skip to content

sched,numa: reduce page migrations with pseudo-interleaving

[email protected] lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sched,numa: count pages on active node as localkernel/sched/fair.c+13 -14 replies
2/3sched,numa: retry placement more frequently when misplacedkernel/sched/fair.c+4 -14 replies
3/3sched,numa: do not set preferred_node on migration to a second choice nodekernel/sched/fair.c+10 -14 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchVinod CheguMel Gorman
1/3T-b A-b
2/3T-b A-b
3/3T-b A-b

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/3] sched,numa: reduce page migrations with pseudo-interleaving

The pseudo-interleaving code deals fairly well with the placement of tasks that are part of workloads that span multiple NUMA nodes, but the code has a number of corner cases left that can result in higher than desired overhead.

This patch series reduces the overhead slightly, mostly visible through a lower number of page migrations, while leaving the throughput of the workload essentially unchanged.

On smaller NUMA systems, these patches should have little or no effect. On a 4 node test system, I did see a reduction in the number of page migrations running SPECjbb2005; autonuma-benchmark appears to be unaffected.

NUMA page migrations on an 8 node system running SPECjbb2005, courtesy of Vinod:

vanilla with patch
8 - 1 socket wide: 9138324 8918971
4 - 2 socket wide: 8239914 7315148
2 - 4 socket wide: 5732744 3849624
1 - 8 socket wide: 3348475 2660347