Skip to content

introduce a new state 'isolate' for memblock to split the isolation and migration steps

Pingfan Liu linux-mm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm/isolation: separate the isolation and migration ops in offline memblockinclude/linux/page-isolation.h include/linux/pageblock-flags.h mm/memory_hotplug.c +2 more+32 -120 replies
2/3drivers/base/memory: introduce a new state 'isolate' for memblockdrivers/base/memory.c include/linux/memory.h+31 -10 replies
3/3drivers/base/node: create a partial offline hints under each nodedrivers/base/node.c include/linux/mmzone.h mm/memory_hotplug.c+53 -120 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/3] introduce a new state 'isolate' for memblock to split the isolation and migration steps

Currently, offline pages in the unit of memblock, and normally, it is done one by one on each memblock. If there is only one numa node, then the dst pages may come from the next memblock to be offlined, which wastes time during memory offline. For a system with multi numa node, if only replacing part of mem on a node, and the migration dst page can be allocated from local node (which is done by [3/3]), it also faces such issue. This patch suggests to introduce a new state, named 'isolate', the state transition can be isolate -> online or reversion. And another slight benefit of "isolated" state is no further allocation on this memblock, which can block potential unmovable page allocated again from this memblock for a long time.

Cc Andrew Morton <[email protected]>
Cc KAMEZAWA Hiroyuki <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Pavel Tatashin <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Bharata B Rao <[email protected]>
Cc Dan Williams <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Kirill A. Shutemov <[email protected]>

Pingfan Liu (3):
mm/isolation: separate the isolation and migration ops in offline
memblock
drivers/base/memory: introduce a new state 'isolate' for memblock drivers/base/node: create a partial offline hints under each node

 drivers/base/memory.c           | 31 ++++++++++++++++++++++++++++++-
 drivers/base/node.c             | 33 +++++++++++++++++++++++++++++++++
 include/linux/memory.h          |  1 +
 include/linux/mmzone.h          |  1 +
 include/linux/page-isolation.h  |  4 ++--
 include/linux/pageblock-flags.h |  2 ++
 mm/memory_hotplug.c             | 37 ++++++++++++++++++++++---------------
 mm/page_alloc.c                 |  4 ++--
 mm/page_isolation.c             | 28 +++++++++++++++++++++++-----
 9 files changed, 116 insertions(+), 25 deletions(-)
Signature · 1 line
2.7.4