mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-19 22:06:13 +00:00
tests/gem_tiled_swapping: be more conservative with the swap requirements
Blew up and angered the OOM killer on one of my machines. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
98129fa2ff
commit
8d4d8b00ed
@ -112,6 +112,11 @@ main(int argc, char **argv)
|
||||
return 77;
|
||||
}
|
||||
|
||||
if (intel_get_total_ram_mb() / 4 > intel_get_total_swap_mb()) {
|
||||
printf("not enough swap detected\n");
|
||||
return 77;
|
||||
}
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
bo_handles[i] = create_bo_and_fill(fd);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user