- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Semaphores
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
12-18-2003 06:04 AM
12-18-2003 06:04 AM
Question:
Is there a way to find out how many semaphores an id is using?
Is there a limit or max value for semaphores a system can have? All replies are appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 06:08 AM
12-18-2003 06:08 AM
Re: Semaphores
semmap
semmni
semmns
semmnu
semmsl
and possibly others. I think semmni is the one you're interested in.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 06:12 AM
12-18-2003 06:12 AM
Re: Semaphores
ipcs -q -->message queue
ipcs -m -->shared memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 06:14 AM
12-18-2003 06:14 AM
Re: Semaphores
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 06:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 06:20 AM
12-18-2003 06:20 AM
Re: Semaphores
semaem -> Max Value for Adjust on Exit Semaphore
semmap -> Max number of semaphore map entries
semmni -> Number of semaphore identifiers
semmns -> Max Number of semaphores
semmnu -> Number of semaphores undo structures
semmsl -> Max number of semaphores per ID
semume -> Semaphore Undo Entries per process
semvmx -> Semaphore max value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 06:39 AM
12-18-2003 06:39 AM
Re: Semaphores
The values that are of concern to you are:
semmni - maximum # of system-wide shmid's
semmns - maximum # of system-wide sema4's
semmsl - maximum # of sema4's associated with any single shmid.
If you are having problems with sema4's, you should capture the exit status ,${?}, (hopefully, the programmer was a disciplined individual and return errno as the exit status) and then compare that value to the possible errno values in the semget, semctl, and semop man pages.