If non-essential processes load CPU, you can just drop their priority and let 
them.
Here's my shell script from the time more XFCE plugins were voracious - save 
this where you can find it, make sure the file is executable, then add "<your 
path>/leash_cpuhogs.sh" in Application Autostart tab in Session and Startup - 
those seem to run after enforced session applications proper, so unless there 
are more slowing bugs, it will work (otherwise "sleep 10" line at the start 
should do the trick).
To see what exactly is done just uncomment diagnostics and start it from 
terminal.

#!/bin/sh
NEWPRIORITY=8
HOGNAMES="libindicator"
# it's a regexp, so add more as "(libindicator|libcpugraph|whatever)"

# ps xao %p%a | grep -iP $HOGNAMES | grep -v "logout" | grep -v "grep"
HOGLIST=`ps xao %p%a | grep -iP $HOGNAMES | grep -v "logout" | grep -v "grep" | 
grep -o "^\s*[0-9]*"`
echo "$HOGLIST" | while read thisproc
do
#       echo deprioritizing $thisproc
        renice -n $NEWPRIORITY -p $thisproc
done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1582878

Title:
  panel-6-indicat uses 25% CPU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4/+bug/1582878/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to