1748080 Members
5180 Online
108758 Solutions
New Discussion юеВ

semaphores alarm

 
SOLVED
Go to solution
Troyan Krastev
Regular Advisor

semaphores alarm

Hi all,

I have BMC Patrol installed on one of my HP-UX boxes and it raise an alarm that number of SemaphoreOperations are getting to low. I run ?sar ?m? and this is a part of the output:
silver:/ # sar -m 1 2000
HP-UX silver B.11.00 C 9000/889 08/08/01
11:06:00 msg/s sema/s
11:06:01 0.00 532.67
11:06:02 0.00 529.29
11:06:03 0.00 516.00
11:06:04 0.00 44.00
11:06:05 0.00 0.00
11:06:06 0.00 72.73
11:06:07 0.00 198.02
11:06:08 0.00 0.00
11:06:09 0.00 125.25
11:06:10 0.00 524.00
11:06:11 0.00 510.89

Is it really a problem? And if it is, where can I find some more information on it?

Thanks,
Troy.
7 REPLIES 7
JACQUET
Frequent Advisor
Solution

Re: semaphores alarm

This is a part of some kernel parameter on HP-UX.
When you setup Patrol, do they give some tips about system resources ? As Share Memory, Semaphores, ...
First, check the following kernel parameters :
- semmap
- semmni
- semmns
- semvmx
Compare semmns with sar -m and see if semmns is too short. Then increase this parameter. You'll maybe have to increase also semmap, semmni.
Refer to the kernel parameter documentation for that.
In any case, that won't be a problem for your HP9000, simply kernel tables will be full, and software programms may coredump.

PJA.
PJA
Praveen Bezawada
Respected Contributor

Re: semaphores alarm

Hi
You can try in Glance...
the system table report gives information about the number of semaphores being used and the total available,
If the total available is less you can increase the kernel value of
semmns ( total no of semaphores )
semmni ( total semaphore indentifiers, that is maximum sempahores that can be used at any point
of time)

...BPK...
Troyan Krastev
Regular Advisor

Re: semaphores alarm

Hi Jaquet,

These are my parameters:
semmap 66
semmni 64
semmns 200
semvmx 32767
Is sema/s = 0 mean that all semaphores are in use???
Troyan Krastev
Regular Advisor

Re: semaphores alarm

Hi Praveen,

I will install Glance to see what I can find!
Rita C Workman
Honored Contributor

Re: semaphores alarm

To know what your semaphores need to be set at is based on what your process/apps is asking for. In the case of Oracle you would check the ~init.ora file and see what amount of processes it is set at .. then with this information you can 'begin' to calculate and setup your parm values for the semm* parms.
Here are two threads....the first is docs on parms -check out min/max of semms; and the second will give you how to calculate the semm* values.
1.)http://docs.hp.com//hpux/onlinedocs/os/KCparams.OverviewAll.html
2.)http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x10ca6af52b04d5118fef0090279cd0f9,00.html

Now here's one last tip. It may not be applicable in your apps, you'll have to determine. Some folks forget that some apps also use alot of message queues msg* so if your apps use this then you need to address how you set these parms as well.

Just a thought,
Rita
Troyan Krastev
Regular Advisor

Re: semaphores alarm

Thanks all for the information. I will investigate the problem.

Troyan.
JACQUET
Frequent Advisor

Re: semaphores alarm

sema/s tells how many semop() system call (semaphore operation) happen in one second.
So, if sema/s=0, that means that no semop() system call happen, not that semaphore table (semmns) is full.
I could suggest to put semmns=600
and semmni=300, and try with those values.
(semmap is semmni + 2 and would be automatically changed if you kept the default value for calculation)

PJA.
PJA