Subject: Re: changes to top to print wchan for sleeping procs
To: enami tsugutomo <enami@but-b.or.jp>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-userlevel
Date: 01/17/2001 15:26:07
On Wed, 17 Jan 2001, enami tsugutomo wrote:
> Here is my local mod to top(1) to print wchan for sleeping process.
> Some of us also likes this change. So, I'd like to commit this. Is
> there any objection or thoughts? Especially, is it better to have a
...
> PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
> 21958 enami 10 0 748K 1232K wait 0:00 0.67% 0.24% bash
> 4 root 18 0 0K 24M syncer 16:19 0.15% 0.15% ioflush
> 21957 root 2 0 268K 1380K select 0:00 0.22% 0.10% sshd
> 284 enami 2 0 8200K 9520K select 56:17 0.00% 0.00% XFree86
> 11117 enami 36 4 20M 4K stop 22:14 0.00% 0.00% <emacs>
> 23502 enami 2 0 712K 4K select 7:28 0.00% 0.00% <slogin>
> 2863 enami 28 0 1820K 4K stop 3:44 0.00% 0.00% <w3m>
> 287 enami 2 0 396K 4K select 1:23 0.00% 0.00% <kterm>
> 166 root 2 0 48K 348K nfsd 1:02 0.00% 0.00% nfsd
I think it's confusing as see seem to have a whole bunch of new CPU states
now. replacing wchan in favour of wchan, and leaving the old state avoids
this.
- Hubert
--
Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>