Skip to content

sched/numa: introduce numa locality

王贇 linux-doc linux-fsdevel lkml 8 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest posting 3/32 patches 13 repliesIn review
  2. v8 posting 2/30 of 2 patches 0 repliesSuperseded
  3. v8 posting 1/32 patches 4 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v72 patches2 repliesSuperseded
v62 patches4 repliesSuperseded
v52 patches1 replySuperseded
v42 patches4 repliesSuperseded
v32 patches4 repliesSuperseded

Changes in v8 from the cover letter

* document edited

Patches in v8 posting 3/3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sched/numa: introduce per-cgroup NUMA locality infoinclude/linux/sched.h include/linux/sched/sysctl.h init/Kconfig +4 more+190 -013 replies
2/2sched/numa: documentation for per-cgroup numaDocumentation/admin-guide/cg-numa-stat.rst Documentation/admin-guide/index.rst Documentation/admin-guide/kernel-parameters.txt +2 more+194 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchRandy Dunlap
1/2
2/2A-b

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

Read the v8 thread

Cover letter [PATCH RESEND v8 0/2] sched/numa: introduce numa locality

v8:
* document edited
v7:
* rebased on latest linux-next
v6:
* fix compile failure when NUMA disabled
v5:
* improved documentation
v4:
* fix comments and improved documentation
v3:
* simplified the locality concept & implementation
v2:
* improved documentation

Modern production environment could use hundreds of cgroup to control the resources for different workloads, along with the complicated resource binding.

On NUMA platforms where we have multiple nodes, things become even more complicated, we hope there are more local memory access to improve the performance, and NUMA Balancing keep working hard to achieve that, however, wrong memory policy or node binding could easily waste the effort, result a lot of remote page accessing.

We need to notice such problems, then we got chance to fix it before there are too much damages, however, there are no good monitoring approach yet to help catch the mouse who introduced the remote access.

This patch set is trying to fill in the missing pieces, by introduce the per-cgroup NUMA locality info, with this new statistics, we could achieve the daily monitoring on NUMA efficiency, to give warning when things going too wrong.

Please check the second patch for more details.

Michael Wang (2):
sched/numa: introduce per-cgroup NUMA locality info sched/numa: documentation for per-cgroup numa statistics

 Documentation/admin-guide/cg-numa-stat.rst      | 178 ++++++++++++++++++++++++
 Documentation/admin-guide/index.rst             |   1 +
 Documentation/admin-guide/kernel-parameters.txt |   4 +
 Documentation/admin-guide/sysctl/kernel.rst     |   9 ++
 include/linux/sched.h                           |  15 ++
 include/linux/sched/sysctl.h                    |   6 +
 init/Kconfig                                    |  11 ++
 kernel/sched/core.c                             |  75 ++++++++++
 kernel/sched/fair.c                             |  62 +++++++++
 kernel/sched/sched.h                            |  12 ++
 kernel/sysctl.c                                 |  11 ++
 11 files changed, 384 insertions(+)
 create mode 100644 Documentation/admin-guide/cg-numa-stat.rst
Signature · 1 line
2.14.4.44.g2045bb6