Check out the info here:
http://sunsolve.sun.com/pub-cgi/retr...&wholewords=on
If this doesn't work, go to
http://sunsolve.sun.com and do an advanced search of the free docs - you should get a few for semaphores.
Solaris 2.5.1 is set up the same as 2.6 and up.
In /etc/system you would add your values (these may be too high or low for your use - read the info doc first)
set shmsys:shminfo_shmmax=131072000
set semsys:seminfo_semaem=16384
set semsys:seminfo_semmap=66
set semsys:seminfo_semmni=70
set semsys:seminfo_semmns=200
set semsys:seminfo_semmnu=30
set semsys:seminfo_semume=10
set semsys:seminfo_semvmx=32767
and reboot the system. Remeber the comment in the /etc/system is * not #.