I can confirm the problem, and it seems it is due to us reading syslog and 
syslog
getting constant updates. ( tail -f /var/log/syslog).

The script needs to parse every syslog line for potential apparmor errors which 
is
expensive. There was another issue with listening on the pipes but it alone did 
not
solve the problem. Only completely disabling the parsing of syslog updates 
stops python
from taking up CPU.

The question is now do we want to drop reading syslog files or do we live with 
the CPU
consumption... 

Another question is though why syslog is flooded with messages.

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

Title:
  Running an app on the phone with the SDK gets python spinning on 100%
  cpu

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-developer-experience/+bug/1584093/+subscriptions

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

Reply via email to