9 Commits

Author SHA1 Message Date
Chris Wilson
f650aa2dd6 igt/gem_close_race: Batify
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-04-20 18:48:23 +01:00
Chris Wilson
e8bcd678a6 igt/gem_shrink: Fix execution object offset
An off-by-one caused us to execute the blank object rather than the
batch.

References: https://bugs.freedesktop.org/show_bug.cgi?id=94801
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-04-10 18:42:42 +01:00
Chris Wilson
9cff3be127 igt/gem_shrink: Reduce oom spam
Since we are deliberately going to fail the mmap() allocation, don't
assert.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-04-04 16:25:24 +01:00
Chris Wilson
7a977554cb igt/gem_shrink: Fix leak in userptr, add another
Hitting oom from userptr because we had N threads all consuming all of
memory, wasn't the intention but the bugs it found were useful!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-04-04 15:25:57 +01:00
Chris Wilson
8833648b5c igt/gem_shrink: Exercise with userptr stress
Add additional mempressure in the form of userptr.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-04-02 17:41:11 +01:00
Chris Wilson
88bfe6ac41 igt/gem_shrink: Add pread/pwrite stress
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-04-02 17:41:11 +01:00
Chris Wilson
eb572106b4 igt/gem_shrink: Consume all of total ram in each process
"Leak" the objects from each test until each process has allocated
enough objects to consume all of RAM.

Doing so from each process not only ensures we do stress the allocation
paths, but also obsoletes the separate purgeable helper.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-03-23 11:11:43 +00:00
Chris Wilson
a9436e6693 igt/gem_shrink: Include a shrinker vs GPU hang
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-03-23 09:54:22 +00:00
Chris Wilson
54ec3782dc 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>
2016-03-23 09:41:54 +00:00