- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Semaphore
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
01-20-2006 12:02 PM
01-20-2006 12:02 PM
Semaphore
1) What is semaphore and the usage?
2) What is the guideline to configure semaphore?
3) How to check current semaphore setting and how to configure?
My HP-UX system is 11.0 and 11i.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2006 12:26 PM
01-20-2006 12:26 PM
Re: Semaphore
The word "semaphore" derives from the Greek word for "flag" or "signal". As such, it is a variable used to control access to some common resource: a file; a piece of shared memory, etc.
A semaphore holds a zero or positive count that denotes the number of a resource that is available. One speaks of "P" and "V" operations to "dePlete" and "reVive" the count. Semaphores implement "locks" to resources.
A "P" operation decrements a resource count. If the count is zero, the process attempting to do the operation is suspended (waits). A "V" operation increments the semaphore count, allowing another waiting process to resume execution. A binary semaphore (i.e one with states (counts) of only 0 and 1) implements a simple "lock" to a resource.
Semaphores form the basis for any multi-threading environement. Without them, it would be a city without traffic lights!
The Tunable Kernel Parameters guide provides additional information and details the various kernel parameters; their values; and the effects of lowering or raising their values:
http://www.docs.hp.com/en/TKP-90202/index.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2006 12:34 PM
01-20-2006 12:34 PM
Re: Semaphore
Sorry, I forgot to comment on the third question.
You can use 'kmtune' to interrogate the current settings of kernel parameters. See its manpages for more information.
SAM is an easy way to tune the kernel.
You can see some of the values too with 'glance' (in the system tables report) and with 'sar -m'. Again, consult the manpages for more information, or for glance, its builtin help.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2006 12:54 PM
01-20-2006 12:54 PM
Re: Semaphore
Thanks for your reply.
Any doc that explain each option and parameters that under SAM (such as kernel configuration -> configurable paramaters)?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2006 01:50 PM
01-20-2006 01:50 PM
Re: Semaphore
Here is a doc that will be helpful for viewing and setting the tuneable kernel parameters: http://docs.hp.com/en/TKP-90203/index.html
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2006 02:08 PM
01-20-2006 02:08 PM
Re: Semaphore
Is there any single doc that explains all the options as shown below in SAM?
SAM Accounts for Users and Groups
SAM Auditing and Security
SAM Backup and Recovery
SAM Disks and File Systems
SAM Display
SAM Kernel Configuration
SAM Networking and Communications
SAM Performance Monitors
SAM Peripheral Devices
SAM Printers and Plotters
SAM Process Management
Other Resource Management
SAM Routine Tasks
SAM Run SAM on Remote Systems
SD-UX Software Management
SAM Time
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2006 08:52 AM
01-21-2006 08:52 AM
Re: Semaphore
You asked about a document that explains the various SAM sections and their contents.
One starting place is :
http://www.docs.hp.com/en/B2355-60127/sam.1M.html
SAM has builtin help too. As noted in the above manpages, "Help menus describe how to use SAM and perform the various management tasks. Press the F1 function key for help on a currently highlighted field and for more information not covered in this manpage. "
Regards!
...JRF...