[New Plugin] Process Priority Manager (1 Viewer)

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,070
    7,459
    Home Country
    Germany Germany
    Here is a small plugin, which I created for my own HTPC. It's the result of an idea which I had yesterday ;)

    warning:
    changing process priorities can cause crashes, slow down your system and maybe other bad things.
    this is an experimental plugin, use it at your own risk...


    What it is intended for?
    It modifies the Process Priority of user selected processes, so that they either run in "Idle", "Normal" or "Realtime" priority.

    I needed this feature, because on HTPC's there are often programs that causing high CPU load, leading to stuttering TV a.s.o. Typical candidates are:
    • AntiVirus scanne,
    • AntiVirus Updaters,
    • some windows services
    • maybe even MySQL service
    • ...

    How does it work?

    The plugin runs every 2 min, looks for processes you have defined and set the Priority of them. Simple ;)

    In the tv.log you can find:
    Code:
    2009-11-25 18:49:45.537633 [ProcessPrioritySetter]: Executing Process Priority Manager
    2009-11-25 18:49:45.537633 [ProcessPrioritySetter]: Set Process: avgchsva, ID: 4656 from Priority Normal to Idle
    2009-11-25 18:49:45.537633 [ProcessPrioritySetter]: Set Process: avgcsrvx, ID: 5336 from Priority Normal to Idle
    2009-11-25 18:49:45.537633 [ProcessPrioritySetter]: Set Process: avgtray, ID: 4572 from Priority Normal to Idle
    2009-11-25 18:49:45.537633 [ProcessPrioritySetter]: Set Process: avgcsrva, ID: 780 from Priority Normal to Idle
    2009-11-25 18:49:45.537633 [ProcessPrioritySetter]: Set Process: mysqld, ID: 1220 from Priority Normal to Idle
    2009-11-25 18:49:45.537633 [ProcessPrioritySetter]: Set Process: MPTail, ID: 3124 from Priority Normal to Idle
    Log entries are only created when the priority is changed, otherwise it's silent.


    How to install and configure?
    1. copy the .dll to TvServer\Plugins folder
    2. enter SetupTv, enable plugin
    3. choose your processes for idle, normal, realtime
    4. you can modify the settings, they are applied when leaving the config section



    Maybe someone else find it useful.

    Morpheus_xx
     

    Attachments

    • ScreenShot.png
      ScreenShot.png
      52.1 KB
    • ProcessPriorityManager.zip
      30.7 KB

    Users who are viewing this thread

    Top Bottom