Bug 120460 - top does not show threaded processes properly
top does not show threaded processes properly
Status: CLOSED DUPLICATE of bug 116783
Product: Fedora
Classification: Fedora
Component: procps (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Depends On:
  Show dependency treegraph
Reported: 2004-04-08 19:20 EDT by Hrunting Johnson
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-21 14:02:30 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Hrunting Johnson 2004-04-08 19:20:16 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6)
Gecko/20040206 Firefox/0.8

Description of problem:
When viewing processes in top, threaded processes aren't displayed
correctly.  Either a) the threads should be shown individually or b)
the threaded process should show the combined statistics of all
threads.  Currently, only the statistics for the parent thread are
shown.  Since parent threads are often just signal listeners,
multi-threaded processes that consume lots of CPU often show up as not
consuming any.

Previously, the H option inside top would show all threads, but that
was before NPTL and the single-PID thread model.

Solaris' top gives you an option to display either mode.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. start threaded process
2. start top

Actual Results:  Top displays only the CPU statistics (memory looks
okay) for the parent thread, not all threads (either individually or

Expected Results:  Top displays the CPU statistics for all threads,
either individually or summed.

Additional info:

A good example of a process that exhibits this behavior is Cyclone
from Highwinds Software.
Comment 1 Peter Oliver 2004-07-22 18:13:11 EDT
I notice that this is a duplicate of 116783, but bugzilla won't let me
mark it as such.
Comment 2 Albert Cahalan 2004-07-28 11:30:56 EDT
How does a user select behavior on Solaris?
(which key and/or option)
Comment 3 Eric Paris 2004-08-14 21:01:34 EDT

*** This bug has been marked as a duplicate of 116783 ***
Comment 4 Red Hat Bugzilla 2006-02-21 14:02:30 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.