<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: renice command: Change the Priority of a Already Running Process</title> <atom:link href="http://www.cyberciti.biz/faq/howto-change-unix-linux-process-priority/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/howto-change-unix-linux-process-priority/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Cameron</title><link>http://www.cyberciti.biz/faq/howto-change-unix-linux-process-priority/#comment-55635</link> <dc:creator>Cameron</dc:creator> <pubDate>Tue, 15 Feb 2011 03:26:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-change-unix-linux-process-priority/#comment-55635</guid> <description>I was curious about the question in the comments, so I did a little test:
cameron$ echo &quot;fib=lambda n: (n in (0,1) and [n] or [fib(n-1)+fib(n-2)])[0];print fib(38)&quot; &#124; python &amp;
[1] 76611
cameron$ ps -o command,pid,pri,ni -p 76611
COMMAND   PID PRI NI
python  76611  31  0
cameron$ sudo renice -4 76611
cameron$ ps -o command,pid,pri,ni -p 76611
COMMAND   PID PRI NI
python  76611  35 -4
cameron$ sudo renice -5 76611
cameron$ ps -o command,pid,pri,ni -p 76611
COMMAND   PID PRI NI
python  76611  36 -5
so, it looks like the command sets the nice value to the given value, rather than moving it relative to what is was before.</description> <content:encoded><![CDATA[<p>I was curious about the question in the comments, so I did a little test:</p><p>cameron$ echo &#8220;fib=lambda n: (n in (0,1) and [n] or [fib(n-1)+fib(n-2)])[0];print fib(38)&#8221; | python &amp;<br
/> [1] 76611<br
/> cameron$ ps -o command,pid,pri,ni -p 76611<br
/> COMMAND   PID PRI NI<br
/> python  76611  31  0<br
/> cameron$ sudo renice -4 76611<br
/> cameron$ ps -o command,pid,pri,ni -p 76611<br
/> COMMAND   PID PRI NI<br
/> python  76611  35 -4<br
/> cameron$ sudo renice -5 76611<br
/> cameron$ ps -o command,pid,pri,ni -p 76611<br
/> COMMAND   PID PRI NI<br
/> python  76611  36 -5</p><p>so, it looks like the command sets the nice value to the given value, rather than moving it relative to what is was before.</p> ]]></content:encoded> </item> <item><title>By: Simon</title><link>http://www.cyberciti.biz/faq/howto-change-unix-linux-process-priority/#comment-46445</link> <dc:creator>Simon</dc:creator> <pubDate>Mon, 15 Mar 2010 23:57:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-change-unix-linux-process-priority/#comment-46445</guid> <description>&quot;to me it seems unclear what happens when entering “renice -5 ” as root – does that mean a nice value of -5 or lowering the existing nice value by 5?&quot;
Great question.  I too am still confused by the usage of this command.  This also seems quite strange to me...
&quot;User cannot lower the nice values of their processes after they&#039;ve raised them.&quot;  Why would that be?</description> <content:encoded><![CDATA[<p>&#8220;to me it seems unclear what happens when entering “renice -5 ” as root – does that mean a nice value of -5 or lowering the existing nice value by 5?&#8221;</p><p>Great question.  I too am still confused by the usage of this command.  This also seems quite strange to me&#8230;</p><p>&#8220;User cannot lower the nice values of their processes after they&#8217;ve raised them.&#8221;  Why would that be?</p> ]]></content:encoded> </item> <item><title>By: Nudge</title><link>http://www.cyberciti.biz/faq/howto-change-unix-linux-process-priority/#comment-45759</link> <dc:creator>Nudge</dc:creator> <pubDate>Sat, 30 Jan 2010 14:11:04 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-change-unix-linux-process-priority/#comment-45759</guid> <description>&quot;2. User cannot start processes with nice values less than 20&quot;:
That&#039;s not really correct. It is possible for users to go down to nice value 0, e.g. by not using the nice command when starting processes. This results in processes having *priority* 20. Prority and nice-values belong together (NI 0 =&gt; PR 20, NI 19 =&gt; PR 39, NI -20 =&gt; PR 0).
According to the manual, renice can use delta values like +3 or -2 for changing nice values, but to me it seems unclear what happens when entering &quot;renice -5 &quot; as root - does that mean a nice value of -5 or lowering the existing nice value by 5?</description> <content:encoded><![CDATA[<p>&#8220;2. User cannot start processes with nice values less than 20&#8243;:</p><p>That&#8217;s not really correct. It is possible for users to go down to nice value 0, e.g. by not using the nice command when starting processes. This results in processes having *priority* 20. Prority and nice-values belong together (NI 0 =&gt; PR 20, NI 19 =&gt; PR 39, NI -20 =&gt; PR 0).</p><p>According to the manual, renice can use delta values like +3 or -2 for changing nice values, but to me it seems unclear what happens when entering &#8220;renice -5 &#8221; as root &#8211; does that mean a nice value of -5 or lowering the existing nice value by 5?</p> ]]></content:encoded> </item> <item><title>By: Sarika</title><link>http://www.cyberciti.biz/faq/howto-change-unix-linux-process-priority/#comment-38085</link> <dc:creator>Sarika</dc:creator> <pubDate>Fri, 13 Jun 2008 02:37:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-change-unix-linux-process-priority/#comment-38085</guid> <description>perfect!</description> <content:encoded><![CDATA[<p>perfect!</p> ]]></content:encoded> </item> </channel> </rss>
