Skip to content

improve per-node allocation and reclaim visibility

JP Kobryn cgroups linux-mm lkml oe-lkp syzbot virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/mempolicy: track page allocations per mempolicyinclude/linux/mmzone.h mm/mempolicy.c mm/vmstat.c+46 -215 replies
2/2mm: move pgscan and pgsteal to node statsdrivers/virtio/virtio_balloon.c include/linux/mmzone.h include/linux/vm_event_item.h +3 more+60 -644 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] improve per-node allocation and reclaim visibility

We sometimes find ourselves in situations where reclaim kicks in, yet there is free memory available on the system. One possible explanation is that a NUMA node under pressure has triggered the reclaim. This NUMA imbalance scenario could be made easier to diagnose if we had better visibility.

This series aims to provide that visibility by accounting for the cause and effect of the imbalance. First, the addition of new node stats allows for tracking of allocations done on a per-policy basis. If a node is under pressure, these stats can help reveal the cause of how it got there. Second, the stats associated with reclaim are changed from vm_event_item to node_stat_item. Having the pgsteal and pgscan counters tracked on a per-node basis reveals the effect of any pressure, and allows us to quickly narrow down the affected node(s).

JP Kobryn (2):
mm/mempolicy: track page allocations per mempolicy
mm: move pgscan and pgsteal to node stats

 drivers/virtio/virtio_balloon.c |  8 ++++----
 include/linux/mmzone.h          | 21 +++++++++++++++++++
 include/linux/vm_event_item.h   | 12 -----------
 mm/memcontrol.c                 | 36 ++++++++++++++++++---------------
 mm/mempolicy.c                  | 30 +++++++++++++++++++++++++--
 mm/vmscan.c                     | 32 +++++++++++------------------
 mm/vmstat.c                     | 33 +++++++++++++++++++-----------
 7 files changed, 106 insertions(+), 66 deletions(-)
Signature · 1 line
2.47.3