<?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: How to Set Priority of a Running Process in Linux	</title>
	<atom:link href="https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Mon, 29 Apr 2024 07:46:51 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Bo		</title>
		<link>https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/comment-page-1/#comment-1848237</link>

		<dc:creator><![CDATA[Bo]]></dc:creator>
		<pubDate>Wed, 20 Jul 2022 08:04:53 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=27112#comment-1848237</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/comment-page-1/#comment-1286311&quot;&gt;Dr. GN Rao&lt;/a&gt;.

Everywhere I&#039;ve seen the same confusing &quot;explanation&quot; and they make it even worse.

The correct understanding is I suppose:
&lt;pre&gt; 
high priority = lower priority value
&lt;/pre&gt;
Another confusing thing, see the output of: 
&lt;pre&gt;
# renice -n -12 $PID
&lt;/pre&gt;
is: old priority 0 new priority - 12?

When in reality is the nice value!!! because the old priority is 20 and new 8!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/comment-page-1/#comment-1286311">Dr. GN Rao</a>.</p>
<p>Everywhere I&#8217;ve seen the same confusing &#8220;explanation&#8221; and they make it even worse.</p>
<p>The correct understanding is I suppose:</p>
<pre> 
high priority = lower priority value
</pre>
<p>Another confusing thing, see the output of: </p>
<pre>
# renice -n -12 $PID
</pre>
<p>is: old priority 0 new priority &#8211; 12?</p>
<p>When in reality is the nice value!!! because the old priority is 20 and new 8!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gwyneth Llewelyn		</title>
		<link>https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/comment-page-1/#comment-1607535</link>

		<dc:creator><![CDATA[Gwyneth Llewelyn]]></dc:creator>
		<pubDate>Wed, 13 Oct 2021 13:20:21 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=27112#comment-1607535</guid>

					<description><![CDATA[As @Will mentioned over a year ago, setting nice/renice manually is great, but it will only last until the end of the user session.

If your system is started via &lt;code&gt;systemd&lt;/code&gt; (most distros, including many embedded systems such as NAS, are slowly moving towards &lt;code&gt;systemd&lt;/code&gt; as the &lt;em&gt;de facto&lt;/em&gt; standard way of booting a Linux server), you will very likely manage services by configuring files inside &lt;code&gt;/etc/systemd/system&lt;/code&gt; or thereabouts. You can set the nice level at boot time by adding the directive &lt;code&gt;Nice=XX&lt;/code&gt; where XX can be set from -20 (highest priority) and 19 (lowest priority) — the default value is zero.

Source: https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Nice=]]></description>
			<content:encoded><![CDATA[<p>As @Will mentioned over a year ago, setting nice/renice manually is great, but it will only last until the end of the user session.</p>
<p>If your system is started via <code>systemd</code> (most distros, including many embedded systems such as NAS, are slowly moving towards <code>systemd</code> as the <em>de facto</em> standard way of booting a Linux server), you will very likely manage services by configuring files inside <code>/etc/systemd/system</code> or thereabouts. You can set the nice level at boot time by adding the directive <code>Nice=XX</code> where XX can be set from -20 (highest priority) and 19 (lowest priority) — the default value is zero.</p>
<p>Source: <a target="_blank" href="https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Nice=" rel="nofollow ugc">https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Nice=</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Will		</title>
		<link>https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/comment-page-1/#comment-1331086</link>

		<dc:creator><![CDATA[Will]]></dc:creator>
		<pubDate>Thu, 30 Apr 2020 16:16:15 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=27112#comment-1331086</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/comment-page-1/#comment-1330383&quot;&gt;Aaron Kili&lt;/a&gt;.

Sorry, I meant permanently. As I understand it &lt;strong&gt;Renice&lt;/strong&gt; and &lt;strong&gt;Nice&lt;/strong&gt; only are in effect until the next user session. I want the processes to always run under that priority without me issuing a command every time.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/comment-page-1/#comment-1330383">Aaron Kili</a>.</p>
<p>Sorry, I meant permanently. As I understand it <strong>Renice</strong> and <strong>Nice</strong> only are in effect until the next user session. I want the processes to always run under that priority without me issuing a command every time.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/comment-page-1/#comment-1330383</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Mon, 27 Apr 2020 06:20:56 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=27112#comment-1330383</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/comment-page-1/#comment-1329757&quot;&gt;Will&lt;/a&gt;.

@Will

Just run this command specifying your process:
&lt;pre&gt;
$ sudo nice -5 process_name arguments1 arguement2 ....
&lt;/pre&gt;
If it&#039;s already running, renice it like this(replace 1055 with the actual process ID):
&lt;pre&gt;
$ sudo renice -n  -12  -p 1055
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/comment-page-1/#comment-1329757">Will</a>.</p>
<p>@Will</p>
<p>Just run this command specifying your process:</p>
<pre>
$ sudo nice -5 process_name arguments1 arguement2 ....
</pre>
<p>If it&#8217;s already running, renice it like this(replace 1055 with the actual process ID):</p>
<pre>
$ sudo renice -n  -12  -p 1055
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Will		</title>
		<link>https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/comment-page-1/#comment-1329757</link>

		<dc:creator><![CDATA[Will]]></dc:creator>
		<pubDate>Sat, 25 Apr 2020 21:39:20 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=27112#comment-1329757</guid>

					<description><![CDATA[The last section explains how to set a whole group of processes to be a given niceness. How do I set just one process instead of a whole group? As an example, I have a Linux system running the &lt;strong&gt;OpenMediaVault NAS&lt;/strong&gt; array. My objective is to set the &lt;strong&gt;omv-engined&lt;/strong&gt; process and the &lt;strong&gt;smbd&lt;/strong&gt; process as a &lt;strong&gt;-20&lt;/strong&gt; niceness.]]></description>
			<content:encoded><![CDATA[<p>The last section explains how to set a whole group of processes to be a given niceness. How do I set just one process instead of a whole group? As an example, I have a Linux system running the <strong>OpenMediaVault NAS</strong> array. My objective is to set the <strong>omv-engined</strong> process and the <strong>smbd</strong> process as a <strong>-20</strong> niceness.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
