|
|
|
|
|
by quotemstr
1979 days ago
|
|
You use mmap whether you want to or not: the system executes your program by mmaping your executable and jumping into it! You can always take a hard fault at any time because the kernel is allowed to evict your code pages on demand even if you studiously avoid mmap for your data files. And it can do this eviction even if you have swap turned off. If you want to guarantee that your program doesn't block, you need to use mlockall. |
|
After application startup, you can avoid additional mmap.