<?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: CPU Utilization plays Catch Up in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110845#M25664</link>
    <description>DWood85,&lt;BR /&gt;&lt;BR /&gt;As Jan comented, the accounting time aggregation mechanism was never designed to do accounting for time at this level of detail. The fact that all of the programs are running the precisely same processing will only reinforce the "moire" possibilities that Jan was referring to.&lt;BR /&gt;&lt;BR /&gt;For instrumentation, I would consider putting in some mechanism that allows the processes to be monitored. If nobody is actually having problems, I would not recommend any action. &lt;BR /&gt;&lt;BR /&gt;Of course, more detailed review may disclose some issue, but that is more detailed than can be handled in this forum.&lt;BR /&gt;&lt;BR /&gt;- Bob</description>
    <pubDate>Tue, 27 May 2008 18:41:12 GMT</pubDate>
    <dc:creator>Robert Gezelter</dc:creator>
    <dc:date>2008-05-27T18:41:12Z</dc:date>
    <item>
      <title>CPU Utilization plays Catch Up</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110842#M25661</link>
      <description>I have a program that is run in multiple instances (22 detached process) each that communicate via TCP/IP (sockets C calls) several times every 100 millisconds to a network device (each program communicates to a unique network device).&lt;BR /&gt;We are running Openvms 7.1 on an Alphaserver 4100 5/300.  &lt;BR /&gt;&lt;BR /&gt;The problem is that CPU utilization of each program doesn't accrue regularly. No CPU will be charged for minutes at a time and then suddenly one or more of the 22 instances (about every 5 minutes) will start getting charged large amounts of CPU (up to 30% for a minute at a time) time that seems to try and catch up the CPU utilization.&lt;BR /&gt;What's going on here? &lt;BR /&gt;I use scheduled wakeup at 100ms and Hibernate at end, but I tried other timing mechanisms (event flag waitfr, and lib$wait) but I still see the process in HIB a large amount of the time. &lt;BR /&gt;Any way to smooth the CPU use out?</description>
      <pubDate>Tue, 27 May 2008 17:18:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110842#M25661</guid>
      <dc:creator>DWood85</dc:creator>
      <dc:date>2008-05-27T17:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Utilization plays Catch Up</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110843#M25662</link>
      <description>This could be just an observation issue giving a "moirÃ© pattern" with pronounced peaks and valleys instead of a uniform 'grey'.&lt;BR /&gt;&lt;BR /&gt;The CPU charging takes place by the clock interupt routine, charging whichever process was active on a CPU, before checking what to run next. &lt;BR /&gt;&lt;BR /&gt;Therefor, a task which is (in_directly timer scheduled and runs less than a clock tick might never be visible as far as CPU time is concerned.&lt;BR /&gt;&lt;BR /&gt;Put a short task which takes 10% cpu right after a repeated longer tasks taking 95% of a clock tick and the short tasks may appear to consume 50% CPU with the long task none. "Bad timing".&lt;BR /&gt;&lt;BR /&gt;What TCP/IP stack/version is being using? The older UCX versions had several high contention interlocks, serializing access and potentially magnifying the above suggestions.&lt;BR /&gt;&lt;BR /&gt;Hardware assisted CPU cycle sampling, such as offered by the PRF extention to SDA can show what is really happening... but that is probably not available on OpenVMS 7.1&lt;BR /&gt;&lt;BR /&gt;Is this question born out of curiosity, or is there a real problem to be addressed?&lt;BR /&gt;&lt;BR /&gt;If there is a performance concern then it may be more fruitful to go the upgrade path first. Can you upgrage the Alpha and or OpenVMS and its TCP stack at all? The 5/300 only has a fraction of the power of a recent alpha chip. And OpenVMS has much improved in the performance area as well.&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;HvdH Performance Consulting.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 May 2008 17:42:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110843#M25662</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-05-27T17:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Utilization plays Catch Up</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110844#M25663</link>
      <description>Thanks for responding,&lt;BR /&gt;&lt;BR /&gt;System is using Digital TCP/IP services for OpenVMS Alpha Version V4.1, ECO 10.&lt;BR /&gt;&lt;BR /&gt;This is causing some problems from time to time there seems to be an alignment of multiple programs catching up and there being nearly no cpu time availalbe. Timing constraints are retrieving data 10 times a second). &lt;BR /&gt;I wonder if there's a way to trick it so they don't ever get charged?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 May 2008 17:56:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110844#M25663</guid>
      <dc:creator>DWood85</dc:creator>
      <dc:date>2008-05-27T17:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Utilization plays Catch Up</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110845#M25664</link>
      <description>DWood85,&lt;BR /&gt;&lt;BR /&gt;As Jan comented, the accounting time aggregation mechanism was never designed to do accounting for time at this level of detail. The fact that all of the programs are running the precisely same processing will only reinforce the "moire" possibilities that Jan was referring to.&lt;BR /&gt;&lt;BR /&gt;For instrumentation, I would consider putting in some mechanism that allows the processes to be monitored. If nobody is actually having problems, I would not recommend any action. &lt;BR /&gt;&lt;BR /&gt;Of course, more detailed review may disclose some issue, but that is more detailed than can be handled in this forum.&lt;BR /&gt;&lt;BR /&gt;- Bob</description>
      <pubDate>Tue, 27 May 2008 18:41:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110845#M25664</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2008-05-27T18:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Utilization plays Catch Up</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110846#M25665</link>
      <description>At the risk of stating the obvious, why not have your application monitor itself?  &lt;BR /&gt;&lt;BR /&gt;I'm quite fond of instrumenting application code for debugging, performance and monitoring purposes, as external tools can and do have limitations.  Out-board monitors never seem to have all of the detail I want, so I incorporate hooks or routines into the application code that out-board monitors and tools can then use.&lt;BR /&gt;&lt;BR /&gt;Shared memory can be used to instrument the code, or otherwise.  &lt;BR /&gt;&lt;BR /&gt;These hooks might be selectively-enabled in certain cases (and particularly in the most performance-critical code paths), but I've found having debugging and monitoring tools "baked in" greatly simplifies support and upkeep.&lt;BR /&gt;&lt;BR /&gt;And if you want to experiment with some potential "free" performance, try an upgrade to V7.3-2 or later, or an Alpha processor upgrade, or both.  A number of folks around have found V7.3-2 faster than earlier releases, for various reasons.  &lt;BR /&gt;&lt;BR /&gt;It can be worthwhile optimizing old releases and old gear, but the costs do need to be compared with the costs of upgrading.  And there can be diminishing returns here, too.   And a cheap AlphaStation XP1000 or analogous will likely run your applications far faster than this AlphaServer 4100 box.&lt;BR /&gt;&lt;BR /&gt;Stephen Hoffman&lt;BR /&gt;HoffmanLabs LLC</description>
      <pubDate>Tue, 27 May 2008 19:23:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110846#M25665</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-05-27T19:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Utilization plays Catch Up</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110847#M25666</link>
      <description>If you have performance advisor, you can do sampling with :&lt;BR /&gt;adv coll sys /out=xxx/end=[time]/int=zzz&lt;BR /&gt;adv coll rep sys /out=yyy xxx&lt;BR /&gt;&lt;BR /&gt;It will report the cpu per process based upon sampling every zzz 1/100 sec(default 1/100 sec and lower not possible).&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Wed, 28 May 2008 05:13:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110847#M25666</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2008-05-28T05:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Utilization plays Catch Up</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110848#M25667</link>
      <description>Thanks for the suggestions/info.&lt;BR /&gt;FYI I found that creating the process real time priority (20) and and using the prc$m_noacnt attribute when creating the process diminished the cpu utilization spikes significantly. &lt;BR /&gt;&lt;BR /&gt;Also per HP, using a SYS$Hiber for this relatively quick (100ms scan cycle) timing was NOT a good idea at all. Changed the code to use a simple sys$setimr and sys$waitfr event flag, and all this made a significant difference in smoothing out the cpu oddities etc.&lt;BR /&gt;&lt;BR /&gt;Done!</description>
      <pubDate>Tue, 03 Jun 2008 14:36:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110848#M25667</guid>
      <dc:creator>DWood85</dc:creator>
      <dc:date>2008-06-03T14:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: CPU Utilization plays Catch Up</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110849#M25668</link>
      <description>closed</description>
      <pubDate>Tue, 03 Jun 2008 14:38:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-utilization-plays-catch-up/m-p/5110849#M25668</guid>
      <dc:creator>DWood85</dc:creator>
      <dc:date>2008-06-03T14:38:06Z</dc:date>
    </item>
  </channel>
</rss>

