Sprinkle madvise calls to hint about how files should be paged in

This commit is contained in:
Eric Fischer
2016-04-04 16:03:13 -07:00
parent 2b0ac890c5
commit b1d3849889
2 changed files with 64 additions and 30 deletions
+2
View File
@@ -1092,6 +1092,8 @@ void *run_thread(void *vargs) {
perror("mmap geom");
exit(EXIT_FAILURE);
}
madvise(geom, arg->geom_size[j], MADV_SEQUENTIAL);
madvise(geom, arg->geom_size[j], MADV_WILLNEED);
char *geomstart = geom;
char *end = geom + arg->geom_size[j];