<?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: Default process priority &amp;amp; clearing queues in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706399#M100477</link>
    <description>Example to delete all entries in a queue&lt;BR /&gt;$ GOTO START&lt;BR /&gt;$!--------------------------------------------------------------------------&lt;BR /&gt;$!&lt;BR /&gt;$!      NAME            : SYS_COM:delete_entries.com&lt;BR /&gt;$!      AUTHOR          : Toine&lt;BR /&gt;$!      DATE            : 04-sep-2004&lt;BR /&gt;$!      VERSION         : 1.0&lt;BR /&gt;$!      DESCRIPTION     : Delete all entries in a queue&lt;BR /&gt;$!&lt;BR /&gt;$!&lt;BR /&gt;$!--------------------------------------------------------------------------&lt;BR /&gt;$ START:&lt;BR /&gt;$!&lt;BR /&gt;$ if p1 .eqs. "" then inquire p1 "Give name of queue"&lt;BR /&gt;$ if p1 .eqs. "" then exit&lt;BR /&gt;$ temp = f$getqui("cancel_operation")&lt;BR /&gt;$queue_loop:&lt;BR /&gt;$ queue_name := 'f$getqui("display_queue","queue_name",p1,"wildcard")&lt;BR /&gt;$ if queue_name .eqs. "" then exit&lt;BR /&gt;$ set noon&lt;BR /&gt;$!&lt;BR /&gt;$! Delete aborting jobs&lt;BR /&gt;$!&lt;BR /&gt;$ stop/queu/reset 'queue_name&lt;BR /&gt;$!&lt;BR /&gt;$! Delete all entries&lt;BR /&gt;$!&lt;BR /&gt;$job_loop:&lt;BR /&gt;$ job_name := 'f$getqui("display_job","job_name",,"all_jobs")&lt;BR /&gt;$ if job_name .eqs. "" then goto end_loop&lt;BR /&gt;$ job_entry := 'f$getqui("display_job","entry_number",,"all_jobs,freeze_context")&lt;BR /&gt;$ write sys$output queue_name," ",job_name," ",job_entry&lt;BR /&gt;$ delete/entry='job_entry'&lt;BR /&gt;$ goto job_loop&lt;BR /&gt;$!&lt;BR /&gt;$ end_loop:&lt;BR /&gt;$!&lt;BR /&gt;$! Start queue&lt;BR /&gt;$!&lt;BR /&gt;$ start/queu 'queue_name&lt;BR /&gt;$!&lt;BR /&gt;$! Show queue and jobs&lt;BR /&gt;$!&lt;BR /&gt;$ sho queue 'queue_name&lt;BR /&gt;$ set on&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Oct 2010 18:53:56 GMT</pubDate>
    <dc:creator>Toine_1</dc:creator>
    <dc:date>2010-10-28T18:53:56Z</dc:date>
    <item>
      <title>Default process priority &amp; clearing queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706396#M100474</link>
      <description>Two questions:&lt;BR /&gt;&lt;BR /&gt;1) I have a process that had been hogging the CPU and I lowered its priority to resolve the issue. However, anytime the server is rebooted it returns to its old priority and clogs up the CPU again. How do I make it so that the priority will be the lower value even after the server is rebooted?&lt;BR /&gt;&lt;BR /&gt;2) If a queue has thousands of jobs in it that you want to get rid of, is there any way to delete all entries without deleting the queue, and without manually punching in every single entry number in a delete/entry= command?</description>
      <pubDate>Thu, 28 Oct 2010 17:17:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706396#M100474</guid>
      <dc:creator>blaked97</dc:creator>
      <dc:date>2010-10-28T17:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Default process priority &amp; clearing queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706397#M100475</link>
      <description>&lt;!--!*#--&gt;&amp;gt; 1) [...]&lt;BR /&gt;&lt;BR /&gt;Who starts this process, how?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 2) [...]&lt;BR /&gt;&lt;BR /&gt;Write a command procedure to do it&lt;BR /&gt;non-manually?  One popular method is to use&lt;BR /&gt;DELETE /QUEUE to destroy the whole thing, and&lt;BR /&gt;then use INITIALIZE /QUEUE to create a new&lt;BR /&gt;(empty) queue.</description>
      <pubDate>Thu, 28 Oct 2010 18:02:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706397#M100475</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-10-28T18:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Default process priority &amp; clearing queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706398#M100476</link>
      <description>1) The process is automatically running once the system is started up.</description>
      <pubDate>Thu, 28 Oct 2010 18:28:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706398#M100476</guid>
      <dc:creator>blaked97</dc:creator>
      <dc:date>2010-10-28T18:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Default process priority &amp; clearing queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706399#M100477</link>
      <description>Example to delete all entries in a queue&lt;BR /&gt;$ GOTO START&lt;BR /&gt;$!--------------------------------------------------------------------------&lt;BR /&gt;$!&lt;BR /&gt;$!      NAME            : SYS_COM:delete_entries.com&lt;BR /&gt;$!      AUTHOR          : Toine&lt;BR /&gt;$!      DATE            : 04-sep-2004&lt;BR /&gt;$!      VERSION         : 1.0&lt;BR /&gt;$!      DESCRIPTION     : Delete all entries in a queue&lt;BR /&gt;$!&lt;BR /&gt;$!&lt;BR /&gt;$!--------------------------------------------------------------------------&lt;BR /&gt;$ START:&lt;BR /&gt;$!&lt;BR /&gt;$ if p1 .eqs. "" then inquire p1 "Give name of queue"&lt;BR /&gt;$ if p1 .eqs. "" then exit&lt;BR /&gt;$ temp = f$getqui("cancel_operation")&lt;BR /&gt;$queue_loop:&lt;BR /&gt;$ queue_name := 'f$getqui("display_queue","queue_name",p1,"wildcard")&lt;BR /&gt;$ if queue_name .eqs. "" then exit&lt;BR /&gt;$ set noon&lt;BR /&gt;$!&lt;BR /&gt;$! Delete aborting jobs&lt;BR /&gt;$!&lt;BR /&gt;$ stop/queu/reset 'queue_name&lt;BR /&gt;$!&lt;BR /&gt;$! Delete all entries&lt;BR /&gt;$!&lt;BR /&gt;$job_loop:&lt;BR /&gt;$ job_name := 'f$getqui("display_job","job_name",,"all_jobs")&lt;BR /&gt;$ if job_name .eqs. "" then goto end_loop&lt;BR /&gt;$ job_entry := 'f$getqui("display_job","entry_number",,"all_jobs,freeze_context")&lt;BR /&gt;$ write sys$output queue_name," ",job_name," ",job_entry&lt;BR /&gt;$ delete/entry='job_entry'&lt;BR /&gt;$ goto job_loop&lt;BR /&gt;$!&lt;BR /&gt;$ end_loop:&lt;BR /&gt;$!&lt;BR /&gt;$! Start queue&lt;BR /&gt;$!&lt;BR /&gt;$ start/queu 'queue_name&lt;BR /&gt;$!&lt;BR /&gt;$! Show queue and jobs&lt;BR /&gt;$!&lt;BR /&gt;$ sho queue 'queue_name&lt;BR /&gt;$ set on&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Oct 2010 18:53:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706399#M100477</guid>
      <dc:creator>Toine_1</dc:creator>
      <dc:date>2010-10-28T18:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Default process priority &amp; clearing queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706400#M100478</link>
      <description>Usually a process does not "run automatically" at system boot, it has to be started by some command out of systartup_vms.com (or a command-file executed from there).&lt;BR /&gt;It is started either as a batch job (SUBMIT):&lt;BR /&gt;check the queue priority, eventually lower it (INIT QUEUE/BASE_PRIORITY=x),&lt;BR /&gt;or started as a /DETACHed process: specify the priority in RUN/DETACH/PRIORITY=x .&lt;BR /&gt;&lt;BR /&gt;Clearuing a queue:&lt;BR /&gt;there have been procedures posted here and on c.o.v.&lt;BR /&gt;One I have kept can be downloaded here:&lt;BR /&gt; &lt;A href="http://wwwvms.mpp.mpg.de/vms$common/sysmgr/clear_queue.com" target="_blank"&gt;http://wwwvms.mpp.mpg.de/vms$common/sysmgr/clear_queue.com&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;See e.g. here at ITRC forum:&lt;BR /&gt; &lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=994642" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=994642&lt;/A&gt;</description>
      <pubDate>Thu, 28 Oct 2010 19:10:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706400#M100478</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2010-10-28T19:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Default process priority &amp; clearing queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706401#M100479</link>
      <description>1: &lt;BR /&gt;"shoot first and ask questions later" is seldom a fix for these cases.  Figure out what the process is and what's triggering the loop, or, well, GOTO 1&lt;BR /&gt;&lt;BR /&gt;2: &lt;BR /&gt;$! pick one:&lt;BR /&gt;$! INITIALIZE /QUEUE /BATCH SCRATCH&lt;BR /&gt;$! INITIALIZE /QUEUE /DEVICE SCRATCH&lt;BR /&gt;$&lt;BR /&gt;$ ASSIGN/MERGE SCRATCH queue-to-empty&lt;BR /&gt;$ DELETE/QUEUE SCRATCH&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Oct 2010 19:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706401#M100479</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-10-28T19:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Default process priority &amp; clearing queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706402#M100480</link>
      <description>&lt;!--!*#--&gt;&amp;gt; 1) The process is automatically running&lt;BR /&gt;&amp;gt; once the system is started up.&lt;BR /&gt;&lt;BR /&gt;If it's started by magic, then you're&lt;BR /&gt;probably out of luck.  If some command&lt;BR /&gt;procedure in the system start-up sequence&lt;BR /&gt;starts it, then there may be a way to choose&lt;BR /&gt;its priority.  Given a description with the&lt;BR /&gt;level of detail of "a process", my psychic&lt;BR /&gt;powers are too weak to let me do more than&lt;BR /&gt;guess what you're talking about.</description>
      <pubDate>Thu, 28 Oct 2010 19:44:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706402#M100480</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-10-28T19:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Default process priority &amp; clearing queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706403#M100481</link>
      <description>blaked97,&lt;BR /&gt;&lt;BR /&gt;Welcome to the ITRC OpenVMS Forum.&lt;BR /&gt;&lt;BR /&gt;As has been noted previously, processes do not just "start on their own". That said, I will presume that you meant "I did nothing to manually initiate the process".&lt;BR /&gt;&lt;BR /&gt;The default in most cases is the default priority contained in the account under which the process was started. This is maintained in the UAF file Generally, the primary UAF is SYS$SYSTEM:SYSUAF.DAT; but your actual location may vary due to a system logical name (SYSUAF) or the value of SYSGEN parameter UAFALT. Alternatively, the process priority can be established when the process is created using the RUN command (see HELP RUN PROCESS). Finally, some processes that hold ALTPRI privilege bit may elevate their privileges.&lt;BR /&gt;&lt;BR /&gt;In most cases, the first two choices are the relevant ones. They will require some legwork on the actual system. First check what username is associated with the process (SHOW PROCESS/ACCOUNTING is adequate for this purpose). Change the default priority for this process. A note of caution, if the account is used by more than one process, all will be affected, so this should be done with a fairly high degree of understanding, lest the overall application become unstable.&lt;BR /&gt;&lt;BR /&gt;If the process is being started using the RUN/DETACH, the actual RUN/DETACH command will need to be located, it may include a specified base priority (/PRIORITY), and that will need to be changed.&lt;BR /&gt;&lt;BR /&gt;Lastly, the reason for the "looping behavior" is best determined precisely. Reducing priority is taking an aspirin/acetaminophen tablet, it is only a palliative that masks symptoms, not by any means a cure.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Fri, 29 Oct 2010 07:48:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706403#M100481</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2010-10-29T07:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Default process priority &amp; clearing queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706404#M100482</link>
      <description>All discussions of how to set the priority seem to be premature without knowing what the process is, what program or command procedure it is running, and what it is doing.  If it is a standard VMS process, setting the priority is not the best plan of attack, although it may help initially.&lt;BR /&gt;&lt;BR /&gt;Can you inform us about this process?&lt;BR /&gt;&lt;BR /&gt;Dave Williams&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Oct 2010 11:40:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706404#M100482</guid>
      <dc:creator>tsgdavid</dc:creator>
      <dc:date>2010-10-29T11:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Default process priority &amp; clearing queues</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706405#M100483</link>
      <description>It seems to me that there are 2 issues here:&lt;BR /&gt;&lt;BR /&gt;1) How/why does this process end up at the same priority as interactive users?&lt;BR /&gt;&lt;BR /&gt;2) Why is this process consuming most of the CPU?&lt;BR /&gt;&lt;BR /&gt;Prior entries have addressed how to determine #1 and how to potentially deal with it (lowering priority).  What is just as important is why does the process require so much CPU?  Is this normal?  Has this always been the case?  What changed?  Lowering the priority can be helpful not only to allow other work to proceed, but to give you time to determine whether or not the process is in some type of CPU loop.  Use SDA to capture some PCs and see if the process is actually looping or if it just has a lot of work to do.&lt;BR /&gt;&lt;BR /&gt;As stated before, lowering the priority only hides the problem.  A little investigation should reveal why the CPU time is so high.  Address that and the priority issue goes away.&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Fri, 29 Oct 2010 11:54:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/default-process-priority-amp-clearing-queues/m-p/4706405#M100483</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2010-10-29T11:54:17Z</dc:date>
    </item>
  </channel>
</rss>

