<?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 usage in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112669#M13754</link>
    <description>Maybe this is no longer the case, but to my understanding, the thing that drove this situation is the number of jobs in the COM queue that were eligible to run on a particular CPU.  &lt;BR /&gt;&lt;BR /&gt;Without affinity settings, if the scheduler module runs and finds an idle CPU at the same time that it has a COM process, it changes it from COM to CUR on the idle CPU.   Then (because a schedule event has just occurred), it runs AGAIN.  If there is still an idle CPU and a COM process, the same transition occurs but for the next idle CPU and so on.&lt;BR /&gt;&lt;BR /&gt;I can look at a SHOW SYSTEM and see the CPU associated with every CUR process, and I sometimes do see more than one CUR (counting myself) on my four-CPU Alphas.&lt;BR /&gt;&lt;BR /&gt;To see what is happening as described, I believe you would have to have a very thin COM queue.&lt;BR /&gt;</description>
    <pubDate>Fri, 07 Dec 2007 17:16:51 GMT</pubDate>
    <dc:creator>Richard W Hunt</dc:creator>
    <dc:date>2007-12-07T17:16:51Z</dc:date>
    <item>
      <title>CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112661#M13746</link>
      <description>OpenVMS 7.3-2 with Dual CPU (DS20E)&lt;BR /&gt;&lt;BR /&gt;I found that the CPU usage is mainly on CPU1 (around 20% idle) but the CPU0 is around (80% idle).&lt;BR /&gt;I have not make any pre-setting such as process,etc.&lt;BR /&gt;&lt;BR /&gt;Could anyone knows that any factors can affect the CPU balancing?&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Sentosa</description>
      <pubDate>Thu, 06 Dec 2007 08:11:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112661#M13746</guid>
      <dc:creator>Sentosa</dc:creator>
      <dc:date>2007-12-06T08:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112662#M13747</link>
      <description>How many computable processes are there?  If there is only one process that wants to use a CPU, then there is a performance advantage to reschedule the kernel thread on the same CPU it was previously executing on, as then it is possible for processor cache to be reused without needing to invalidate it.&lt;BR /&gt;&lt;BR /&gt;Processes can request that they have affinity to a specific set of processors.&lt;BR /&gt;&lt;BR /&gt;Are you having performance problems, or did you just notice this in the output of something like&lt;BR /&gt;&lt;BR /&gt;$ monitor/modes/cpu&lt;BR /&gt;&lt;BR /&gt;If that's where you noticed it, what modes are the time being spent in (user, interrupt, mpsync, etc).&lt;BR /&gt;&lt;BR /&gt;Prior to fastpath support, there was more of a possibility that one processor would be busy in Interrupt mode doing parts of I/O processing, but with 7.3-2 most of the commonly used drivers have the ability to do post processing on any CPU, so that shouldn't be as much of an issue.&lt;BR /&gt;&lt;BR /&gt;If you have more than just a passing interest, there is a complete chapter on Scheduling in the book "OpenVMS Alpha Internals - Scheduling and Process Control Version 7.0"  Perhaps you can find a copy at a library or on ebay; it is a Digital Press book that is not part of the standard documentaion, Copyright 1997; not online and may be out of print.&lt;BR /&gt;&lt;BR /&gt;Jon</description>
      <pubDate>Thu, 06 Dec 2007 09:12:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112662#M13747</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-12-06T09:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112663#M13748</link>
      <description>Sentosa, what you are seeing is a Cmos special. He changed the scheduler to load the CPUs from high numbers towards load numbers. The reason for that is that bound kernel processes (interupt handlers, lock manager are often assigned lower cpu numbers.&lt;BR /&gt;&lt;BR /&gt;Nothing to worry about.&lt;BR /&gt;It might help a little in keeping affinity.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Dec 2007 09:54:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112663#M13748</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-12-06T09:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112664#M13749</link>
      <description>To prevent misunderstanding:&lt;BR /&gt;&lt;BR /&gt;Cmos stands for Christian Moser, a (former?) member of OpenVNMS Engineering. Not the type of type of processor ;)</description>
      <pubDate>Thu, 06 Dec 2007 12:34:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112664#M13749</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2007-12-06T12:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112665#M13750</link>
      <description>I think VMS will use the first CPU up until it is close to full utilization and then it will start offloading some computation to the second CPU, until it is almost fully utilized, etc., for more CPUs.  If you notice MONITOR output, for multiple CPUs, you get more than 100% computing capacity.  E.g, for 2 CPUs you get 200%, etc.&lt;BR /&gt;&lt;BR /&gt;I don't think it is necessarily an issue that one CPU is working harder than the other, because I think VMS takes care it it on its own.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2007 03:01:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112665#M13750</guid>
      <dc:creator>DECxchange</dc:creator>
      <dc:date>2007-12-07T03:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112666#M13751</link>
      <description>DECxchange ,&lt;BR /&gt;&lt;BR /&gt;In light of your topic:&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1181881" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1181881&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Too bad we can not give you -12 points for the prior reply.&lt;BR /&gt;&lt;BR /&gt;Please READ the question and prior replies before wasting your time, and ours, with a speculative, confusing and erroneous answer.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I think VMS will use the first CPU up until it is close to full utilization and then it will start offloading some computation to the second CPU&lt;BR /&gt;&lt;BR /&gt;- What does 'first' mean in your country? Low number?&lt;BR /&gt;- Sentosa indicates the opposite is observed. Have you checked recently?&lt;BR /&gt;- What is off-loading? Check Jon's solid reply.&lt;BR /&gt;&lt;BR /&gt;There is no such notion as off-loading in OpenVMS. &lt;BR /&gt;If a process becomes computable then the OpenVMS scheduler will look for a free cpu to schedule it. 'Roughly speaking' It will first look for the last CPU where that process ran, and if that's busy it'll look for the first free cpu starting from high to low. With Hyperthreading enabled, the busyness for a co-thread is also taken into consideration.&lt;BR /&gt;If all CPUs are busy then priorities are used to decide wheather to pre-empt an other process or not.&lt;BR /&gt;&lt;BR /&gt;"until it is almost fully utilized"&lt;BR /&gt;It's either busy or it is not.&lt;BR /&gt;There is no such thing as 'having been busy a lot lately' in the OpenVMS scheduler.&lt;BR /&gt;&lt;BR /&gt;"If you notice MONITOR output, for multiple CPUs, you get more than 100% computing capacity. E.g, for 2 CPUs you get 200%, etc."&lt;BR /&gt;&lt;BR /&gt;Looks like Sentosa knows that, and knows even more, as the per-cpu load is known.&lt;BR /&gt;&lt;BR /&gt;This per-CPU breakdown can be obtained from $MONI MODE/CPU as Jon indicateed (with minor typo), but I particulary like T4 data + TlViz to visualize this.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2007 15:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112666#M13751</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-12-07T15:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112667#M13752</link>
      <description>Hein,&lt;BR /&gt;I can't help you for wasting so much of your time on my asnwer.  But I guess in your country, you have all kinds of time to waste.  I did go back and reread the question and see that I answered it wrong.  But you didn't answer his question either.  Actually, I don't care one way or another. There's clearly enough CPU power to go around.  And besides, MONITOR is just a snapshot.</description>
      <pubDate>Fri, 07 Dec 2007 16:43:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112667#M13752</guid>
      <dc:creator>DECxchange</dc:creator>
      <dc:date>2007-12-07T16:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112668#M13753</link>
      <description>For Willem and Hein,&lt;BR /&gt;&lt;BR /&gt;A suggestion. While OpenVMS is, by default, case-blind, perhaps the post in this thread concerning scheduling genesis (and it exegesis) is more appropriately "CMos". The semi-conductor technology is "CMOS".&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, 07 Dec 2007 16:50:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112668#M13753</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2007-12-07T16:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: CPU usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112669#M13754</link>
      <description>Maybe this is no longer the case, but to my understanding, the thing that drove this situation is the number of jobs in the COM queue that were eligible to run on a particular CPU.  &lt;BR /&gt;&lt;BR /&gt;Without affinity settings, if the scheduler module runs and finds an idle CPU at the same time that it has a COM process, it changes it from COM to CUR on the idle CPU.   Then (because a schedule event has just occurred), it runs AGAIN.  If there is still an idle CPU and a COM process, the same transition occurs but for the next idle CPU and so on.&lt;BR /&gt;&lt;BR /&gt;I can look at a SHOW SYSTEM and see the CPU associated with every CUR process, and I sometimes do see more than one CUR (counting myself) on my four-CPU Alphas.&lt;BR /&gt;&lt;BR /&gt;To see what is happening as described, I believe you would have to have a very thin COM queue.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2007 17:16:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cpu-usage/m-p/4112669#M13754</guid>
      <dc:creator>Richard W Hunt</dc:creator>
      <dc:date>2007-12-07T17:16:51Z</dc:date>
    </item>
  </channel>
</rss>

