From: Piotr Luc <piotr.luc@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH i-g-t 0/2] New test to stress eviction
Date: Tue, 22 Mar 2016 18:26:46 +0100 [thread overview]
Message-ID: <1458667608-28586-1-git-send-email-piotr.luc@intel.com> (raw)
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
next reply other threads:[~2016-03-22 17:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-22 17:26 Piotr Luc [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1458667608-28586-1-git-send-email-piotr.luc@intel.com \
--to=piotr.luc@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).