handle high cpu load and high memory usage issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Apport |
New
|
Undecided
|
James Hunt |
Bug Description
This discussion about how we could detect high cpu load on Touch petered out:
https:/
It's a difficult problem to solve without generating lots of false positives. However, I wonder if we could approach the issue slightly differently, atleast on the desktop for now by making apport essentially run top(1) [1] and check to see if:
- the top CPU and/or memory processes relate to the package the user has just run apport-bug for.
If so, ask the user if they are raising a bug due to a suddenly slow/hot/noisy system and then attach the following the the apport-filed bug report:
- the top(1) output.
- the stack traces for the offending binaries ("sudo cat /proc/$pid/stack").
[1] - http://
Related branches
- Martin Pitt (community): Needs Fixing
-
Diff: 404 lines (+395/-0)2 files modifieddata/general-hooks/resource_hogs.py (+205/-0)
test/test_resource_hogs.py (+190/-0)
summary: |
- handle high cpu load and issues + handle high cpu load and high memory usage issues |
Changed in apport: | |
assignee: | nobody → James Hunt (jamesodhunt) |