tests: Add gem_shrink

This test exercise purely to exercise the shrinker under some common
stress (i.e. paths leading to i915_gem_object_get_pages()). We try to
fill the entirely of memory split amongst many processes so that each
individual process only consumes a small fraction of RAM (less than the
mappable aperture) and a single process should not be individually
blamed.

Based on an idea to have a seperate set of memory stress tests by Piotr
Luc.

Cc: Piotr Luc <piotr.luc@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2016-03-23 09:37:43 +00:00
parent 7fc5256f56
commit 54ec3782dc
2 changed files with 217 additions and 0 deletions
+1
View File
@@ -69,6 +69,7 @@ TESTS_progs_M = \
gem_reset_stats \
gem_ringfill \
gem_set_tiling_vs_blt \
gem_shrink \
gem_softpin \
gem_stolen \
gem_storedw_batches_loop \