-
- Downloads
tests: test for larger-than-memory mmaps.
It will create a file on-disk twice as large as memory, and then will map it entirely
in memory. The file is then read from using 3 different sequential patterns, and then
later on 2 threaded patterns.
This test does not handle writes.
It goes in misc because it takes a very long time to run (especially with a random pattern)
Example output:
Total Ram 586 Mb
Write done
Double Pass OK (13.6323 usec / page)
Recency OK (3.35954 usec / page)
Random Access OK (640.926 usec / page)
Threaded pass 1 address ended OK
Threaded pass many addresses ended OK
PASSED
Signed-off-by:
Glauber Costa <glommer@cloudius-systems.com>
tests/misc-mmap-big-file.cc
0 → 100644
Please register or sign in to comment