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, 01:11 AM
Post: #3
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: Dynamic priority process
Yes 5 is maybe too much,
i'll do some test, and it's easier to remove level than add level, for now level 3 and 4 do the same.

in upstart script, it easy to react on more than one level, so 5 level could be interpreted as number level as you want.
ex :

start on xbmcplevel [12] will start when screensaver is on
start on xbmcplevel [345] will start when screensaver is off

or you can use other event (screensaver, player and library) that bridge send

For download package, the idea is create a xbmc_priority.conf like file, but when xbmc is low priority, it could set the download package higher priority and vice-versa.

Quote:Only thing I can think of is to higher the priority when a web-interface of one of the download packages is accessed
i was thinking about that too, look a bit in maraschino package, and should be easy to send an upstart event when a connection is receive, and create a upstart job that higher nice level for the process during 2 minutes (or more/less), and restore defaut priority after.

EDIT : Ater reflexion, you need to be root to send an upstart event, so this is not the solution
or by writing a script that send upstart event and add it to sudoers file

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:46 PM Powered By MyBB, © 2002-2025 MyBB Group.