HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- memory mapped semaphores and SG
Operating System - HP-UX
1836581
Members
1733
Online
110102
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-06-2005 06:52 PM
06-06-2005 06:52 PM
memory mapped semaphores and SG
Hi *,
we are using memory mapped semaphores for processes which are running in a ServiceGuard package. The files containing the semaphores are on a disk which is mounted wherever the package runs. During failover of the package the first process is sometimes unable to lock the semaphore although no other process is holding the lock. The msemaphore structures in the file is not corrupted as far as we can see. At least unlocking works if copying the file to another server. Now I'm wondering about following snippet from the msem_lock man page:
to msem_lock() and msem_unlock(), the results are undefined. The
address of an msemaphore uniquely identifies the semaphore. If the
msemaphore structure contains any value copied from an msemaphore
structure at a different address, the result is undefined.
Could this mean that copying or mounting a file
containing a msemaphore is the equivalent of copying it from one memory region to another?
BR
Stefan Hirsch
we are using memory mapped semaphores for processes which are running in a ServiceGuard package. The files containing the semaphores are on a disk which is mounted wherever the package runs. During failover of the package the first process is sometimes unable to lock the semaphore although no other process is holding the lock. The msemaphore structures in the file is not corrupted as far as we can see. At least unlocking works if copying the file to another server. Now I'm wondering about following snippet from the msem_lock man page:
to msem_lock() and msem_unlock(), the results are undefined. The
address of an msemaphore uniquely identifies the semaphore. If the
msemaphore structure contains any value copied from an msemaphore
structure at a different address, the result is undefined.
Could this mean that copying or mounting a file
containing a msemaphore is the equivalent of copying it from one memory region to another?
BR
Stefan Hirsch
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP