if you ever need to change the size of your kernel shared memory in linux due to some error like memory allocation error or other shared memory error, you might need to increase your shared memory size in linux kernel.
- login to console with user that have root access
- edit /etc/sysctl.conf file using any of your favorite editor (if you use vi, type : vi /etc/sysctl.conf)
- change entry ini kernel.shmall (ie. kernel.shmall = 12884901888 for 12 GB of shared memory allocation). to get the number, simply calculate 12 x 1024 x 1024 x 1024 for 12 GB or 8 x 1024 x 1024 x 1024 for 8 GB
- save the file (if you use vi, type in :wq to save and quit)
Reboot your linux system for changes to take effect.