evictions: Limit the number of minor eviction surfaces to fit in RAM
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Feb 2014 12:01:47 +0000 (12:01 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Feb 2014 12:06:10 +0000 (12:06 +0000)
commit8c475e0ba69c585bc11062edd1f7fc4bbded811c
tree6520bfcbe394e12ade9502dfcd46bee36a034796
parentea332b64b6e9f6935da4b43f05fefcdcea32cc64
evictions: Limit the number of minor eviction surfaces to fit in RAM

We allocate more surfaces than used in a single pass in order to stress
the eviction code between batches. The intent here is not to exercise
swapping, and we fail to check that there is enough swap+memory to hold
all our surfaces. So limit the number of surfaces we allocate to fit
into RAM, and then require that the number of surfaces we need for
testing is less than the number of surfaces we can allocate.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tests/eviction_common.c