tests/gem_evict_everything: tune down forked subtests
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 30 Sep 2013 14:04:38 +0000 (16:04 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 30 Sep 2013 14:04:38 +0000 (16:04 +0200)
On new machines with gobloads of memory and cpu cores, but slow swap
on spinning rust we need to limit the runtime a bit for sanity.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/gem_evict_everything.c

index 86b0b6f..4eb7cb4 100644 (file)
@@ -160,7 +160,7 @@ static void forked_evictions(int fd, int size, int count,
        for (n = 0; n < bo_count; n++)
                bo[n] = gem_create(fd, size);
 
-       igt_fork(i, min(count, num_threads * 4)) {
+       igt_fork(i, min(count, min(num_threads * 5, 12))) {
                int realfd = fd;
                int num_passes = flags & SWAPPING ? 10 : 100;