Skip to content

show_mem updates

Michal Hocko linux-ia64 linux-mm linux-parisc lkml 2 versions – Applied

Status from this message: [merged] lib-show_memc-teach-show_mem-to-work-with-the-given-nodemask.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 5 repliesApplied 4/4
  2. v14 patches 14 repliesSuperseded

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4mm, page_alloc: do not report all nodes in show_memmm/page_alloc.c+3 -02 repliesApplied
2/4mm, page_alloc: warn_alloc print nodemaskinclude/linux/mm.h mm/page_alloc.c mm/vmalloc.c+10 -83 repliesApplied
3/4arch, mm: remove arch specific show_memarch/ia64/mm/init.c arch/parisc/mm/init.c arch/sparc/mm/init_32.c +2 more+0 -1970 repliesApplied
4/4lib/show_mem.c: teach show_mem to work with the given nodemaskarch/powerpc/xmon/xmon.c arch/sparc/kernel/setup_32.c drivers/net/ethernet/sgi/ioc3-eth.c +7 more+32 -330 repliesApplied

Reviews trailers per patch

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

PatchGuan XuetaoHelge DellerChris MetcalfMel GormanJohannes WeinerHillf DantonDavid Rientjes
1/4A-b A-b A-b A-b
2/4A-b A-b
3/4A-b A-b A-b A-b A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v2 thread

Cover letter [PATCH 0/4 v2] show_mem updates

Hi,
the previous version has been posted [1] and there didn't seem to be any opposition so I am reposting it for inclusion. There was only one change and warn_alloc_show_mem does cpuset_print_current_mems_allowed now. Besides that acks have been added.

This is a mixture of one bug fix (patch 1), an enhancement (patch 2) and cleanups (the rest of the series). First two patches should be really straightforward. Patch 3 removes some arch specific show_mem implementations because I think they are quite outdated and do not really serve any useful purpose anymore. I think we should really strive to have a consistent show_mem output regardless of the architecture. If some architecture is really special and wants to dump something additional we should do that via an arch specific hook.

The last patch adds nodemask parameter so that we do not rely on the hardcoded mems_allowed of the current task when doing the node filtering. I consider this more a cleanup than a fix because basically all users use a nodemask which is a subset of mems_allowed. There is only one call path in the memory hotplug which doesn't comply with this but that is hardly something to worry about.

[1] http://lkml.kernel.org/r/[email protected]

This is on top of the current mmotm (mmotm-2016-12-19-16-31) tree . Michal Hocko (4):
mm, page_alloc: do not report all nodes in show_mem mm, page_alloc: warn_alloc print nodemask
arch, mm: remove arch specific show_mem lib/show_mem.c: teach show_mem to work with the given nodemask

 arch/ia64/mm/init.c                 | 48 ------------------------------------
 arch/parisc/mm/init.c               | 49 -------------------------------------
 arch/powerpc/xmon/xmon.c            |  2 +-
 arch/sparc/kernel/setup_32.c        |  2 +-
 arch/sparc/mm/init_32.c             | 11 ---------
 arch/tile/mm/pgtable.c              | 45 ----------------------------------
 arch/unicore32/mm/init.c            | 44 ---------------------------------
 drivers/net/ethernet/sgi/ioc3-eth.c |  2 +-
 drivers/tty/sysrq.c                 |  2 +-
 drivers/tty/vt/keyboard.c           |  2 +-
 include/linux/mm.h                  |  9 +++----
 lib/show_mem.c                      |  4 +--
 mm/nommu.c                          |  6 ++---
 mm/oom_kill.c                       |  2 +-
 mm/page_alloc.c                     | 49 ++++++++++++++++++++-----------------
 mm/vmalloc.c                        |  4 +--
 16 files changed, 44 insertions(+), 237 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>