Mailinglist Archive: opensuse-bugs (4173 mails)

< Previous Next >
[Bug 514638] New: `top' (part of procps package) does not honour `S' (cumulative mode) for %CPU
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 19 Jun 2009 03:28:10 -0600
  • Message-id: <bug-514638-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=514638


Summary: `top' (part of procps package) does not honour `S'
(cumulative mode) for %CPU
Classification: openSUSE
Product: openSUSE 10.3
Version: Final
Platform: PC
OS/Version: openSUSE 10.3
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: phdm@xxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---


Created an attachment (id=299210)
--> (http://bugzilla.novell.com/attachment.cgi?id=299210)
[PATCH] top : make %CPU cumulative-mode aware

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11)
Gecko/2009060200 SUSE/3.0.11-5.2 Firefox/3.0.11

Some of my workmates managed to create bash scripts spawning a multitude
of small short-lived processes. Although `top' showed a total of 65%us +
25%sy, none of those small processes, nor the bash scripts appeared in the
default top window, where %CPU is the sort key. When switching to `cumulative
mode', they did not appear either. They only appeared when I switched to
'TIME'
sort.

Here is a small patch I wrote to make %CPU `cumulative mode' aware.

I even wonder if `cumulative mode' should not be the default mode, to
make such programmers, or the poor guy who's called to debug a running
system aware of such mistakes.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >