<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MWAIT a process for testing in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789903#M76489</link>
    <description>Fetch Nick de Smith's MWAIT package from &lt;A href="http://vms.process.com/scripts/fileserv/fileserv.com?MWAIT." target="_blank"&gt;http://vms.process.com/scripts/fileserv/fileserv.com?MWAIT.&lt;/A&gt; He's generously provided several test programs that create a variety of MWAIT conditions.</description>
    <pubDate>Wed, 17 May 2006 13:00:29 GMT</pubDate>
    <dc:creator>Jim_McKinney</dc:creator>
    <dc:date>2006-05-17T13:00:29Z</dc:date>
    <item>
      <title>MWAIT a process for testing</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789901#M76487</link>
      <description>I am working on a monitor for processes in MWAIT and to test it I need to force a process to stay in MWAIT. Any idea how to do this?</description>
      <pubDate>Wed, 17 May 2006 11:59:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789901#M76487</guid>
      <dc:creator>Chuck Smith_5</dc:creator>
      <dc:date>2006-05-17T11:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: MWAIT a process for testing</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789902#M76488</link>
      <description>First, just to be clear, MWAIT is a VMS scheduling state that encompasses several system states including MUTEX and all the various RW* (resource wait) states.&lt;BR /&gt;&lt;BR /&gt;The SHOW SYSTEM command will display the underlying system state for MWAIT processes.&lt;BR /&gt;even though F$GETJPI(pid,"STATE") will return "MWAIT".  SHOW PROCESS for a MWAIT process returns the misleading error:&lt;BR /&gt;%SYSTEM-F-SUSPENDED, process is suspended&lt;BR /&gt;even though suspended is a completely different scheduling statae.&lt;BR /&gt;&lt;BR /&gt;But to answer your question: The easiest MWAIT state to get a process into is probably the RWMBX state.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Wed, 17 May 2006 12:41:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789902#M76488</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2006-05-17T12:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: MWAIT a process for testing</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789903#M76489</link>
      <description>Fetch Nick de Smith's MWAIT package from &lt;A href="http://vms.process.com/scripts/fileserv/fileserv.com?MWAIT." target="_blank"&gt;http://vms.process.com/scripts/fileserv/fileserv.com?MWAIT.&lt;/A&gt; He's generously provided several test programs that create a variety of MWAIT conditions.</description>
      <pubDate>Wed, 17 May 2006 13:00:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789903#M76489</guid>
      <dc:creator>Jim_McKinney</dc:creator>
      <dc:date>2006-05-17T13:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: MWAIT a process for testing</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789904#M76490</link>
      <description>Instead of writing your own monitor consider using Availability Manager or AMDS. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/openvms/products/availman/index.html" target="_blank"&gt;http://h71000.www7.hp.com/openvms/products/availman/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Not only will this detect processes in various resource wait conditions it can also fix them by adjusting quotas :-)</description>
      <pubDate>Wed, 17 May 2006 13:22:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789904#M76490</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-05-17T13:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: MWAIT a process for testing</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789905#M76491</link>
      <description>Many thanks to all who replied. I am not writing my own monitor, I am testing SENSys from TECSys. I know that SENSys will catch processes in MWAIT but I made an slight change to how it notifies on an MWAIT and do not want to wait for a user to help me with my testing. :)</description>
      <pubDate>Wed, 17 May 2006 14:59:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789905#M76491</guid>
      <dc:creator>Chuck Smith_5</dc:creator>
      <dc:date>2006-05-17T14:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: MWAIT a process for testing</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789906#M76492</link>
      <description>Chuck,&lt;BR /&gt;&lt;BR /&gt;  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. &lt;BR /&gt;&lt;BR /&gt;  This particular MWAIT is fairly safe as you can easily STOP the process.</description>
      <pubDate>Wed, 17 May 2006 18:56:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789906#M76492</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-05-17T18:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: MWAIT a process for testing</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789907#M76493</link>
      <description>Don't agree with Ian. What you write yopurself, you have under control.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;I have such mechanisms and exceptions ony many alarms.&lt;BR /&gt;&lt;BR /&gt;Btw : my alarms stay when the problem is gone. Just don't want any alarms that are not true.&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 May 2006 01:15:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789907#M76493</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-05-18T01:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: MWAIT a process for testing</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789908#M76494</link>
      <description>with Availability manager you can set how often a particular condition has to be seen before it is reported and how important it is.&lt;BR /&gt;&lt;BR /&gt;However there are many ways to do the same thing so people use the one that best suits their requirements.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 May 2006 02:31:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mwait-a-process-for-testing/m-p/3789908#M76494</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-05-18T02:31:24Z</dc:date>
    </item>
  </channel>
</rss>

