- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: MWAIT a process for testing
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
тАО05-17-2006 04:59 AM
тАО05-17-2006 04:59 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2006 05:41 AM
тАО05-17-2006 05:41 AM
SolutionThe SHOW SYSTEM command will display the underlying system state for MWAIT processes.
even though F$GETJPI(pid,"STATE") will return "MWAIT". SHOW PROCESS for a MWAIT process returns the misleading error:
%SYSTEM-F-SUSPENDED, process is suspended
even though suspended is a completely different scheduling statae.
But to answer your question: The easiest MWAIT state to get a process into is probably the RWMBX state.
Create a test mailbox specifying a fairly small BUFQUO. This is easy to do with a quick program that calls SYS$CREMBX, or you can use the freeware MBU package.
Fill the mailbox up by COPYing a file into it from one process. That process will hang in LEF state. Then from a second process just use DCL to OPEN TEST TESTMBX: and WRITE TEST "string". Before you can ask "Why didn't they just use LEF instead of RWMBX?", BAM, you're in a MWAIT state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2006 06:00 AM
тАО05-17-2006 06:00 AM
Re: MWAIT a process for testing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2006 06:22 AM
тАО05-17-2006 06:22 AM
Re: MWAIT a process for testing
http://h71000.www7.hp.com/openvms/products/availman/index.html
Not only will this detect processes in various resource wait conditions it can also fix them by adjusting quotas :-)
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2006 07:59 AM
тАО05-17-2006 07:59 AM
Re: MWAIT a process for testing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2006 11:56 AM
тАО05-17-2006 11:56 AM
Re: MWAIT a process for testing
I've attached a MACRO32 program which posts TQEs in an infinite loop, this will rapidly put the process into a MUTEX wait state - as soon as you reach TQELM. It will briefly drop out of MUTEX every second, as one of the TQEs expires and the next is posted.
This particular MWAIT is fairly safe as you can easily STOP the process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2006 06:15 PM
тАО05-17-2006 06:15 PM
Re: MWAIT a process for testing
I wrote monitoring of MWAIT processes too. There are situations were this is normal (stock exchange applic with heavy mailbox usage). I have to see mwait 50 times every 5 seconds before I create an alarm.
I have such mechanisms and exceptions ony many alarms.
Btw : my alarms stay when the problem is gone. Just don't want any alarms that are not true.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2006 07:31 PM
тАО05-17-2006 07:31 PM
Re: MWAIT a process for testing
However there are many ways to do the same thing so people use the one that best suits their requirements.
Purely Personal Opinion