[Intel-gfx] [PATCH i-g-t 2/2] tests/gem_exec_mem_huge.c: New test to stress eviction
Chris Wilson
chris at chris-wilson.co.uk
Wed Mar 23 11:12:56 UTC 2016
On Tue, Mar 22, 2016 at 06:26:48PM +0100, Piotr Luc wrote:
> From: Piotr Luc <Piotr.Luc at intel.com>
>
> The aim of the test is to stress i915 memory eviction mechanism.
> The test runs many processes, each of it executes NOP batch
> which has attached really big data buffers chain.
>
> While this is unusual use case, rather it doesn't occur in
> normal games or applications, it possible to imagine that an
> offending application can use the weakness of low memory handler
> and i915 buffer eviction mechanism to conduct DoS attack.
> Note that achieving this goal on standard PC could be difficult,
> it may be easy in a system with limited capabilities (little memory,
> lack of swap, a small number of cores).
I had a go at capturing your requirements a little more concisely as
igt/gem_shrink. Hopefully that gives you a superset of what you wanted
to do here, and prove to be a useful platform to build upon.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list