Skip to content
Snippets Groups Projects
Commit 90c883ce authored by Chris Wilson's avatar Chris Wilson :thinking:
Browse files

lib: Shrink all i915 caches before measuring avail memory

parent e8eb9afd
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,7 @@
#include "intel_io.h"
#include "drmtest.h"
#include "igt_aux.h"
#include "igt_debugfs.h"
/**
* intel_get_total_ram_mb:
......@@ -295,6 +296,8 @@ void intel_purge_vm_caches(void)
{
int fd;
igt_drop_caches_set(DROP_SHRINK_ALL);
fd = open("/proc/sys/vm/drop_caches", O_WRONLY);
if (fd >= 0) {
/* BIT(2): Be quiet. Cannot be combined with other operations,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment