Commit 494c2ccf authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8caa5dc3
......@@ -58,7 +58,7 @@ int main() {
printf("T(fallocate):\t%.1f\t%6.1f ns / page\n", Tend - Tstart, (Tend - Tstart) * 1E9 / NITER);
Tstart = microtime();
addr = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0);
addr = mmap(NULL, size, PROT_READ, MAP_SHARED | MAP_POPULATE, fd, 0);
if (addr == MAP_FAILED) {
perror("mmap");
abort();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment