Operating System - HP-UX
1748024 Members
3956 Online
108757 Solutions
New Discussion юеВ

Semaphore Table (semmni) fill up in 2 weeks

 
SOLVED
Go to solution
John Jimenez
Super Advisor

Semaphore Table (semmni) fill up in 2 weeks

I have some scipts that are not releasing semaphores after they are complete. I have narrowed the problems to some scripts in cron that are using "PGP" encryption. But I do not know needs to be added to these scripts or if it might be the PGP program intself. Has anyone ever seen this problem before?
Thanks a bunch.
Hustle Makes things happen
4 REPLIES 4
Massimo Bianchi
Honored Contributor
Solution

Re: Semaphore Table (semmni) fill up in 2 weeks

Hi,
if you know the user under which these scripts are running, i would use "ipcrm -S " to clean the improperly left there semaphores.


Scripts by themselves do not use semaphores (AFAIK), so i think of PGP. Which version ? maybe there are specific issues, but we need:

- O.S. version
- PGP version
- the version of other programs involved.

Massimo
Steven E. Protter
Exalted Contributor

Re: Semaphore Table (semmni) fill up in 2 weeks

You might want to check and see if your semmni shmmax and shmseg figures are realistic.

ipcs

this command will show open shared memory areas.


ipcrm -m or ipcrm -s

to get rid of dead ones.

If you try and hammer something that is active, you might impact users.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor

Re: Semaphore Table (semmni) fill up in 2 weeks

You have to be careful in removing sema4's in that although no processes may be using one at the moment, it may be needed later. It's not unusual for a process to create and initialize them and then other processes simply access them but absolutely expect that these sema4's exist. Typically sema4's are left dangling when processes terminate unexpectedly or if you use kill -9. I suspect that if you fix the real problem (e.g. bad code) the symptoms (dangling sema4's) will disappear.
If it ain't broke, I can fix that.
John Jimenez
Super Advisor

Re: Semaphore Table (semmni) fill up in 2 weeks

Thanks for the input. I did use the ipcrm -s instead of the ipcrm -S. Because they all has a unique ID. But all the ones from the 4 users had the same key 0x00000000 including some that I did not want to touch from root.

I have been runing ipcs -sbp many times a day for a couple of weeks. I will only delete the ones that I know should be deleted. I deleted only 1 user today but will do another one from another tomorrow. We will continue to find out what is causing this. Since it seems like the only these scripts that are not releasing semaphores all use PGP, I will call Network Associates to see if they know any bugs on their software that might be doing this. Thanks again for your help...
Hustle Makes things happen