I am having an amiguity as to what the maximum value in shmmax should be set.
After having a look at my system's statistics, it shows the following:
#cat /proc/sys/kernel/shmmax
18446744073692774399
#ipcs -l
------ Messages Limits --------
max queues system wide = 3675
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 18014398509465599
max total shared memory (kbytes) = 18014398442373116
min seg size (bytes) = 1
------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767
Ideally the value of shared memory should not exceed the actual RAM size (Which comes to be 21474836480 bytes). Then is this thing possible? Or is this a garbage value.