Can't tell Linux to free pages, so just say we don't need them

This commit is contained in:
Eric Fischer
2016-04-04 16:18:55 -07:00
parent 72e485f285
commit c62762078a
2 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -1152,7 +1152,7 @@ void *run_thread(void *vargs) {
}
}
madvise(geomstart, arg->geom_size[j], MADV_FREE);
madvise(geomstart, arg->geom_size[j], MADV_DONTNEED);
if (munmap(geomstart, arg->geom_size[j]) != 0) {
perror("munmap geom");
}