F
Fishtank
Hello,
On linux, suppose I have a 64 bit system with 32GB ram. If I were to
call mmap
mmap(void *start, size_t length, int prot, int flags, int fd, off_t
offset);
offset equal to 0 and length the length of a 10 gb file, will mmap map
the *entire* file into memory?
Or will it (behind the scenes) load in chunks?
So e.g were the file to be 35GB, would a call to mmap fail? And the
way around would be to load say X mb chunks by shifting the offset.
Thank you in advance
Sapsi
On linux, suppose I have a 64 bit system with 32GB ram. If I were to
call mmap
mmap(void *start, size_t length, int prot, int flags, int fd, off_t
offset);
offset equal to 0 and length the length of a 10 gb file, will mmap map
the *entire* file into memory?
Or will it (behind the scenes) load in chunks?
So e.g were the file to be 35GB, would a call to mmap fail? And the
way around would be to load say X mb chunks by shifting the offset.
Thank you in advance
Sapsi