<?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 system cpu in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780663#M832833</link>
    <description>The user execute his script every 1 minute or every 5 minutes (crontab). The script makes many calls to system commands like tail, grep, cat... But /usr/bin isn't in first position in the $PATH. I think that it could be the cause of the problem (many namei/s and dirbk/s)&lt;BR /&gt;What do you think about it?</description>
    <pubDate>Wed, 07 Aug 2002 15:37:08 GMT</pubDate>
    <dc:creator>Eric Guerizec</dc:creator>
    <dc:date>2002-08-07T15:37:08Z</dc:date>
    <item>
      <title>High system cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780655#M832825</link>
      <description>Hello,&lt;BR /&gt;I have high system cpu on a HP N4000 4 processors.&lt;BR /&gt;&lt;BR /&gt;Look at this, sar 2 10 :&lt;BR /&gt;HP-UX myserver B.11.00 U 9000/800    08/06/02&lt;BR /&gt;&lt;BR /&gt;17:32:55    %usr    %sys    %wio   %idle&lt;BR /&gt;17:32:57      41      26       5      28&lt;BR /&gt;17:32:59      41      35       1      22&lt;BR /&gt;17:33:01      42      35       3      19&lt;BR /&gt;17:33:03      44      34       4      19&lt;BR /&gt;17:33:05      60      26       3      12&lt;BR /&gt;17:33:07      58      30       1      11&lt;BR /&gt;17:33:09      59      27       1      12&lt;BR /&gt;17:33:11      50      28       2      20&lt;BR /&gt;17:33:13      20      41       4      34&lt;BR /&gt;17:33:15      18      39       4      39&lt;BR /&gt;&lt;BR /&gt;Average       43      32       3      22&lt;BR /&gt;&lt;BR /&gt;vmstat 2 10 :&lt;BR /&gt;&lt;BR /&gt;         procs           memory                   page                              faults       cpu&lt;BR /&gt;    r     b     w      avm    free   re   at    pi   po    fr   de    sr     in     sy    cs  us sy id&lt;BR /&gt;    4     0     0    28589  824109    6    4     0    0     4    0     0      0    113     5  12  8 80&lt;BR /&gt;    4     0     0    28589  824059 3089 2001     3    0  2018    0     0   1760  56331  2986  21 41 38&lt;BR /&gt;    4     0     0    28589  824268 3172 2059     1    0  2073    0     0   1705  55201  2816  22 38 40&lt;BR /&gt;    9     0     0    27256  824161 2975 2007     0    0  2012    0     0   1869  51669  2742  22 33 46&lt;BR /&gt;    9     0     0    27256  823810 2913 2023     0    0  1996    0     0   1829  50947  2577  19 31 50&lt;BR /&gt;    1     1     0    27874  823940 2980 1961     0    0  1962    0     0   1715  50822  2527  20 42 39&lt;BR /&gt;    1     1     0    27874  824220 2936 1993     0    0  2008    0     0   1663  50113  2443  22 35 43&lt;BR /&gt;    6     0     0    29439  824147 2945 1929     0    0  1940    0     0   1615  50384  2408  16 37 47&lt;BR /&gt;    6     0     0    29439  823905 2836 1797     0    0  1768    0     0   1728  48562  2576  29 27 44&lt;BR /&gt;    6     0     0    29439  824130 2802 1918     0    0  1926    0     0   1724  48683  2612  27 43 29&lt;BR /&gt;&lt;BR /&gt;I think there is too many Page reclaims!&lt;BR /&gt;&lt;BR /&gt;Now, what do I have to do with glance to find the process which consumes the system cpu?&lt;BR /&gt;&lt;BR /&gt;With glance, I suspect a user script. Whan I look at the Process Ressources for this shell script, I find values like this :&lt;BR /&gt;Virtual Faults = 9684&lt;BR /&gt;Forks &amp;amp; VForks = 1133&lt;BR /&gt;Process Wait States shows 24% on PIPE.&lt;BR /&gt;&lt;BR /&gt;Any ideas, comments ???&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Tue, 06 Aug 2002 14:52:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780655#M832825</guid>
      <dc:creator>Eric Guerizec</dc:creator>
      <dc:date>2002-08-06T14:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: High system cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780656#M832826</link>
      <description>use gpm (GUI for glance)&lt;BR /&gt;Then double click on any process name.&lt;BR /&gt;via the menu option reports, you can drill into the process.. you can do so also in text base via the soft keys.&lt;BR /&gt;&lt;BR /&gt;PS: when including formatted text in the forums do so as an attachment... it's nearly impossible to read otherwise...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Tue, 06 Aug 2002 14:57:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780656#M832826</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-08-06T14:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: High system cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780657#M832827</link>
      <description>Eric,&lt;BR /&gt;&lt;BR /&gt;I think your system may be low on RAM based on the sar and vmstat outputs since the sys% is pretty high in sar (average 35%.)&lt;BR /&gt;&lt;BR /&gt;Hai&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Aug 2002 15:01:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780657#M832827</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-08-06T15:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: High system cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780658#M832828</link>
      <description>You have tons of free memory from your vmstat output and pi and po (page in and pageout) are zero so you have NO memory problems/pressures.&lt;BR /&gt;&lt;BR /&gt;For CPU run top, this will show you who is using it all.&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Aug 2002 15:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780658#M832828</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-08-06T15:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: High system cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780659#M832829</link>
      <description>Certainly doesn't look like a memory issue.  Another common cause of high system cpu usage is directories with huge numbers of files.  Running "sar -a" will tell you how many directory blocks per second are being scanned - if this number is consistently &amp;gt;1000 that may be the problem.&lt;BR /&gt;&lt;BR /&gt;You can use the find command to locate large directories:&lt;BR /&gt;&lt;BR /&gt;# find / -type d -size +128&lt;BR /&gt;&lt;BR /&gt;This will report directories larger than 64k in size.&lt;BR /&gt;&lt;BR /&gt;Otherwise as others have suggested try to find out which processes are causing the high CPU utilisation, then use glance or tusc to find out what those processes are doing lots of.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Tue, 06 Aug 2002 15:42:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780659#M832829</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-08-06T15:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: High system cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780660#M832830</link>
      <description>Steven; I think you are on the right way!&lt;BR /&gt;sar -a says :&lt;BR /&gt;iget/s = 25&lt;BR /&gt;namei/s &amp;gt; 3500&lt;BR /&gt;dirbk/s &amp;gt; 1000&lt;BR /&gt;Now, I am sure that an application script (launched by cron) is responsible for the problem! If I stop this crontab then sar -a says :&lt;BR /&gt;iget/s = 2&lt;BR /&gt;namei/s &amp;gt; 200&lt;BR /&gt;dirbk/s &amp;gt; 100&lt;BR /&gt;&lt;BR /&gt;Do you known what must change the user in his script to avoid my problem (high sys cpu)?&lt;BR /&gt;Find command brought back some repertories but which don't belong to the user homedir!&lt;BR /&gt;Directories are :&lt;BR /&gt;/var/rbootd&lt;BR /&gt;/var/spool/mqueue&lt;BR /&gt;and some others user subdir.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Aug 2002 17:34:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780660#M832830</guid>
      <dc:creator>Eric Guerizec</dc:creator>
      <dc:date>2002-08-06T17:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: High system cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780661#M832831</link>
      <description>The high inode activity is caused by the script--which you've already proved. You can duplicate (maybe even make it worse) by doing:&lt;BR /&gt;&lt;BR /&gt;du -s /&lt;BR /&gt;&lt;BR /&gt;This will make the opsystem and the disk VERY busy with directory and inode gets very high. That's perfeectly normal since the du command is summarizing all the directories. Now if your user decided to run bdf and du over and over again, then certainly you'll see this behavior. It's caused by performing directory searches.</description>
      <pubDate>Tue, 06 Aug 2002 22:54:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780661#M832831</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-08-06T22:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: High system cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780662#M832832</link>
      <description>You'll need to have a closer look at the script, and probably rewrite it so its more efficient.&lt;BR /&gt;&lt;BR /&gt;Complex and badly written shell scripts can certainly have a large impact on system performance as they have a habit of spawning a large number of processes.  The best way to fix this is to rewrite your complex shell scripts in perl!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Wed, 07 Aug 2002 08:30:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780662#M832832</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2002-08-07T08:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: High system cpu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780663#M832833</link>
      <description>The user execute his script every 1 minute or every 5 minutes (crontab). The script makes many calls to system commands like tail, grep, cat... But /usr/bin isn't in first position in the $PATH. I think that it could be the cause of the problem (many namei/s and dirbk/s)&lt;BR /&gt;What do you think about it?</description>
      <pubDate>Wed, 07 Aug 2002 15:37:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/high-system-cpu/m-p/2780663#M832833</guid>
      <dc:creator>Eric Guerizec</dc:creator>
      <dc:date>2002-08-07T15:37:08Z</dc:date>
    </item>
  </channel>
</rss>

