Future reference (via Linux Kernel Tuning):
In addition to the number of shared memory segments, you can control the maximum amount of memory allocated to shm at run time via the /proc interface. /proc/sys/kernel/shmmax indicates the current. Echo a new value to it to increase it.
echo "67108864" > /proc/sys/kernel/shmmax
To double the default value.