Re: kernel thread as real threads..

From: Giorgos Keramidas <keramida_at_freebsd.org>
Date: Fri, 20 Jan 2006 22:02:30 +0200
On 2006-01-20 11:16, Julian Elischer <julian_at_elischer.org> wrote:
> The KSEGRPs stats will be collected to the process when asked
> for.  I will probably also change the way that 'ps' shows these
> (and threads).  I'm not sure what to do about top yet. we
> really need to be able to show a process name AND a thread name
> when the threads are shown and have names.

This will require a certain amount of bikesheding, as it always
happens when we have to change the way top works.  With CPU being
the default instead of WCPU in my top here, the output is:

-------------------------------------------------------------------------------
last pid: 96294;  load averages:  1.01,  1.04,  1.06    up 0+07:22:36  21:56:41
82 processes:  3 running, 79 sleeping
CPU states:     % user,     % nice,     % system,     % interrupt,     % idle
Mem: 224M Active, 101M Inact, 77M Wired, 26M Cache, 60M Buf, 12M Free
Swap: 1200M Total, 84M Used, 1116M Free, 6% Inuse

  PID USERNAME  THR PRI NICE   SIZE    RES STATE    TIME    CPU COMMAND
 1190 keramida    4  20    0   241M 78604K kserel   3:42  0.00% firefox-bin
  935 keramida    1  96    0   233M 38068K RUN      3:42  0.00% Xorg
 1088 keramida    1  96    0 47528K  3592K select   0:43  0.00% fetchmail
  970 root        1  96    0 60704K  2972K select   0:31  0.00% xterm
  962 keramida    1  96    0 96276K  8528K select   0:23  0.00% xfce4-panel
  559 root        1  96    0 36312K   404K select   0:14  0.00% powerd
 4581 build       1  -8    0 46456K  4120K piperd   0:11  0.00% perl5.8.7
 3536 root        1  96    0 39236K  1656K select   0:10  0.00% screen
-------------------------------------------------------------------------------

Even adding the 4 character-columns of the THR column ignited a
moderate amount of bitching, so it will be quite difficult to fit
more thing in this display (I mean, without removing anything
that is currently shown).

When threads are displayed separately, there _is_ some room, but
not much (marked with hash characters below but movable anywhere
we like to move it):

-------------------------------------------------------------------------------
last pid: 97040;  load averages:  0.38,  0.85,  0.98    up 0+07:25:06  21:59:11
69 processes:  2 running, 67 sleeping
CPU states:  1.4% user,  0.0% nice,  2.9% system,  2.9% interrupt, 92.8% idle
Mem: 193M Active, 106M Inact, 74M Wired, 17M Cache, 60M Buf, 50M Free
Swap: 1200M Total, 84M Used, 1116M Free, 6% Inuse

  PID USERNAME PRI NICE   SIZE    RES STATE    TIME    CPU COMMAND     ########
25254 keramida  96    0 60704K  5344K select   0:03  0.10% xterm       ########
  935 keramida  96    0   233M 38068K select   3:43  0.00% Xorg	       ########
 1190 keramida  96    0   241M 78604K select   3:42  0.00% firefox-bin ########
 1190 keramida  96    0   241M 78604K select   3:42  0.00% firefox-bin ########
 1190 keramida  20    0   241M 78604K kserel   3:42  0.00% firefox-bin ########
-------------------------------------------------------------------------------
Received on Fri Jan 20 2006 - 19:02:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:51 UTC