Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[IDEA] Dynamic priority process
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Idea: Dynamic priority process
13th Jul, 2013, 12:25 AM
Post: #1
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
Dynamic priority process
Hi,

i've done some tests to set priority in xbmc and other process in function of their utilisations

i've writted an xbmc_upstart_bridge that will send xbmc event to upstart .
events are a bit documented on github

For priority management,
xbmcplevel will be use.

it's a kind of XBMC priority profile which could take value from 0 to 5,
0, xbmc is stopped - 5 xbmc very high priority.

So, now, it doesn't do not many thing, just change the xbmc nice value, depending on it's state.

now, i'll use that defaut value :

xbmcplevel
1 : nice = 3
2 : nice = 0
3&4 : nice = -5
5 : nice = -7

to install :
(you must have git and fakeroot installed)

  1. Install upstart_xbmc_bridge
    PHP Code:
    git clone https://github.com/belese/xbian-package-upstart-xbmc-bridge
    cd  xbian-package-upstart-xbmc-bridge
    ./gen.package.sh
    sudo dpkg 
    -i xbian-package-upstart-xbmc-bridge1.0.deb 
  2. Copy the upstart job
    Download attached file and copy on /etc/init/
  3. Reload Upstart configuration
    sudo initctl reload-configuration


and that's all for now. xbmc nice value should be changed automaticaly when xbmc state change

In my TODO list :
  • write priority job for download package
    but it's my first upstart script, and i'm not happy with this one, but take me time to understand all syntax.
  • maybe change the cpu governor when xbmc is in use
  • maybe change ionice when player is started


Attached File(s)
.zip  xbmc-priority.conf.zip (Size: 278 bytes / Downloads: 3)

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Dynamic priority process - belese - 13th Jul, 2013 12:25 AM
RE: Dynamic priority process - Fred - 13th Jul, 2013, 01:00 AM
RE: Dynamic priority process - belese - 13th Jul, 2013, 01:11 AM
RE: Dynamic priority process - mk01 - 18th Jul, 2013, 05:10 AM
Re: Dynamic priority process - f1vefour - 13th Jul, 2013, 07:44 AM
RE: Dynamic priority process - Fred - 13th Jul, 2013, 07:57 AM
RE: Dynamic priority process - belese - 13th Jul, 2013, 07:09 PM
RE: Dynamic priority process - Fred - 13th Jul, 2013, 08:57 PM
RE: Dynamic priority process - mk01 - 17th Jul, 2013, 05:52 AM
RE: Dynamic priority process - belese - 17th Jul, 2013, 07:33 PM
RE: Dynamic priority process - belese - 18th Jul, 2013, 09:32 AM
RE: Dynamic priority process - mk01 - 19th Jul, 2013, 06:42 AM
RE: Dynamic priority process - belese - 18th Jul, 2013, 10:40 PM
RE: Dynamic priority process - belese - 25th Jul, 2013, 05:58 AM
RE: Dynamic priority process - CurlyMo - 25th Jul, 2013, 08:25 AM
RE: Dynamic priority process - belese - 25th Jul, 2013, 06:32 PM
RE: Dynamic priority process - belese - 26th Jul, 2013, 11:17 PM
RE: Dynamic priority process - mk01 - 12th Aug, 2013, 04:02 PM
RE: Dynamic priority process - belese - 13th Aug, 2013, 01:35 AM
RE: Dynamic priority process - mk01 - 13th Aug, 2013, 02:36 AM
RE: Dynamic priority process - belese - 14th Aug, 2013, 02:47 AM
RE: Dynamic priority process - mk01 - 14th Aug, 2013, 03:37 AM
RE: Dynamic priority process - belese - 14th Aug, 2013, 05:19 AM

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

Current time: 13th Jun, 2025, 11:38 PM Powered By MyBB, © 2002-2025 MyBB Group.