Update /etc/sysctl.conf and add (or alter):
kernel.shmmax = <max bytes>
and run sysctl -p to update the system settings.