mcclnx mcc
2009-Jul-23 13:08 UTC
[CentOS] how to calculate how many semaphores already use on server?
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
Barry Brimer
2009-Jul-23 13:27 UTC
[CentOS] how to calculate how many semaphores already use on server?
> 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?Have you tried "ipcs -u" ?
JohnS
2009-Jul-23 13:53 UTC
[CentOS] how to calculate how many semaphores already use on server?
On Thu, 2009-07-23 at 21:08 +0800, mcclnx mcc wrote:> 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? >--- I bet if you take a look at Oracles Unbreakable you will get a hint. /etc/sysctl.conf and the kernel-doc sysctl docs will tell you. John