Forum
Keep XBMC playing and download without problems tweak - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Testing & Experimental (/forum-21.html)
+--- Thread: Keep XBMC playing and download without problems tweak (/thread-812.html)



Keep XBMC playing and download without problems tweak - wilcoo - 19th Apr, 2013 08:24 AM

I use this tweak (kernel.sched_autogroup_enabled = 0) and now i dont have to shutdown or pause the downloads and nice work great no more hickups.

What to do:
First change the kernel scheduler

sudo sysctl kernel.sched_autogroup_enabled=0

sudo reboot

After that you can change the priority of the download process (NzbGet,Transmission)

sudo top -u xbian

Find the PID of Nzbget|Transmission and press r (renice) fill in the PID after that 5 (Higher is lower priority)

You can do this again for couch/sickbeard/headphones set it on level 6

If you want it every time it's boot up then look at this:
start-stop-daemon > look for this " -N, --nicelevel int"

Here is the reference where is got the idea.

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=32138

And work from the usb hardisk the easy way and no need for the SD only for boot.

http://zeroset.wordpress.com/2012/10/03/move-an-existing-raspbian-installation-from-memory-sd-card-to-usb-flash-drive-stick/

I hope i give your good information it's work great for me.


RE: Keep XBMC playing and download without problems tweak - Fred - 20th Apr, 2013 06:03 PM

Could you maybe explain a bit more how to achieve this. I can't work it out with the links you gave, how can I for instance set the level for a process?


RE: Keep XBMC playing and download without problems tweak - wilcoo - 20th Apr, 2013 06:53 PM

You can do it realtime with the TOP command [sudo top] and press the r key give te process id number and after that give a number for the level.

Here some other info

At last if you want it with the boot process.

start-stop-daemon > look for this " -N, --nicelevel int"

I hope it's help you on the way.

I work this out with a little help from Google, linux is a very new OS for me.


RE: Keep XBMC playing and download without problems tweak - Fred - 20th Apr, 2013 07:42 PM

Okay thanks, now where do I add the line
Code:
kernel.sched_autogroup_enabled = 0
?
I can't find a file local.conf, or should I create it?


RE: Keep XBMC playing and download without problems tweak - wilcoo - 20th Apr, 2013 10:22 PM

(20th Apr, 2013 07:42 PM)Fred Wrote:  Okay thanks, now where do I add the line
Code:
kernel.sched_autogroup_enabled = 0
?
I can't find a file local.conf, or should I create it?

To add the line enter :
sudo sysctl kernel.sched_autogroup_enabled=0

Thats all.


RE: Keep XBMC playing and download without problems tweak - Fred - 20th Apr, 2013 10:26 PM

Thanks a lot! Works like a charm!