Subject: Re: good top program for Cygwin
From: Stephen Powell <[email-masked]>
To: [email-masked]
Date: Thu, 19 Feb 2004 15:37:53 +1100

On Tue, 17 Feb 2004, [email-masked] wrote:

> Anyone know of a decent top program to run from the command line?
> The one i have with cygwin installation has no help, and doesnt seem
> to show all the windows 2000 processes running on my box.  thanks
> Simon

If you want a program that is top like you could try pslist in the
PSTools package from <http://www.sysinternals.com>.  It is not cygwin
aware.

pslist -s 

-s [n]      Run in task-manager mode, for optional seconds specified.
            Press Escape to abort.

Screen Shot:

Process information for D3LD581S:

Name          Pid CPU Thd  Hnd    Mem    User Time   Kernel Time   Elapsed Time
VetMsg       1664   0   8   70   2304  0:00:01.890   0:00:02.187    0:50:13.906
System          4   0  79  533    224  0:00:00.000   0:00:34.312    0:00:00.000
SMSS          544   0   3   21    468  0:00:00.078   0:00:00.125    0:50:48.437
CSRSS         600   0  14  863   2984  0:00:04.703   0:00:07.953    0:50:44.109
WINLOGON      624   0  24  527   4108  0:00:00.546   0:00:02.359    0:50:42.781
SERVICES      668   0  22  468  11344  0:00:03.046   0:00:06.031    0:50:41.875
LSASS         680   0  21  333   1432  0:00:00.421   0:00:00.703    0:50:41.875
ati2evxx      840   0   4   52   2420  0:00:00.031   0:00:00.218    0:50:41.156
SVCHOST       876   0  10  357   4208  0:00:00.140   0:00:00.250    0:50:40.531
SVCHOST       956   0  87 1648  22408  0:00:01.421   0:00:04.453    0:50:39.453
SVCHOST      1092   0   9   81   2464  0:00:00.031   0:00:00.062    0:50:38.781
SVCHOST      1120   0  24  286   7256  0:00:00.156   0:00:00.171    0:50:38.703
[...]

or possibly pmon from the Windows Resource Kit:

 Memory: 1047548K Avail: 607300K  PageFlts:  1438 InRam Kernel: 2160K P:32724K
 Commit: 513920K/ 433792K Limit:2519672K Peak: 555220K  Pool N:20336K P:32916K

                Mem  Mem   Page   Flts Commit  Usage   Pri  Hnd Thd  Image
CPU  CpuTime  Usage Diff   Faults Diff Charge NonP Page     Cnt Cnt  Name

             125868   64  2097084  486                             File Cache
 0   0:02:24     20    0        1    0      0    0    0  0    0  2 Idle Process
 0   0:00:36    224    0     7090    0     32    0    0  8  533 79 System
 0   0:00:00    468    0      305    0    176    0    5 11   21  3 SMSS.EXE
 0   0:00:14    808    0    26069    0   1920    7   63 13  826 14 CSRSS.EXE
 0   0:00:02   4108    0     7613    0   7284   59   55 13  527 24 WINLOGON.EXE
 0   0:00:09  11356    0    15128    0  10096   14   49  9  467 22 SERVICES.EXE
 0   0:00:01   1432    0     5075    0   5728    8   35  9  333 21 LSASS.EXE
 0   0:00:00   2420    0      666    0   2540    1   17  8   52  4 ati2evxx.exe
 0   0:00:00   4208    0     1297    0   3840    8   22  8  357 10 SVCHOST.EXE
 0   0:00:06  22432    0    19793    0  14880   73  112  8 1648 87 SVCHOST.EXE
 0   0:00:00   2464    0      722    0   1112    3   13  8   81  9 SVCHOST.EXE
 0   0:00:00   7256    0     1969    0   5436   11   37  8  286 24 SVCHOST.EXE
[...]

-- 
Stephen Powell
stephen_powell <at> optusnet.com.au

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/