Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Managing process priority.
14th May, 2013, 12:20 AM
Post: #3
wilcoo Offline
Registered
Posts: 6
Joined: Apr 2013
Reputation: 4
RE: Managing process priority.
(13th May, 2013 11:17 PM)Fred Wrote:  Thanks for this, I'm already doing something like this but in an other way, but this seems to be a better solution. Now I'm using scripts containing these kind of lines:
Code:
sudo nice -n 15 /etc/init.d/nzbget start >/dev/null 2>&1 &

To add info: You can also change the priority of existing processes using renice, for instance for changing the priority of samba:
Code:
sudo renice 10 `pgrep smbd`
sudo renice 10 `pgrep nmbd`

Also, I have been told that you have to run the following before these priorities will have any effect, don't know if this is (still) true.
Code:
sudo sysctl kernel.sched_autogroup_enabled=0

Without the kernel.sched_autogroup_enabled it wont work.If you want to work without problems and you need to resize the swap otherwise you got problems with out of memory closeups. (i have 512Mb for swap on my RPI 512).
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Managing process priority. - Trinket - 13th May, 2013, 01:07 AM
RE: Managing process priority. - Fred - 13th May, 2013, 11:17 PM
RE: Managing process priority. - wilcoo - 14th May, 2013 12:20 AM
RE: Managing process priority. - zilexa - 14th May, 2013, 11:10 PM
RE: Managing process priority. - Trinket - 16th May, 2013, 05:55 AM
RE: Managing process priority. - zilexa - 27th May, 2013, 08:57 PM
RE: Managing process priority. - alstonamos - 4th Jul, 2016, 04:08 PM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 5th Jun, 2025, 04:59 PM Powered By MyBB, © 2002-2025 MyBB Group.