How does mmap work? I mean, what problem can lead to its failure

I am working on programs on Linux that need a mmap file from a hard drive, but I have a question that might make it fail. as if all the memories were fragmentary, with only 200 M each, but I want the mmap file to be 1000M in memory, will it be successful? and one more question: are there any tools in Linux for storing memory, like some tools in Windows, for example. built-in tool for xp.

thank,

+5
source share
3 answers

mmap() , , , .

, 32- , . 64- , , , , .

32- , , . 4 2 , 2 . 2 ( , ) ( ). ​​

, mmap() 32- , , , 64- .

, - . , , , , ​​ . , , , .

, , , (, ).

, , . , , mmap() , - , . 1 , 128 , 32- 4 , 16 .

, mmap(), , .

+12

mmap , , , . "" "" , .

. ​​ "" , / , , .

mmap , , 32- , . , "" manpage.

, -. SIGBUS signal.

+3

: .

, , , , : mmap . mmap.

0

All Articles