[CentOS] how to calculate how many semaphores already use on server?

Thu Jul 23 13:08:23 UTC 2009
mcclnx mcc <mcclnx at yahoo.com.tw>

we have following setup on sysctl.conf:
  kernel.sem = 256 32000 128 142

I tried to startup database and have error happen.  I knew problem come from SEMMNS (32000) is not enough.  Does anyone know how to calculate how many semaphores already use on system?

Thanks.


%ipcs -s

------ Semaphore Arrays --------
key        semid      owner      perms      nsems     
0x963683ec 4751396    oracle    640        104       
0xa2c7ff00 23920677   oracle    640        152       
0xa2c7ff01 23953446   oracle    640        152       
0xa2c7ff02 23986215   oracle    640        152       
0x412d7488 5079080    oracle    640        104       
0x851919ac 5210153    oracle    640        104       
0x8dc876c0 5341226    oracle    640        204       
0xd7102740 5472299    oracle    640        104       
0xd47fc604 5603372    oracle    640        104       
0x1b58f6dc 5734445    oracle    640        104       
0xd41e2264 24117294   oracle    640        154       
0x1c4a5478 23789616   oracle    640        154       
0x8e1c7ae4 6258737    oracle    660        202       
0x8e1c7ae5 6291506    oracle    660        202       
0x8e1c7ae6 6324275    oracle    660        202       
0x1689db30 18907208   oracle    660        202       
0x1689db31 18939977   oracle    660        202       
0x1689db32 18972746   oracle    660        202       
0xd57123a0 24248441   oracle    640        154       
0x00000000 25985160   root      666        1         
0xd5f2a5c0 29720718   oracle    640        154       


      ______________________________________________________________________________________________________
付費才容量無上限?Yahoo!奇摩電子信箱2.0免費給你,信件永遠不必刪! http://tw.mg0.mail.yahoo.com/dc/landing