Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

sem_mni - semaphore

SOLVED
Go to solution
OFC_EDM
Respected Contributor

sem_mni - semaphore

Hi,
I've searched the forum and can't find an answer.

The question is how can I determine what will be the impact of increasing the number of semaphores (sem_mni) on a Tru64 server ( V5.1 )?

I know the current sem_mni value is 32...we had just recently updated that from 16. The ongoing issue is that the Openview agent can't run because of a lack of semaphores.

I'm planning on doubling the number of semaphores to 64. But I don't have a sound reason for picking that number. So I have a secondary question....what's the best approach to determining a proper value for sem_mni?

Cheers
The Devil is in the detail.
4 REPLIES
Rob Leadbeater
Honored Contributor
Solution

Re: sem_mni - semaphore

Hi Kevin,

I don't know what sort of value you should be picking, but a quick look at the man page for sys_attrs_ipc suggests that you might want to be looking at sem_msl as well as sem_mni.


sem_msl
Maximum number of System V semaphores that can be used by a single process at one time.

Default value: 25 (semaphores)
Minimum value: 0
Maximum value: INT_MAX

Hope this helps,

Regards,

Rob
Vladimir Fabecic
Honored Contributor

Re: sem_mni - semaphore

What's the best approach to determining a proper value for sem_mni?
Read documentation of application you are going to run on that system, that is the best way.
So take a look at Openview client docs and set the parameters.
Do not worry, if you make the value bigger, nothing bad will happen.
In vino veritas, in VMS cluster
Ivan Ferreira
Honored Contributor

Re: sem_mni - semaphore

Increasing the number of semaphores won't harm, for example, in our database servers we have:

sem_mni = 1024

By oracle recomendation.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
OFC_EDM
Respected Contributor

Re: sem_mni - semaphore

Thanks!
The Devil is in the detail.