2 ms·
No. Using mmap is pretending you read your entire file into memory but all the memory got swapped to disk, and so the pages has to be swapped back into memory
by magicalhippo 6y ago
No.
Using mmap is pretending you read your entire file into memory but all the memory got swapped to disk, and so the pages has to be swapped back into memory when you access them.
Except you didn't do the initial read into memory, and instead of the system swap file it's using the file you actually want to read when paging data back into memory.