gem_tiled_swapping: Purge all page/swap caches first

Reset the system to a vanilla state before we query how much RAM/swap
space is available for our testing.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2014-04-07 13:09:46 +01:00
parent 5d607a744f
commit ff7806e52c
3 changed files with 15 additions and 0 deletions
+1
View File
@@ -102,6 +102,7 @@ igt_simple_main
current_tiling_mode = I915_TILING_X;
igt_skip_on_simulation();
intel_purge_vm_caches();
fd = drm_open_any();
/* need slightly more than available memory */