<?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: NICE consuming high CPU in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724073#M385995</link>
    <description>&amp;gt;will it be recommendable here to change NICE value to 20 for those java processes here?&lt;BR /&gt;&lt;BR /&gt;Sure, if this user is more important than the other nice users.  But it appears that those users are probably getting all of the CPU they can.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I mean from whole system performance's perspective.&lt;BR /&gt;&lt;BR /&gt;The overall system performance shouldn't change that much.  But it may starve the other users nice users.</description>
    <pubDate>Tue, 14 Dec 2010 21:02:19 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-12-14T21:02:19Z</dc:date>
    <item>
      <title>NICE consuming high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724064#M385986</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;On one of our HP-UX server, NICE is having maximum contribution in keeping CPU to be 100% utilized. So just wanted to know the reason for that and how can we prevent this. Below are the stats taken from top command. I suspect it is because all the top processes have NICE value of 22 and not 20(default).&lt;BR /&gt;&lt;BR /&gt;Load averages: 3.37, 3.80, 3.84&lt;BR /&gt;803 processes: 655 sleeping, 146 running, 2 stopped&lt;BR /&gt;Cpu states:&lt;BR /&gt;CPU   LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS&lt;BR /&gt; 0    3.32   4.3%  86.6%   9.1%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 2    3.55   6.1%  78.3%  15.6%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 4    3.21   1.6%  94.9%   3.6%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 6    3.39   2.2%  83.8%  14.0%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;---   ----  -----  -----  -----  -----  -----  -----  -----  -----&lt;BR /&gt;avg   3.37   3.6%  86.0%  10.5%   0.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;&lt;BR /&gt;System Page Size: 4Kbytes&lt;BR /&gt;Memory: 25534184K (25214780K) real, 69598256K (65838156K) virtual, 12165272K free  Page# 1/26&lt;BR /&gt;&lt;BR /&gt;CPU TTY     PID USERNAME PRI NI   SIZE    RES STATE    TIME %WCPU  %CPU COMMAND&lt;BR /&gt; 0   ?    29825 uatenb1  152 22  2310M   352M run      0:22 90.85 63.48 java&lt;BR /&gt; 4   ?     2004 root     255 28 51004K 35632K run     10:34 54.29 54.19 scan&lt;BR /&gt; 6   ?      135 uatenb1  152 22  2306M   347M run      0:14 71.82 44.05 java&lt;BR /&gt; 2   ?      140 uatenb1  152 22  2306M   350M run      0:11 76.52 38.52 java&lt;BR /&gt; 6   ?      189 uatenb1  152 22  2298M   338M run      0:06 86.16 31.22 java&lt;BR /&gt; 4   ?      209 uatenb1  152 22  2276M   318M run      0:02 63.23 11.46 java&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Dec 2010 09:26:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724064#M385986</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2010-12-09T09:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: NICE consuming high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724065#M385987</link>
      <description>&amp;gt;So just wanted to know the reason for that and how can we prevent this.&lt;BR /&gt;&lt;BR /&gt;There is nothing to prevent, is working as it should.  You want to use 100% of your CPUs.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I suspect it is because all the top processes have NICE value of 22 and not 20 (default).&lt;BR /&gt;&lt;BR /&gt;Yes.</description>
      <pubDate>Thu, 09 Dec 2010 09:41:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724065#M385987</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-12-09T09:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: NICE consuming high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724066#M385988</link>
      <description>Thanks Dennis. Ya, its good if CPU is getting 100% utilized but its also causing high run-queue. We are seeing load average of 6 on this server which is not at all good for system health.&lt;BR /&gt;&lt;BR /&gt;So, how can we bring them at nice value of 20 ? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Dec 2010 10:19:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724066#M385988</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2010-12-09T10:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: NICE consuming high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724067#M385989</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can do it with renice command: From man renice:&lt;BR /&gt;&lt;BR /&gt; NAME&lt;BR /&gt;      renice - alter priority of running processes&lt;BR /&gt;&lt;BR /&gt; SYNOPSIS&lt;BR /&gt;      renice [-n newoffset] [-g|-p|-u] id ...&lt;BR /&gt;&lt;BR /&gt;.....&lt;BR /&gt;&lt;BR /&gt; -n newoffset   Change the system nice value of each affected&lt;BR /&gt;                          process to 20 + newoffset.  If the UNIX95&lt;BR /&gt;                          environment variable is set, the  system nice&lt;BR /&gt;                          value of each affected process is changed to&lt;BR /&gt;                          current nice value + newoffset.&lt;BR /&gt;&lt;BR /&gt;                          If newoffset is negative, the system nice value is&lt;BR /&gt;                          set to 20 minus the absolute value of newoffset.&lt;BR /&gt;                          If the UNIX95 environment variable is set and the&lt;BR /&gt;                          newoffset is negative, the system nice value is&lt;BR /&gt;                          set to current nice value minus the absolute value&lt;BR /&gt;                          of newoffset.  Only users with appropriate&lt;BR /&gt;                          newoffset is negative, the system nice value is&lt;BR /&gt;                          set to current nice value minus the absolute value&lt;BR /&gt;                          of newoffset.  Only users with appropriate&lt;BR /&gt;                          privileges can reduce the system nice value or set&lt;BR /&gt;                          it to less than 20.  If this option is omitted,&lt;BR /&gt;                          newoffset defaults to 10.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Dec 2010 12:22:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724067#M385989</guid>
      <dc:creator>R.O.</dc:creator>
      <dc:date>2010-12-09T12:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: NICE consuming high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724068#M385990</link>
      <description>&amp;gt;but it's also causing high run-queue. We are seeing load average of 6 on this server which is not at all good for system health.&lt;BR /&gt;&lt;BR /&gt;Are your users complaining about excessive response times?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;how can we bring them at nice value of 20?&lt;BR /&gt;&lt;BR /&gt;As R.O. said, root can use "renice -n 0" on them.  But this won't change your 100% CPU nor change your load average or high run-queue.</description>
      <pubDate>Sat, 11 Dec 2010 22:55:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724068#M385990</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-12-11T22:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: NICE consuming high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724069#M385991</link>
      <description>Thanks Dennis,&lt;BR /&gt;&lt;BR /&gt;Yes users are complaining....so making NICE value as 20 for those java processes will not help here ? Although NICE vakue of 20 has higher priority.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; regards,&lt;BR /&gt;Kavita</description>
      <pubDate>Tue, 14 Dec 2010 05:21:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724069#M385991</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2010-12-14T05:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: NICE consuming high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724070#M385992</link>
      <description>&amp;gt;so making NICE value as 20 for those java processes will not help here?&lt;BR /&gt;&lt;BR /&gt;Yes, it will help users of just those processes.  Users with nice value 22 will be slightly lower.  Same with anyone already at 20, since they now have to compete with more processes.</description>
      <pubDate>Tue, 14 Dec 2010 06:14:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724070#M385992</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-12-14T06:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: NICE consuming high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724071#M385993</link>
      <description>So, will it be recommendable here to change NICE value to 20 for those java processes here ?&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; regards,&lt;BR /&gt;Kavita</description>
      <pubDate>Tue, 14 Dec 2010 11:25:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724071#M385993</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2010-12-14T11:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: NICE consuming high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724072#M385994</link>
      <description>I mean from whole system performance's perspective....</description>
      <pubDate>Tue, 14 Dec 2010 11:28:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724072#M385994</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2010-12-14T11:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: NICE consuming high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724073#M385995</link>
      <description>&amp;gt;will it be recommendable here to change NICE value to 20 for those java processes here?&lt;BR /&gt;&lt;BR /&gt;Sure, if this user is more important than the other nice users.  But it appears that those users are probably getting all of the CPU they can.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I mean from whole system performance's perspective.&lt;BR /&gt;&lt;BR /&gt;The overall system performance shouldn't change that much.  But it may starve the other users nice users.</description>
      <pubDate>Tue, 14 Dec 2010 21:02:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724073#M385995</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-12-14T21:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: NICE consuming high CPU</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724074#M385996</link>
      <description>Thanks a lot Dennis for your help here. It's always difficult &amp;amp; find out adequate resolution for such performance issues :)</description>
      <pubDate>Wed, 15 Dec 2010 09:36:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nice-consuming-high-cpu/m-p/4724074#M385996</guid>
      <dc:creator>Kavita Poonia</dc:creator>
      <dc:date>2010-12-15T09:36:55Z</dc:date>
    </item>
  </channel>
</rss>

