<?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 util in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583794#M374130</link>
    <description>&amp;gt; here's the output of the command&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; # UNIX95= ps -u tpr8060 -o comm= | sort | uniq -c | sort -rn&lt;BR /&gt;&amp;gt; 71 sh&lt;BR /&gt;&amp;gt; 47 perl&lt;BR /&gt;&amp;gt; 43 ksh&lt;BR /&gt;&amp;gt; 15 ls&lt;BR /&gt;&amp;gt; 13 ssh&lt;BR /&gt;&amp;gt; 13 grep&lt;BR /&gt;&amp;gt; 13 awk&lt;BR /&gt; &lt;BR /&gt;Why do you think there is a problem? You have 13 ssh sessions running and they look quite normal. Of course if you know that there is supposed to be only one session running, then talk to the user tprxxxx and find out why the processes don't look normal.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; Most of this process is perl scripts and native scipts to transfer file from server to server.&lt;BR /&gt; &lt;BR /&gt;What does the author of the scripts say about this condition? Are these scripts started when certain conditions exist? How are these scripts started? By cron? Could it be that when there is a file to transfer and it takes a long time, the script is started again and again? You need to use lock files to prevent this plus a monitor script to report on the overall transfer status.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; System value drops from 76% to an average of 17%.I but didnt do anything yet&lt;BR /&gt; &lt;BR /&gt;Sounds like the scripts are running, then completing their tasks. There's almost nothing you can do until you understand what the script are supposed to do and when they are supposed to run. It is trivial to write a script that uses 100% of your CPU. That does not prevent users from logging in, running vi or even running more scripts. In HP-UX, CPU usage for users is a low priority, that is, a process that uses 100% for a while will share CPU cycles with other users. &lt;BR /&gt; &lt;BR /&gt;On the other hand, a very high sys value (ie, 70% versus 25% user) can indicate a massive I/O condition. In your case, the load average indicates that there are a very large number of processes waiting to run (8.39) but whether this is normal depends on the scripts and processes that are running.&lt;BR /&gt; &lt;BR /&gt;Be sure to look at /var/adm/syslog/syslog.log for possible errors and warnings.</description>
    <pubDate>Mon, 15 Feb 2010 13:49:03 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2010-02-15T13:49:03Z</dc:date>
    <item>
      <title>high cpu util</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583785#M374121</link>
      <description>Hi Experts,&lt;BR /&gt;&lt;BR /&gt;Just want to ask your expert advice on this..I have a machine which consistently hits cpu of 100%&lt;BR /&gt;&lt;BR /&gt;CPU   LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS&lt;BR /&gt;avg   8.39   0.2%  26.2%  73.6%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;&lt;BR /&gt;system value is 73.6% is this normal?&lt;BR /&gt;&lt;BR /&gt;top process is the user tprxxxx w/c has 270 process.&lt;BR /&gt;&lt;BR /&gt;If you need other logs i would gladly provide it.Thanks</description>
      <pubDate>Mon, 15 Feb 2010 03:09:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583785#M374121</guid>
      <dc:creator>trebor_1</dc:creator>
      <dc:date>2010-02-15T03:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: high cpu util</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583786#M374122</link>
      <description>Sounds like you are getting your money's worth out of the computer. Seriously, a single user tprxxxx with 270 processes running sounds a bit unusual. What are all the processes? Use this command to count the processes:&lt;BR /&gt; &lt;BR /&gt;ps -u tprxxxx -ocomm= | sort | uniq -c | sort -rn&lt;BR /&gt; &lt;BR /&gt;Contact this user and ask what they are doing.</description>
      <pubDate>Mon, 15 Feb 2010 03:52:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583786#M374122</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-02-15T03:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: high cpu util</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583787#M374123</link>
      <description>Almost forgot -- the complete command line is:&lt;BR /&gt; &lt;BR /&gt;UNIX95= ps -u tprxxxx -o comm= | sort | uniq -c | sort -rn&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Feb 2010 03:54:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583787#M374123</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-02-15T03:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: high cpu util</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583788#M374124</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;here's the output of the command&lt;BR /&gt;&lt;BR /&gt;# UNIX95= ps -u tpr8060 -o comm= | sort | uniq -c | sort -rn&lt;BR /&gt;  71 sh&lt;BR /&gt;  47 perl&lt;BR /&gt;  43 ksh&lt;BR /&gt;  15 ls&lt;BR /&gt;  13 ssh&lt;BR /&gt;  13 grep&lt;BR /&gt;  13 awk&lt;BR /&gt;   7 tee&lt;BR /&gt;   7 ssh-rand-helper&lt;BR /&gt;   7 sftp&lt;BR /&gt;   5 sshd:&lt;BR /&gt;   4 -ksh&lt;BR /&gt;   2 who&lt;BR /&gt;   2 rm&lt;BR /&gt;   2 ftp&lt;BR /&gt;   1 view&lt;BR /&gt;   1 sftp-server&lt;BR /&gt;   1 netstat&lt;BR /&gt;   1 mv&lt;BR /&gt;   1 gzip&lt;BR /&gt;   1 find&lt;BR /&gt;   1 cp&lt;BR /&gt;#&lt;BR /&gt;Most of this process is perl scripts and native scipts to transfer file from server to server.&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Feb 2010 05:08:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583788#M374124</guid>
      <dc:creator>trebor_1</dc:creator>
      <dc:date>2010-02-15T05:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: high cpu util</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583789#M374125</link>
      <description>&amp;gt;system value is 73.6% is this normal?&lt;BR /&gt;&lt;BR /&gt;It sounds like you are doing lots of I/O or waiting.&lt;BR /&gt;Do you have glance installed find the cause?&lt;BR /&gt;You probably need some sar(1m) reports.&lt;BR /&gt;What does "swapinfo -tam" show?</description>
      <pubDate>Mon, 15 Feb 2010 06:40:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583789#M374125</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-02-15T06:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: high cpu util</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583790#M374126</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;output of swapinfo&lt;BR /&gt;&lt;BR /&gt;# swapinfo -tam&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev       16192       0   16192    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev       10000     118    9882    1%       0       -    0  /dev/vg00/lvswap&lt;BR /&gt;dev       51188     117   51067    0%       0       -    0  /dev/vgswap/lvswap&lt;BR /&gt;reserve       -    2110   -2110&lt;BR /&gt;memory     6540    1727    4813   26%&lt;BR /&gt;total     83920    4072   79844    5%       -       0    &lt;BR /&gt;&lt;BR /&gt;Output of sar&lt;BR /&gt;&lt;BR /&gt;# sar 5 5&lt;BR /&gt;&lt;BR /&gt;HP-UX server01 B.11.11 U 9000/800    02/15/10&lt;BR /&gt;&lt;BR /&gt;15:36:11    %usr    %sys    %wio   %idle&lt;BR /&gt;15:36:17      83      17       0       0&lt;BR /&gt;15:36:22      82      18       0       0&lt;BR /&gt;15:36:27      85      15       0       0&lt;BR /&gt;15:36:32      87      13       0       0&lt;BR /&gt;15:36:37      88      12       0       0&lt;BR /&gt;&lt;BR /&gt;Average       85      15       0       0&lt;BR /&gt;#&lt;BR /&gt;System value drops from 76% to an average of 17%.I but didnt do anything yet.</description>
      <pubDate>Mon, 15 Feb 2010 07:46:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583790#M374126</guid>
      <dc:creator>trebor_1</dc:creator>
      <dc:date>2010-02-15T07:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: high cpu util</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583791#M374127</link>
      <description>&amp;gt;memory 6540 1727 4813 26%&lt;BR /&gt;&lt;BR /&gt;It seems you have enough memory now.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I but didn't do anything yet.&lt;BR /&gt;&lt;BR /&gt;Well, waiting enabled those processes to finally finish.  You'll need to monitor them again, when you have that high system load.</description>
      <pubDate>Mon, 15 Feb 2010 07:59:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583791#M374127</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-02-15T07:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: high cpu util</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583792#M374128</link>
      <description>Hi Guys,&lt;BR /&gt;&lt;BR /&gt;Do you have any scripts that can monitor this so i can track them when peak time comes?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 15 Feb 2010 08:02:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583792#M374128</guid>
      <dc:creator>trebor_1</dc:creator>
      <dc:date>2010-02-15T08:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: high cpu util</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583793#M374129</link>
      <description>Check out the following thread...Victor attached a script that monitors resources including CPU. You could probably apply at least a part of it to suit your needs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1035476&amp;amp;admit=109447627+1266239601019+28353475" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1035476&amp;amp;admit=109447627+1266239601019+28353475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Johnson</description>
      <pubDate>Mon, 15 Feb 2010 13:16:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583793#M374129</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-02-15T13:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: high cpu util</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583794#M374130</link>
      <description>&amp;gt; here's the output of the command&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; # UNIX95= ps -u tpr8060 -o comm= | sort | uniq -c | sort -rn&lt;BR /&gt;&amp;gt; 71 sh&lt;BR /&gt;&amp;gt; 47 perl&lt;BR /&gt;&amp;gt; 43 ksh&lt;BR /&gt;&amp;gt; 15 ls&lt;BR /&gt;&amp;gt; 13 ssh&lt;BR /&gt;&amp;gt; 13 grep&lt;BR /&gt;&amp;gt; 13 awk&lt;BR /&gt; &lt;BR /&gt;Why do you think there is a problem? You have 13 ssh sessions running and they look quite normal. Of course if you know that there is supposed to be only one session running, then talk to the user tprxxxx and find out why the processes don't look normal.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; Most of this process is perl scripts and native scipts to transfer file from server to server.&lt;BR /&gt; &lt;BR /&gt;What does the author of the scripts say about this condition? Are these scripts started when certain conditions exist? How are these scripts started? By cron? Could it be that when there is a file to transfer and it takes a long time, the script is started again and again? You need to use lock files to prevent this plus a monitor script to report on the overall transfer status.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; System value drops from 76% to an average of 17%.I but didnt do anything yet&lt;BR /&gt; &lt;BR /&gt;Sounds like the scripts are running, then completing their tasks. There's almost nothing you can do until you understand what the script are supposed to do and when they are supposed to run. It is trivial to write a script that uses 100% of your CPU. That does not prevent users from logging in, running vi or even running more scripts. In HP-UX, CPU usage for users is a low priority, that is, a process that uses 100% for a while will share CPU cycles with other users. &lt;BR /&gt; &lt;BR /&gt;On the other hand, a very high sys value (ie, 70% versus 25% user) can indicate a massive I/O condition. In your case, the load average indicates that there are a very large number of processes waiting to run (8.39) but whether this is normal depends on the scripts and processes that are running.&lt;BR /&gt; &lt;BR /&gt;Be sure to look at /var/adm/syslog/syslog.log for possible errors and warnings.</description>
      <pubDate>Mon, 15 Feb 2010 13:49:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-cpu-util/m-p/4583794#M374130</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-02-15T13:49:03Z</dc:date>
    </item>
  </channel>
</rss>

