Skip to content

mm/oom: extend the coverage of OOM

Zhouping Liu ltp 4 versions – Applied

Status from this message: Applied, thank you.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 3 repliesApplied
  2. v37 patches 5 repliesSuperseded
  3. v27 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches6 repliesSuperseded

Changes in v4 from the cover letter

1. fixed some patch style error

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/7lib/mem: modified _gather_cpus() as _gather_node_cpus()testcases/kernel/mem/lib/mem.c+22 -40 replies
2/7mm/oom02: modified 'OOM for NUMA' as 'OOM for mempolicy'testcases/kernel/mem/lib/mem.c testcases/kernel/mem/oom/oom02.c+54 -240 replies
3/7numa_helper: added a new function is_numa()testcases/kernel/include/numa_helper.h testcases/kernel/lib/numa_helper.c+25 -00 replies
4/7mm/oom0[3|4]: added 'OOM for CPUSET' and moved 'OOM with MEMCG & numa' to oom03testcases/kernel/mem/oom/oom02.c testcases/kernel/mem/oom/oom03.c testcases/kernel/mem/oom/oom04.c+45 -400 replies
5/7lib/mem: updated testoom() and oom() funcstestcases/kernel/mem/include/mem.h testcases/kernel/mem/lib/mem.c testcases/kernel/mem/oom/oom01.c +3 more+20 -230 replies
6/7mm/oom05: new testcaseruntest/mm testcases/kernel/mem/oom/oom05.c+148 -00 replies
7/7lib/mem: removed the prefix underscore '_' of the internal function nametestcases/kernel/mem/lib/mem.c+28 -280 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchWanlong Gao
SeriesA-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

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

Read the v4 thread

Cover letter [LTP] [PATCH v4 0/7] mm/oom: extend the coverage of OOM

changed log from v1 to v2:
1. added a new is_numa() function instead of ISNUMA global variable;
2. added new patch to remove the prefix underscroe '_' of the

    internal function name;

3. used SAFE_FILE_SCANF() instead of read_file().
4. some cleanup...

changed log from v2 to v3:
1. as Jan's suggestion, pass 'nodes=NULL' to get_allowed_nodes_arr() in is_numa(), and free 'nodes' variable when it passed a non-NULL value inside testoom().

changed log from v3 to v4:
1. fixed some patch style error

The patch set updated all OOM testcases, and added a new testcase.

Inside old version, OOM only test MPOL_MBIND mempolicy in NUMA system, and the combination of CPUSET, MEMCG & NUMA is complex, and not clear. Also CPUSET is only used in NUMA system.

These patch set adjust them, now we can coverage the below tests:
1) OOM under normal - oom01
2) OOM under all mempolicy - oom02
3) OOM under MEMCG (+ mempolicy) - oom03
4) OOM under CPUSET (+ mempolicy) - oom04
5) OOM under CPUSET & MEMCG - oom05

Zhouping Liu (7):
lib/mem: modified _gather_cpus() as _gather_node_cpus() mm/oom02: modified 'OOM for NUMA' as 'OOM for mempolicy'
numa_helper: added a new function is_numa() mm/oom0[3|4]: added 'OOM for CPUSET' and moved 'OOM with MEMCG &
numa' to oom03
lib/mem: updated testoom() and oom() funcs
mm/oom05: new testcase
lib/mem: removed the prefix underscore '_' of the internal function
name

 runtest/mm                             |   1 +
 testcases/kernel/include/numa_helper.h |   1 +
 testcases/kernel/lib/numa_helper.c     |  24 ++++++
 testcases/kernel/mem/include/mem.h     |   4 +-
 testcases/kernel/mem/lib/mem.c         | 147 +++++++++++++++++++++------------
 testcases/kernel/mem/oom/oom01.c       |   6 +-
 testcases/kernel/mem/oom/oom02.c       |  20 +++--
 testcases/kernel/mem/oom/oom03.c       |  23 +++++-
 testcases/kernel/mem/oom/oom04.c       |  60 ++++++--------
 testcases/kernel/mem/oom/oom05.c       | 147 +++++++++++++++++++++++++++++++++
 10 files changed, 328 insertions(+), 105 deletions(-)
 create mode 100644 testcases/kernel/mem/oom/oom05.c
Signature · 12 lines
1.7.11.7


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list