intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH i-g-t 0/2] New test to stress eviction
@ 2016-03-22 17:26 Piotr Luc
  2016-03-22 17:26 ` [PATCH i-g-t 1/2] lib/igt_core.c: Add new parameter to prevent disabling LMK Piotr Luc
  2016-03-22 17:26 ` [PATCH i-g-t 2/2] tests/gem_exec_mem_huge.c: New test to stress eviction Piotr Luc
  0 siblings, 2 replies; 4+ messages in thread
From: Piotr Luc @ 2016-03-22 17:26 UTC (permalink / raw)
  To: intel-gfx

From: Piotr Luc <Piotr.Luc@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
memory.
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

-- 
2.5.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-23 11:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-22 17:26 [PATCH i-g-t 0/2] New test to stress eviction Piotr Luc
2016-03-22 17:26 ` [PATCH i-g-t 1/2] lib/igt_core.c: Add new parameter to prevent disabling LMK Piotr Luc
2016-03-22 17:26 ` [PATCH i-g-t 2/2] tests/gem_exec_mem_huge.c: New test to stress eviction Piotr Luc
2016-03-23 11:12   ` Chris Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).