[Bug 130081] New - Sorting processed by %CPU does not work when "Process Dependancies" is on

bugzilla-daemon@widget.gnome.org bugzilla-daemon@widget.gnome.org
Sat, 27 Dec 2003 10:52:33 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=130081

Changed by seb128@debian.org.

--- shadow/130081	Sat Dec 27 10:52:33 2003
+++ shadow/130081.tmp.10746	Sat Dec 27 10:52:33 2003
@@ -0,0 +1,51 @@
+Bug#: 130081
+Product: system-monitor
+Version: 2.4.x
+OS: Linux
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: normal
+Priority: Normal
+Component: general
+AssignedTo: kfv101@psu.edu                            
+ReportedBy: seb128@debian.org               
+QAContact: system-monitor-qa-maint@bugzilla.gnome.org
+TargetMilestone: ---
+URL: 
+Cc: pkg-gnome-maintainers@lists.alioth.debian.org
+Summary: Sorting processed by %CPU does not work when "Process Dependancies" is on
+
+This bug was originally reported in the Debian BTS:
+http://bugs.debian.org/216436
+
+'"I saw this bug when running nautilus with the tree view in the left pane
+which caused fam to use 82% system CPU as shown by the 'top' program.  The
+gnome-panel system monitor applet also showed high system CPU use but
+asking gnome-system-monitor to sort processes by %CPU showed
+gnome-system-monitor itself as the highest user at about 5%.
+
+If I used the search field to search for fam, fam was then highlighted and
+shown correctly as using 82% CPU but it wasn't at the top of the list or
+indeed anywhere near the top.  I could only get fam to the top of the list
+by turning off the "Process Dependencies" option."
+
+"If I turn on "View Process Dependencies" from the view menu the CPU
+sorting becomes broken.  What seems to have is that the top level
+processes, i.e. those whose parent is PID 1 (init) get sorted by CPU
+utilization and the all other processes are simply displayed under  
+their parent process.
+This algorithm isn't useful as processes using too much CPU don't
+necessarily need to have init as their parent.
+
+The algorithm I suggest instead is that a separate, CPU figure is used for
+sorting which for top level process is sum of it's own direct utililastion
+and the the equivalent firgure for each of it's children recursively.
+
+The same algorithm would need to be implemented for memory too when the
+dependency view is turned on.
+
+If I turn off the process dependency view, sorting works correctly."
+
+
+I'm not sure but this bug is perhaps related to #85388