<?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: Using Nice in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-nice/m-p/2556303#M28784</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;  nice is the command to alter the default priority while executing itselg. See this example&lt;BR /&gt;&lt;BR /&gt;sam's default priority is 20. If I am running like this&lt;BR /&gt;&lt;BR /&gt;#nice -n 5 sam&lt;BR /&gt;&lt;BR /&gt;   Now sam's priority will be 25.&lt;BR /&gt;&lt;BR /&gt;#nice -n -5 sam&lt;BR /&gt;&lt;BR /&gt;   Now sam's priority will be 15.&lt;BR /&gt;&lt;BR /&gt;  In ur case U can use renice command. This is for altering the priority of running application. See example&lt;BR /&gt;&lt;BR /&gt;suppose sam is running with a priority of 20 with process id 8702. Then do like this&lt;BR /&gt;&lt;BR /&gt;#renice -n -5 8702&lt;BR /&gt;&lt;BR /&gt;  Now sam' priority will get change to 15&lt;BR /&gt;&lt;BR /&gt;#renice -n 5 8702&lt;BR /&gt;&lt;BR /&gt;  Now sam's priority will change to 25 from 20.&lt;BR /&gt;&lt;BR /&gt;Use the same in ur application..And see man page of nice and renice.&lt;BR /&gt;&lt;BR /&gt;Best of luck&lt;BR /&gt;&lt;BR /&gt;Shahul</description>
    <pubDate>Tue, 24 Jul 2001 12:48:56 GMT</pubDate>
    <dc:creator>Shahul</dc:creator>
    <dc:date>2001-07-24T12:48:56Z</dc:date>
    <item>
      <title>Using Nice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-nice/m-p/2556302#M28783</link>
      <description>I have the following process and i want to use nice to give it a different priority.  How can i do this?&lt;BR /&gt;&lt;BR /&gt;CPU TTY PID USERNAME PRI NI SIZE RES STATE &lt;BR /&gt;2   ? 11340 patrol   255 30 1020K1444K run&lt;BR /&gt;&lt;BR /&gt;TIME %WCPU  %CPU COMMAND&lt;BR /&gt;81:47 99.84 99.66 dcm&lt;BR /&gt;&lt;BR /&gt;How?</description>
      <pubDate>Tue, 24 Jul 2001 12:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-nice/m-p/2556302#M28783</guid>
      <dc:creator>Vito Sarducci</dc:creator>
      <dc:date>2001-07-24T12:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using Nice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-nice/m-p/2556303#M28784</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;  nice is the command to alter the default priority while executing itselg. See this example&lt;BR /&gt;&lt;BR /&gt;sam's default priority is 20. If I am running like this&lt;BR /&gt;&lt;BR /&gt;#nice -n 5 sam&lt;BR /&gt;&lt;BR /&gt;   Now sam's priority will be 25.&lt;BR /&gt;&lt;BR /&gt;#nice -n -5 sam&lt;BR /&gt;&lt;BR /&gt;   Now sam's priority will be 15.&lt;BR /&gt;&lt;BR /&gt;  In ur case U can use renice command. This is for altering the priority of running application. See example&lt;BR /&gt;&lt;BR /&gt;suppose sam is running with a priority of 20 with process id 8702. Then do like this&lt;BR /&gt;&lt;BR /&gt;#renice -n -5 8702&lt;BR /&gt;&lt;BR /&gt;  Now sam' priority will get change to 15&lt;BR /&gt;&lt;BR /&gt;#renice -n 5 8702&lt;BR /&gt;&lt;BR /&gt;  Now sam's priority will change to 25 from 20.&lt;BR /&gt;&lt;BR /&gt;Use the same in ur application..And see man page of nice and renice.&lt;BR /&gt;&lt;BR /&gt;Best of luck&lt;BR /&gt;&lt;BR /&gt;Shahul</description>
      <pubDate>Tue, 24 Jul 2001 12:48:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-nice/m-p/2556303#M28784</guid>
      <dc:creator>Shahul</dc:creator>
      <dc:date>2001-07-24T12:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using Nice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-nice/m-p/2556304#M28785</link>
      <description>Hi . the DCM is a process of &lt;BR /&gt; DCE  Configuration Manager . &lt;BR /&gt;&lt;BR /&gt;you cant change the prio that he is running but you need to deside if you need the DCE at all .&lt;BR /&gt;&lt;BR /&gt;most of the software that i kmow that use the DCE is OPENVIEW software of HP . &lt;BR /&gt;&lt;BR /&gt;but i dont think that you can change the prio of the process .&lt;BR /&gt;&lt;BR /&gt;you can remove the DCE or disable it .</description>
      <pubDate>Tue, 24 Jul 2001 12:52:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-nice/m-p/2556304#M28785</guid>
      <dc:creator>eran maor</dc:creator>
      <dc:date>2001-07-24T12:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using Nice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-nice/m-p/2556305#M28786</link>
      <description>Hi,&lt;BR /&gt;If I agree with Shahul on nice usage, I think think its more a kill of the process you need!&lt;BR /&gt;(Mind you Im pleased to see Im not the only one having to deal with such a bad product, why didnt you get sysload?...)&lt;BR /&gt;More seriously I wrote to our patrol administrator that IF I see patrol resources exceed 30% on one of the boxes I administer, I will just kill all patrol processes AND no I wont give him the root passwd on install...&lt;BR /&gt;Up to BMC to tune correctly their product...&lt;BR /&gt;So this is what I have on an HP box:&lt;BR /&gt;TTY        PID USERNAME PRI NI   SIZE    RES STATE    TIME %WCPU  %CPU COMMAND&lt;BR /&gt;  ?       21051 patrol   154 24  7892K  5812K sleep 5379:38  1.50  1.50 PatrolAgent&lt;BR /&gt;?       26970 patrol   154 28  1448K  1688K sleep   47:51  0.07  0.07 dcm&lt;BR /&gt;&lt;BR /&gt;Its nothing like your results....&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;&lt;BR /&gt;Victor</description>
      <pubDate>Tue, 24 Jul 2001 12:59:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-nice/m-p/2556305#M28786</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2001-07-24T12:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using Nice</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-nice/m-p/2556306#M28787</link>
      <description>Hi,&lt;BR /&gt;All the process started by users will be running with system defualt priority of 20.&lt;BR /&gt; Normally, all processes inherit the system nice value of their parent process when they are spawned.  &lt;BR /&gt;At boot-up, the system starts the init process at a system nice value of 20 (system default). On most systems, all processes (down to the&lt;BR /&gt;login shells) inherit this priority. Starting from their individual login shell processes, users can alter the system nice value of&lt;BR /&gt;descendent processes to as much as 39, or, with appropriate privileges, as little as 0.  A system nice value of 0 establishes an&lt;BR /&gt;extremely high priority, whereas a value of 39 indicates a very low priority.&lt;BR /&gt;&lt;BR /&gt;So in order to run your script at high priority (0) you need to issue the command #nice --20 dcm(your command)</description>
      <pubDate>Tue, 24 Jul 2001 13:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-nice/m-p/2556306#M28787</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2001-07-24T13:02:44Z</dc:date>
    </item>
  </channel>
</rss>

