Hi,
Wanted to know what if there is a relationship between the maximum amount of memory that can be used to map a file through mmap() and the size of the RAM in a linux box. I tried to memory map some files , and I found that I am not able to map any more files when the "Mapped" usage comes close to the "MemTotal" ( viewed via cat /proc/meminfo).
From /proc/meminfo on the 64 bit linux box :
MemTotal: 32909628 kB
MemFree: 221744 kB
Buffers: 1800 kB
Mapped: 31642928 kB
CommitLimit: 38012616 kB
Committed_AS: 42641120 kB
VmallocTotal: 536870911 kB
VmallocUsed: 299920 kB
VmallocChunk: 536568999 kB
So, am I right in assuming that the "Mapped" usage would never exceed the "MemTotal". The confusion I have is I was of the opinion that the memory is always virtual when we mmap a file.
Thanks!