Page 1 of 1

Change priority of serviio in ubuntu server headless 11.10

PostPosted: Mon Mar 26, 2012 8:07 pm
by johnsr11
I am running ubuntu server headless 11.10 with serviio 0.6.2 and I was wondering if there is a way to change the priority of serviio so that it gets more of my cpu than other processes. Is this possible?

Re: Change priority of serviio in ubuntu server headless 11.

PostPosted: Tue Mar 27, 2012 12:09 pm
by zip
the OS decides and allocates when needed.

Re: Change priority of serviio in ubuntu server headless 11.

PostPosted: Tue Mar 27, 2012 12:59 pm
by will
It is up to the OS, which will usually do a very good job of it.

You can however change it using nice, by changing your start up script to something like this
  Code:
nice -n -5 /path/to/serviio/bin/serviio.sh


Alternatively, if you just want ffmpeg which deals with transcoding to have a high priority, then write a short ffmpeg wrapper script that calls the real ffmpeg using nice to adjust its priority.

However, my approach is the oposite, I run anything that may take CPU time, but I don't care about, with a lower than normal priority.