According to the RHEL document, the total amount of shared memory available on the system equals shmall*PAGE_SIZE
.
After I completed the installation of RHEL 6, the value of the shmall
kernel parameter defaults to 4294967296, which means that the total amount of shared memory pages that can be used system-wide is 4294967296, and the page size is 4096 B. So, based on the formula, the size of shared memory is
4294967296*4096/1024/1024/1024/1024 = 16 TB
... which is much more than the size of RAM (8 GB) the operating system has. How can an OS find 16 TB of shared memory to allocate?
So, is the size of /dev/shm
equal to the size of shared memory? If not, how can I get the actual size of the shared memory?