Let's suppose that there is a large file. The mmap
function cannot handle it entirely. But we need to read as large parts of this file as possible.
I found that this command in Unix allows us to find the mmap
size:
sysctl vm.max_map_count
The output is: vm.max_map_count = 65530
.
However, it doesn't work in C program. How to find the size of map function in C program?