- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- IPC Semaphores
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 04:13 AM
09-11-2001 04:13 AM
What are the indications when the IPC Semaphores are way too high?
-ragnar-
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 04:33 AM
09-11-2001 04:33 AM
SolutionSemaphores are typically incremented by a process to block other
processes while it is performing a critical operation or using a shared
resource. When finished, it decrements the value, allowing blocked
processes to then access the resource. Semaphores can be configured as
binary semaphores which have only two values: 0 and 1, or they can
serve as general semaphores (or counters) where one process increments
the semaphore and one or more cooperating processes decrement it. To
prevent undetectable overflow conditions, the kernel imposes a maximum
value limit beyond which semaphores cannot be incremented. This limit,
defined by the semvmx kernel parameter, must not exceed the maximum
value of an unsigned integer (65 535). Semaphores are not allowed to
have negative (less than zero) values.
you can also see info about the kernel params
in this site :
http://docs.hp.com//hpux/onlinedocs/os/KCparams.OverviewAll.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 04:35 AM
09-11-2001 04:35 AM
Re: IPC Semaphores
Maybe the attached description of IPC semaphores kernel parameters will be helpful.
Later,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 04:45 AM
09-11-2001 04:45 AM
Re: IPC Semaphores
Semaphores are syncronizing mechanism by which we can ensure that a certain amount of process ( one or more, it depends ) are using a resource.
Initial test of a semaphore Guarding a resource is, if the semaphore counter is positif ?
If yes, the process can get into that resource
If Not, it will wait till the value of the semaphore counter will be positif and then the system will awake up that process to evaluate the value and goes into that resource.
Once that semaphore counter value is positif,
a process is able to go into that resource to execute the critical section guarded by the semaphore, the semaphore counter will be decremented to ensuree that all other request for that critical section will be scheduled in a waiting list till each individual process is finish with that resource ( Binary semaphore ).
Other kind of semaphore is fixing the max concurrent process with one resource.
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 06:27 AM
09-11-2001 06:27 AM
Re: IPC Semaphores
Straight answer to your question-
I have never seen Operating System directly reporting problems about Semaphores or Message Queues. I treat them as being completely controlled by the application than the system itself. We can only set the values of how they can be used. It is all upto the application how it manages the communication within it's processes.
If the values (mainly semmns and semmni) are too high, application will definitely report about them or we can check them using sar -m command.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 09:00 AM
09-11-2001 09:00 AM
Re: IPC Semaphores
ipcs command can help you in tracking
the usage/current allocation of semaphore
values. check man of ipcs for options.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2001 09:12 AM
09-11-2001 09:12 AM
Re: IPC Semaphores
except for a non-booting kernel (for its size, possibly) I
do not know any reason for problems caused by having
too many semaphores (kernel parameter SEMMNS)!
You would just be wasting a little bit of RAM...
Just my ?0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2001 11:17 PM
09-13-2001 11:17 PM
Re: IPC Semaphores
Background - I have a db-server with 4 instances. Weekly full backup with instances stopped is OK, but incrementel daily back with hot instances was cancelled by the CA ASO agent because it failed to get semaphore (no space left on device).
I have worked around this problem by reducing number of processess dedicated in the init.ora file. (I'am not sure my dbadm is too happy, but everything seems OK!)
Since 2 of you have given me some reading material, I am now going to the studying-mode.
Thank you all!