Set the shmmax parameter to 134217728 or 90% of the physical memory (in bytes), whichever is higher.
For example, if you have 196 MB of physical memory in your system, set shmmax to 184968806 (196*1024*1024*0.9).