<?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: Process Uptime in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235559#M90528</link>
    <description>&lt;BR /&gt;Jess, thanks for your utility.&lt;BR /&gt;But i got some problem to use it.&lt;BR /&gt;&lt;BR /&gt;%DCL-W-ACTIMAGE, error activating image SYS$LOGIN:SSYS.EXE&lt;BR /&gt;-CLI-E-IMGNAME, image file DSA0:[SMSC]ssys.exe;1&lt;BR /&gt;-IMGACT-F-NOT_I64, image is not an HP OpenVMS Industry Standard 64 image&lt;BR /&gt;&lt;BR /&gt;I'm running OpenVMS V8.3-1H1 on HP rx2660  (1.59GHz/6.0MB)&lt;BR /&gt;&lt;BR /&gt;May I recompile it?? However I don't know how! :(&lt;BR /&gt;</description>
    <pubDate>Fri, 18 Jul 2008 07:30:54 GMT</pubDate>
    <dc:creator>smsc_1</dc:creator>
    <dc:date>2008-07-18T07:30:54Z</dc:date>
    <item>
      <title>Process Uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235554#M90523</link>
      <description>Hi all,&lt;BR /&gt;is there a way to check the process uptime?&lt;BR /&gt;&lt;BR /&gt;With "Show System" command I'll see only CPU time, but not the up time of the single process.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 17 Jul 2008 07:11:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235554#M90523</guid>
      <dc:creator>smsc_1</dc:creator>
      <dc:date>2008-07-17T07:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Process Uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235555#M90524</link>
      <description>$ SHOW PROC/ACC/ID=&lt;PID-OF-PROCESS&gt; will show you the 'Connect time:'. This is the process uptime.&lt;BR /&gt;&lt;BR /&gt;$ WRITE SYS$OUTPUT F$GETJPI("&lt;PID-OF-PROCESS&gt;","LOGINTIM")&lt;BR /&gt;&lt;BR /&gt;will show you the process creation time. You can easily calcuate the uptime with F$DELTA_TIME, if you're running on a recent version of OpenVMS.&lt;BR /&gt;&lt;BR /&gt;$ write sys$output f$delta_time(f$getjpi("","LOGINTIM"),F$CVTIME(,"ABSOLUTE"))&lt;BR /&gt;&lt;BR /&gt;Volker.&lt;/PID-OF-PROCESS&gt;&lt;/PID-OF-PROCESS&gt;</description>
      <pubDate>Thu, 17 Jul 2008 07:39:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235555#M90524</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2008-07-17T07:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Process Uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235556#M90525</link>
      <description>&lt;BR /&gt;volker, you are the man! :)&lt;BR /&gt;SHOW PROC/ACC/ID=20230756 works fine!&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jul 2008 07:51:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235556#M90525</guid>
      <dc:creator>smsc_1</dc:creator>
      <dc:date>2008-07-17T07:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Process Uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235557#M90526</link>
      <description>You didn't ask this, but sometimes is it useful to know how long an image has been running.  This only works if image accounting is enabled, and there is no $getjpi access to the info, so you will need SDA or a privileged program to get the information.&lt;BR /&gt;&lt;BR /&gt;$! with appropriate privs&lt;BR /&gt;$ analyze/system&lt;BR /&gt;SDA&amp;gt; set process/id=&lt;PID&gt; ! the target PID&lt;BR /&gt;SDA&amp;gt; examine/time ctl$gq_istart&lt;BR /&gt;&lt;BR /&gt;There are also CTL$Gx_I* cells that have snapshot values of the CPU time, DirIO, BufIO, etc. at the time the image started.  When the image accounting record is written, the delta values are what is written.  In other words, CTL$GL_ICPUTIM contains the process CPU time when the image was activated; it doesn't get updated by the HWCLK interrupt.  I am not sure about the workingset peak CTL$GL_IWSPEAK, as it isn't obvious to me how a snapshot at image activation time would be meaningful to the image, but the working set size changes much less frequently than the CPU time, so I would guess that both process and image peaks are maintained when the workingset is increased.&lt;BR /&gt;&lt;BR /&gt;These are some of the image accounting related cells in the process control region.&lt;BR /&gt;&lt;BR /&gt;CTL$GQ_ISTART&lt;BR /&gt;CTL$GL_IBIOCNT&lt;BR /&gt;CTL$GL_ICPUTIM&lt;BR /&gt;CTL$GL_IDIOCNT&lt;BR /&gt;CTL$GL_IFAULTIO&lt;BR /&gt;CTL$GL_IFAULTS&lt;BR /&gt;CTL$GL_IPAGEFL&lt;BR /&gt;CTL$GL_IVOLUMES &lt;BR /&gt;CTL$GL_IWSPEAK&lt;BR /&gt;&lt;BR /&gt;I wish these cell were updated regardless of whether image accounting was enabled, and that there was $GETJPI access to them.&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;&lt;/PID&gt;</description>
      <pubDate>Thu, 17 Jul 2008 17:44:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235557#M90526</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2008-07-17T17:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Process Uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235558#M90527</link>
      <description>&lt;!--!*#--&gt;If you're looking for a SHOW SYSTEM like utility but with output that shows each process's uptime, you might wannt to try my SSYS program.  Attached is a .ZIP file containing sources and VAX/ALPHA binaries.&lt;BR /&gt;&lt;BR /&gt;$ SSYS/INTERACTIVE&lt;BR /&gt;  list of processes found on node AX99 at 17-JUL-2008 21:37:19&lt;BR /&gt;  pid    process         state     login time   %cpu  pflt/sec  bio/sec  dio/sec&lt;BR /&gt;78A8916A GOODMAN         CUR 2 I    7 06:27:14   0.02    0.126    0.237    0.210&lt;BR /&gt;78AE25BD _TNA135:        LEF   I    0 09:17:46   0.02    0.207    0.205    0.078&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jul 2008 20:41:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235558#M90527</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2008-07-17T20:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Process Uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235559#M90528</link>
      <description>&lt;BR /&gt;Jess, thanks for your utility.&lt;BR /&gt;But i got some problem to use it.&lt;BR /&gt;&lt;BR /&gt;%DCL-W-ACTIMAGE, error activating image SYS$LOGIN:SSYS.EXE&lt;BR /&gt;-CLI-E-IMGNAME, image file DSA0:[SMSC]ssys.exe;1&lt;BR /&gt;-IMGACT-F-NOT_I64, image is not an HP OpenVMS Industry Standard 64 image&lt;BR /&gt;&lt;BR /&gt;I'm running OpenVMS V8.3-1H1 on HP rx2660  (1.59GHz/6.0MB)&lt;BR /&gt;&lt;BR /&gt;May I recompile it?? However I don't know how! :(&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jul 2008 07:30:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235559#M90528</guid>
      <dc:creator>smsc_1</dc:creator>
      <dc:date>2008-07-18T07:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Process Uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235560#M90529</link>
      <description>Jess did indicate that the ZIP files contained only ALPHA and VAX binaries.&lt;BR /&gt;&lt;BR /&gt;It would appear that you are trying to run it on an itanium platform.&lt;BR /&gt;&lt;BR /&gt;The zip files contains the source files, but you will need a FORTRAN compiler if you want to recompile the program for itanium.&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Fri, 18 Jul 2008 07:40:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235560#M90529</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2008-07-18T07:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Process Uptime</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235561#M90530</link>
      <description>&lt;BR /&gt;You are right Duncan, I execute it on wrong machine!!! ^_^&lt;BR /&gt;On Alpha server works fine....&lt;BR /&gt;&lt;BR /&gt;Ok I'll use SHOW PROC/ACC/ID= command on itanium and ssys on alpha!&lt;BR /&gt;&lt;BR /&gt;Thanks to all!</description>
      <pubDate>Fri, 18 Jul 2008 08:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/process-uptime/m-p/4235561#M90530</guid>
      <dc:creator>smsc_1</dc:creator>
      <dc:date>2008-07-18T08:29:46Z</dc:date>
    </item>
  </channel>
</rss>

