Skip to content

mm: fix oom-killer not being invoked when demotion is enabled

Akinobu Mita linux-cxl linux-mm lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 21 repliesIn review
  2. v33 patches 15 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches4 repliesSuperseded

Changes in v4 from the cover letter

- remove unnecessary include of linux/node.h, suggested by Jonathan Cameron
- include linux/notifier.h for the notifier_block, suggested by Jonathan Cameron
- typo in abstruct distance value in the commit log and document
- add information about supported architectures in numa_emulation.rst
- add a code comment in can_demote()

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm: memory-tiers, numa_emu: enable to create memory tiers using fake numa nodesmm/numa_emulation.c+26 -01 reply
2/3mm: numa_emu: add document for NUMA emulationDocumentation/mm/index.rst Documentation/mm/numa_emulation.rst+32 -01 reply
3/3mm/vmscan: don't demote if there is not enough free memory in the lower memory tiermm/vmscan.c+16 -119 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchJonathan CameronPratyush Brahma
1/3R-b R-b
2/3R-b R-b
3/3

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

Read the v4 thread

Cover letter [PATCH v4 0/3] mm: fix oom-killer not being invoked when demotion is enabled

On systems with multiple memory-tiers consisting of DRAM and CXL memory, the OOM killer is not invoked properly.

This patchset includes a fix for the issue and an enhancement that makes the issue reproducible with numa emulation.

v4:
- remove unnecessary include of linux/node.h, suggested by Jonathan Cameron
- include linux/notifier.h for the notifier_block, suggested by Jonathan Cameron
- typo in abstruct distance value in the commit log and document
- add information about supported architectures in numa_emulation.rst
- add a code comment in can_demote()

v3: https://lore.kernel.org/linux-mm/[email protected]/T
- rebase to linux-next (next-20260108), where demotion target has changed from node id to node mask.

v2: https://lore.kernel.org/linux-mm/[email protected]/T
- fix the explanation about cmdline parameter in the commit log
- add document for NUMA emulation
- describe reproducibility with !mglru in the commit log
- removed unnecessary consideration for scan control when checking demotion_nid watermarks

v1: https://lore.kernel.org/linux-mm/[email protected]/T/

original report:
- https://lore.kernel.org/lkml/[email protected]/T

Akinobu Mita (3):
mm: memory-tiers, numa_emu: enable to create memory tiers using fake
numa nodes
mm: numa_emu: add document for NUMA emulation
mm/vmscan: don't demote if there is not enough free memory in the
lower memory tier

 Documentation/mm/index.rst          |  1 +
 Documentation/mm/numa_emulation.rst | 31 +++++++++++++++++++++++++++++
 mm/numa_emulation.c                 | 26 ++++++++++++++++++++++++
 mm/vmscan.c                         | 17 +++++++++++++++-
 4 files changed, 74 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/mm/numa_emulation.rst
Signature · 1 line
2.43.0