- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: mutex for multiprocess synchronization
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
Discussions
Discussions
Forums
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
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
тАО06-17-2008 08:44 AM
тАО06-17-2008 08:44 AM
mutex for multiprocess synchronization
May I know what is the fastest mutex (or RW Lock) for multiprocess synchronization on Itanium2?
Thanks,
YE LIU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2008 09:32 AM
тАО06-17-2008 09:32 AM
Re: mutex for multiprocess synchronization
Typically more than adequate is just using the OpenVMS Lock Manager (SYS$ENQ())
Some folks even use a record in an indexed file.
What are the detailed requirenments?
How many handof per second expected?
Any data to convey during the handof?
What level of process crash protection?
User code, or kernel code?
Hope this helps some,
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2008 09:37 AM
тАО06-17-2008 09:37 AM
Re: mutex for multiprocess synchronization
Thanks,
YE LIU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2008 09:50 AM
тАО06-17-2008 09:50 AM
Re: mutex for multiprocess synchronization
Clearly you have MUCH more information to share. Please don't 'waste' our time making us guess and speculate. Provide some numbers, some code in an attachment, explain what has been tried, Explain what 'much longer' means in your universe, explain the observation tools used thusfar.
Note, this problem may well be beyond the scope of a helpful attempt here. Depending on you time and resources you may want to consider professional support for this challenge. There are several folks out there, and even withing the readership of this forum, which are qualified the help with these kind of jobs.
Best of luck,
Hein van den Heuvel ( at gmail dot com )
HvdH Performance Consulting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2008 09:56 AM
тАО06-17-2008 09:56 AM
Re: mutex for multiprocess synchronization
-- Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2008 11:12 AM
тАО06-17-2008 11:12 AM
Re: mutex for multiprocess synchronization
Further, what is technically the fastest approach might be a wildly incorrect solution for the problem as -- by the time the designer and the programmer are done contending with the implications of the technique and with the design and implementation and the debug and the support costs -- the solution can be more expensive than using a solution that implements the requisite features.
For instance, cluster-wide shared RMS files (with global buffers enabled) can be the best available solution for shared storage. Even though shared memory is faster, and other synchronization techniques seem preferable. By the time you get done dealing with all of what RMS deals with on your behalf, you can end up with a big and hairy code-base that you now have to maintain and upgrade.
If you want to maintain your own versions of spinlocks, the distributed lock manager, RMS cluster-aware processing and/or other such synchronization tools, have at. It can be a career, even once you get the debugging and the race conditions solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2008 06:21 PM
тАО06-17-2008 06:21 PM
Re: mutex for multiprocess synchronization
In terms of code path, Hein's suggestion of spinlocks is certainly the fastest, BUT if the code will ever execute on a uniprocessor system, you have to add priority equalisation (to prevent starvation), which will slow things down. Assuming the syncronisation points are sparse, with low contention and short critical regions, then spinlocks will probably give best performance with least overhead. However, if you have a high contention and/or long critical regions, spinlocks will generate lots of MPSYNCH like activity spinning for a lock, in which case you're probably better off using cluster wide locks.
From an application perspective, the best thing you can do is design an API which describes your "ideal" synchronization primitives. Write your application in terms of those primitives. You can then implement the API using any mix of the underlying mechanisms provided by OpenVMS, and, if necessary, change the mechanism without having to change the application. This also provides you with a mechanism to easily compare different mechanisms, and to port the application logic to other platforms which provide different mechanisms or different performance balances (like Alpha - Itanium).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 07:20 AM
тАО06-18-2008 07:20 AM
Re: mutex for multiprocess synchronization
YE LIU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 07:22 AM
тАО06-18-2008 07:22 AM
Re: mutex for multiprocess synchronization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2008 07:55 AM
тАО06-18-2008 07:55 AM
Re: mutex for multiprocess synchronization
please review
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
for the way to say "Thank you" here.
Proost.
Have one on me.
jpe