<?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: High CPU utilisation by a process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584306#M230375</link>
    <description>hi amith&lt;BR /&gt;&lt;BR /&gt;use Glance plus to find out more details on process and cpu performance , which is real time and will give optimum results than top.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Vinod K</description>
    <pubDate>Tue, 19 Jul 2005 02:15:26 GMT</pubDate>
    <dc:creator>vinod_25</dc:creator>
    <dc:date>2005-07-19T02:15:26Z</dc:date>
    <item>
      <title>High CPU utilisation by a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584300#M230369</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am experiencing a problem where in one of my application programs which is written in COBOL is utilising a high percentage of CPU. The ouput of the 'top' command when the program is executed is as follows.&lt;BR /&gt; TIME %WCPU  %CPU COMMAND&lt;BR /&gt; 2:45 88.24 88.09 bgt205&lt;BR /&gt;The program continuously reads a file for records and process the record if available.&lt;BR /&gt;Could anyone suggest any method to reduce the CPU utilisation of the program.</description>
      <pubDate>Mon, 18 Jul 2005 01:52:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584300#M230369</guid>
      <dc:creator>Amith_2</dc:creator>
      <dc:date>2005-07-18T01:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU utilisation by a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584301#M230370</link>
      <description>Hi Amith&lt;BR /&gt;&lt;BR /&gt;Please a look through the documentation for things such as required kernel changes and ulimit parameters required for application.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Mahesh&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jul 2005 02:20:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584301#M230370</guid>
      <dc:creator>Mahesh Kumar Malik</dc:creator>
      <dc:date>2005-07-18T02:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU utilisation by a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584302#M230371</link>
      <description>The only way to reduce CPU usage is to rewrite the program. A simple 4 line script will use 100% of the CPU:&lt;BR /&gt; &lt;BR /&gt;while :&lt;BR /&gt;do&lt;BR /&gt;:&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;The above script is working the way it was designed and no amount of kernel changing will ever fix this usage. There is nothing wrong with high CPU usage if it is what the program is supposed to do. Of course, the program may be using very inefficient methods to accomplish the processing, but that's for the programmer to fix.</description>
      <pubDate>Mon, 18 Jul 2005 02:44:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584302#M230371</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-07-18T02:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU utilisation by a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584303#M230372</link>
      <description>Is there any method to monitor which call is taking up the CPU utilisation ?</description>
      <pubDate>Mon, 18 Jul 2005 03:22:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584303#M230372</guid>
      <dc:creator>Amith_2</dc:creator>
      <dc:date>2005-07-18T03:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU utilisation by a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584304#M230373</link>
      <description>sar -c 2 5&lt;BR /&gt;&lt;BR /&gt;You can also use tusc tool. Yu can get it here.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk" target="_blank"&gt;http://hpux.connect.org.uk&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Mon, 18 Jul 2005 05:21:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584304#M230373</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-07-18T05:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU utilisation by a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584305#M230374</link>
      <description>Or you could read the source code of the program and deduce how much CPU it will use.  From your description, it sounds as though the problem may be one of design.&lt;BR /&gt;&lt;BR /&gt;Are there any pauses or delays if the program reads the file and finds no records, or does it just read the file again?  If the latter, then no wonder it is using a lot of CPU.&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Tue, 19 Jul 2005 02:02:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584305#M230374</guid>
      <dc:creator>Andrew Merritt_2</dc:creator>
      <dc:date>2005-07-19T02:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU utilisation by a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584306#M230375</link>
      <description>hi amith&lt;BR /&gt;&lt;BR /&gt;use Glance plus to find out more details on process and cpu performance , which is real time and will give optimum results than top.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Vinod K</description>
      <pubDate>Tue, 19 Jul 2005 02:15:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584306#M230375</guid>
      <dc:creator>vinod_25</dc:creator>
      <dc:date>2005-07-19T02:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU utilisation by a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584307#M230376</link>
      <description>Hi Amith&lt;BR /&gt;&lt;BR /&gt;It looks like the cobol program needs some changes. Is it possible to modify the program to read the file with some time gaps rather than reading continiously. I hope file you want to read may not be getting modified every millisecond. &lt;BR /&gt;&lt;BR /&gt;Cheers!!!&lt;BR /&gt;eknath</description>
      <pubDate>Tue, 19 Jul 2005 02:44:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584307#M230376</guid>
      <dc:creator>Eknath</dc:creator>
      <dc:date>2005-07-19T02:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU utilisation by a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584308#M230377</link>
      <description>Thanks for the answer.&lt;BR /&gt;&lt;BR /&gt;Andrew,&lt;BR /&gt;&lt;BR /&gt;The programs reads a file for a record , if there is no record then it will keep on browsing the file until it finds a record. Does such read calls increase the CPU utilisation ? What is the meaning of %WCPU utilisation in the top command?</description>
      <pubDate>Tue, 19 Jul 2005 02:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584308#M230377</guid>
      <dc:creator>Amith_2</dc:creator>
      <dc:date>2005-07-19T02:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU utilisation by a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584309#M230378</link>
      <description>Hi Amith,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The programs reads a file for a record ,&lt;BR /&gt;&amp;gt; if there is no record then it will keep&lt;BR /&gt;&amp;gt; on browsing the file until it finds a&lt;BR /&gt;&amp;gt; record. Does such read calls increase&lt;BR /&gt;&amp;gt; the CPU utilisation ?&lt;BR /&gt;&lt;BR /&gt;What do you mean by 'browsing the file'?&lt;BR /&gt;&lt;BR /&gt;If the program is continuously doing something, it will be using CPU.  If it reads the file, finds no records, and then just goes straight on to read the file again, it will be using a lot of CPU because the code is constantly executing.&lt;BR /&gt;&lt;BR /&gt;My COBOL is extremely rusty, so I can't suggest the way to code it, but you want either a delay after failing to find any records, or some sort of read that won't return unless there is something there (not sure if COBOL has that).&lt;BR /&gt;&lt;BR /&gt;WCPU is "weighted CPU", an average used by the scheduler.  See &lt;A href="http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=57634" target="_blank"&gt;http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=57634&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Tue, 19 Jul 2005 02:55:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584309#M230378</guid>
      <dc:creator>Andrew Merritt_2</dc:creator>
      <dc:date>2005-07-19T02:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU utilisation by a process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584310#M230379</link>
      <description>I would consider getting Process Resource Manager and capping the amount of CPU that your process can get if you really think that it is wasting many cycles looping for nothing. That wouldn't involve any programming.  If you have HP-UX 11i Enterprise Operating Environment, then you already have PRM.</description>
      <pubDate>Tue, 19 Jul 2005 15:28:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-utilisation-by-a-process/m-p/3584310#M230379</guid>
      <dc:creator>Ted Buis</dc:creator>
      <dc:date>2005-07-19T15:28:22Z</dc:date>
    </item>
  </channel>
</rss>

