<?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: Queue script CPU monitoring in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261936#M100630</link>
    <description>You can go a little further and sort all the processes who uses CPU, by Kernel ticks, Exec ticks, Supervisor ticks, User ticks, User ticks, percentage of a category...&lt;BR /&gt;&lt;BR /&gt;See this Python script&lt;BR /&gt;&lt;A href="http://www.vmspython.org/CPUModesExample" target="_blank"&gt;http://www.vmspython.org/CPUModesExample&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To use it, install Python just for your process (or for everybody) &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://pi-net.dyndns.org/DownloadAndInstallationPython" target="_blank"&gt;http://pi-net.dyndns.org/DownloadAndInstallationPython&lt;/A&gt;</description>
    <pubDate>Tue, 09 Nov 2010 09:30:54 GMT</pubDate>
    <dc:creator>labadie_1</dc:creator>
    <dc:date>2010-11-09T09:30:54Z</dc:date>
    <item>
      <title>Queue script CPU monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261932#M100626</link>
      <description>&lt;BR /&gt;Hello all,&lt;BR /&gt;I already know the following command:&lt;BR /&gt;MON PROC /TOPCPU&lt;BR /&gt;to monitoring the TOP processes.&lt;BR /&gt;&lt;BR /&gt;Is there a way to monitoring a specific script in the queue?&lt;BR /&gt;My goal is to know how many CPU resources get a specific "homemade" script during its execution (every "x" minutes)&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Nov 2010 18:16:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261932#M100626</guid>
      <dc:creator>smsc_1</dc:creator>
      <dc:date>2010-11-08T18:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Queue script CPU monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261933#M100627</link>
      <description>You can do this using home grown tools, but I'm not sure what the value would be.  Generally, VMS does pre-emptive scheduling which means that a process will use up to a quantum of CPU at a time unless another higher prioriry job interrupts it or it does an I/O.  Perhaps rather than trying to monitor indicuidual CPU consumption. we should concentrate on understanding the problem you are really trying to solve.  CAn you define more clearly what the problem is?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Dan</description>
      <pubDate>Mon, 08 Nov 2010 18:34:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261933#M100627</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2010-11-08T18:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Queue script CPU monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261934#M100628</link>
      <description>To monitor a process while it's running&lt;BR /&gt;&lt;BR /&gt;$ SHOW PROCESS/ACCOUNTING/ID=pid&lt;BR /&gt;&lt;BR /&gt;gives an instantaneous snapshot of the process. Add /QUOTA for the state of quota consumption.&lt;BR /&gt;&lt;BR /&gt;For the same information automatically updated, like MONITOR: &lt;BR /&gt;&lt;BR /&gt;$ SHOW PROCESS/CONTINUOUS/ID=pid&lt;BR /&gt;&lt;BR /&gt;Hit "Q" to see quota usage or "V" to see a virtual memory map (restructed to very low P0 space, expand your terminal rows and columns to maximise). Space bar returns you to the main screen. ^Z to exit.&lt;BR /&gt;&lt;BR /&gt;If by "specific script in the queue" you mean "Batch Job" then at the end of the log file you'll see accounting information for the job, but, of course, only after the job completes.&lt;BR /&gt;&lt;BR /&gt;"during its execution (every "x" minutes)"&lt;BR /&gt;&lt;BR /&gt;If you want to run a procedure to collect data about the execution of a process over time, see the lexical function F$GETJPI. It returns information about the process, given a PID. For example:&lt;BR /&gt;&lt;BR /&gt;$ cpu=F$GETJPI(pid,"CPUTIM")&lt;BR /&gt;&lt;BR /&gt;returns the elapsed CPU time in hundredths of a second. The lexical function can only return a single datum at a time. To gather more information, write a program and use the corresponding system service SYS$GETJPI, which can return a block of data items.</description>
      <pubDate>Mon, 08 Nov 2010 20:43:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261934#M100628</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-11-08T20:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Queue script CPU monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261935#M100629</link>
      <description>&lt;BR /&gt;Thanks to reply, both.&lt;BR /&gt;As already said, I have no problem on the system, just I need to know if the script I made got a huge resource during its execution (every 5 minutes) causing problem to the other applications running on the system.&lt;BR /&gt;&lt;BR /&gt;So, to be sure I'm asking if there's a way to monitoring the script behavior! &lt;BR /&gt;&lt;BR /&gt;Btw, I think the commands procided by John Gillings is enough to do that.&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Lucas</description>
      <pubDate>Tue, 09 Nov 2010 08:42:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261935#M100629</guid>
      <dc:creator>smsc_1</dc:creator>
      <dc:date>2010-11-09T08:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Queue script CPU monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261936#M100630</link>
      <description>You can go a little further and sort all the processes who uses CPU, by Kernel ticks, Exec ticks, Supervisor ticks, User ticks, User ticks, percentage of a category...&lt;BR /&gt;&lt;BR /&gt;See this Python script&lt;BR /&gt;&lt;A href="http://www.vmspython.org/CPUModesExample" target="_blank"&gt;http://www.vmspython.org/CPUModesExample&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To use it, install Python just for your process (or for everybody) &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://pi-net.dyndns.org/DownloadAndInstallationPython" target="_blank"&gt;http://pi-net.dyndns.org/DownloadAndInstallationPython&lt;/A&gt;</description>
      <pubDate>Tue, 09 Nov 2010 09:30:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261936#M100630</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2010-11-09T09:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Queue script CPU monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261937#M100631</link>
      <description>&lt;!--!*#--&gt;Lucas, perhaps LOGOUT/FULL added to the end of the script is what you need :-&lt;BR /&gt;&lt;BR /&gt;LOGOUT&lt;BR /&gt;&lt;BR /&gt;  /FULL&lt;BR /&gt;&lt;BR /&gt;     Requests the long form of the logout message. When you specify&lt;BR /&gt;     the /FULL qualifier, the command interpreter displays a summary&lt;BR /&gt;     of accounting information for the terminal session. The default&lt;BR /&gt;     qualifier for a batch job is /FULL.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This should display something like :-&lt;BR /&gt;&lt;BR /&gt;â  â    Accounting information:&lt;BR /&gt;  Buffered I/O count:                831      Peak working set size:      17648&lt;BR /&gt;  Direct I/O count:                  985      Peak virtual size:         188576&lt;BR /&gt;  Page faults:                      1778      Mounted volumes:                0&lt;BR /&gt;  Charged CPU time:        0 00:00:00.45      Elapsed time:       0 00:00:01.39&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Nov 2010 09:34:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261937#M100631</guid>
      <dc:creator>Robert Atkinson</dc:creator>
      <dc:date>2010-11-09T09:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Queue script CPU monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261938#M100632</link>
      <description>Lucas,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;just I need to know if the script I made got a huge resource during its execution (every 5 minutes) causing problem to the other applications running on the system.&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;VMS has an excellent an simple means to avoid such problems.&lt;BR /&gt;&lt;BR /&gt;As the first statement in your job,&lt;BR /&gt;&lt;BR /&gt;$ SET PROCESS/PRIO=0&lt;BR /&gt;&lt;BR /&gt;From there on, this process _ONLY_ uses system resources if _NO_ other process requires them, and gets shoved aside IMMEDIATELY if ANY other process gets somehow activated (well, strictly speaking, it still competes with any other process also at prio 0, but that should not be any problem neither. Another nuance to resource use: any IO started by this process will proceed independant).&lt;BR /&gt;&lt;BR /&gt;Effectively, you will have created something to do for the NULL process.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Tue, 09 Nov 2010 10:22:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261938#M100632</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2010-11-09T10:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Queue script CPU monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261939#M100633</link>
      <description>Lucas,&lt;BR /&gt;&lt;BR /&gt;from your Forum Profile:&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;I have assigned points to 30 of 81  responses to my questions.&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Maybe you can find some time to do some assigning?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.&lt;BR /&gt;Consider, that every poster took at least the trouble of posting for you!&lt;BR /&gt;&lt;BR /&gt;To easily find your streams with unassigned points, click your own name somewhere.&lt;BR /&gt;This will bring up your profile.&lt;BR /&gt;Near the bottom of that page, under the caption "My Question(s)" you will find "questions or topics with unassigned points " Clicking that will give all, and only, your questions that still have unassigned postings.&lt;BR /&gt;If you have closed some of those streams, you must "Reopen" them to "Submit points". (After which you can "Close" again)&lt;BR /&gt;&lt;BR /&gt;Do not forget to explicitly activate "Submit points", or your effort gets lost again!!&lt;BR /&gt;&lt;BR /&gt;Thanks on behalf of your Forum colleagues.&lt;BR /&gt;&lt;BR /&gt;PS. - nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before - please do not take offence - none is intended!&lt;BR /&gt;&lt;BR /&gt;PPS. - Zero points for this.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Tue, 09 Nov 2010 10:25:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261939#M100633</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2010-11-09T10:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Queue script CPU monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261940#M100634</link>
      <description>&lt;BR /&gt;Thanks all for responses,&lt;BR /&gt;and Jan, I always leave points, but I think the goal is leave point only on usefull post. Normally I omit post with comments (btw, are always welcome!) ;-)&lt;BR /&gt;&lt;BR /&gt;Points left, thread closed! ;)</description>
      <pubDate>Wed, 10 Nov 2010 16:44:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261940#M100634</guid>
      <dc:creator>smsc_1</dc:creator>
      <dc:date>2010-11-10T16:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Queue script CPU monitoring</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261941#M100635</link>
      <description>Closed!</description>
      <pubDate>Wed, 10 Nov 2010 16:44:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/queue-script-cpu-monitoring/m-p/5261941#M100635</guid>
      <dc:creator>smsc_1</dc:creator>
      <dc:date>2010-11-10T16:44:54Z</dc:date>
    </item>
  </channel>
</rss>

