[Intel-gfx] [PATCH i-g-t 0/2] New test to stress eviction

Piotr Luc piotr.luc at intel.com
Tue Mar 22 17:26:46 UTC 2016

From: Piotr Luc <Piotr.Luc at intel.com>

The aim of the test is to stress i915 memory eviction mechanism on Android.
It seems that Android systems, which usually don't have a swap file, experience
some problems with killing offending processes that use a large amount of GFX
Linux systems seem to be more robust in this case and kill such
processes because swap file allows to accept more memory requests, and also
they are more distributed in time. However, Linux system with swap disabled
behaves similar to Android.

This test was developed to help replicate the OOM situation where
system ends up with continuously repeated message:
 "Unable to purge GPU memory due lock contention."
This state lasts long time, counted in minutes or hours, and
Android systems seems to be unable to recover from it quickly,
as it would be expected.
I believe it could be treated as a kind of DoS attack caused by
a malicious GFX application and need more investigation, thus this
set of patches.

The gem_exec_mem_huge test should be run with enabled low memory killer;
the first patch adds a new parameter to prevent disabling LMK.

Piotr Luc (2):
  lib/igt_core.c: Add new parameter to prevent disabling LMK
  tests/gem_exec_mem_huge.c: New test to stress eviction

 lib/igt_core.c            |  15 +++-
 tests/Makefile.sources    |   1 +
 tests/gem_exec_mem_huge.c | 196 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 210 insertions(+), 2 deletions(-)
 create mode 100644 tests/gem_exec_mem_huge.c


More information about the Intel-gfx mailing list