Skip to content

Disable Android low memory killer

[email protected] intel-gfx 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 8 repliesIn review
  2. v12 patches 8 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/igt_core: make single/simple tests use igt_exitlib/igt_core.c lib/igt_core.h tests/igt_simulation.c+7 -63 replies
2/2lib/igt_core.c: add function to disable lowmemorykillerlib/igt_core.c+70 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] Disable Android low memory killer

From: Tim Gore <[email protected]>

For some tests that put pressure on memory, the Android lowmemorykiller needs to be disabled for the test to run to completion. The first patch is a simple bit of preparation to ensure that all (well written) "simple" tests exit via a call to igt_exit, in the same way as tests with subtests do. This is to make sure we can clean up by re-enabling the lowmemorykiller.
The second patch is to disable the Android lowmemorykiller during the common initialisation code (in oom_adjust_for_doom to be exact) and to re-enstate it in igt_exit.

v1: As above

v2: Remove the call to disable the lowmemorykiller from
oom_adjust_for_doom. lowmemorykiller is not disabled by default now; it is up to each individual test to call low_mem_killer_disable() if it needs to.

Tim Gore (2):
lib/igt_core: make single/simple tests use igt_exit lib/igt_core.c: add function to disable lowmemorykiller

 lib/igt_core.c         | 79 +++++++++++++++++++++++++++++++++++++++++++++++---
 lib/igt_core.h         |  2 +-
 tests/igt_simulation.c |  2 +-
 3 files changed, 77 insertions(+), 6 deletions(-)
Signature · 1 line
2.1.1