Web lists-archives.com

Re: Privilege(s) needed to run top command




On 3/11/2019 9:50 AM, jwang wrote:
> This is used to work for a ordinary login.
>
> After re-install, top does not show the true load et al.  Nor processes
> owned by SYSTEM.
>
> Please shed some light.  Thanks a lot in advance.
>   
You mean this:

top - 13:26:15 up 1 day, 16:13,  1 user,  load average: 4.91, 7.22, 7.72
Tasks:  12 total,   1 running,  11 sleeping,   0 stopped,   0 zombie
%Cpu(s):  15.4/1.3   
17[                                                     ]
GiB Mem : 15.9/95.651  
[                                                     ]
GiB Swap:  0.0/95.651  
[                                                     ]
 
  PID USER      PR  NI    VIRT    RES  %CPU %MEM     TIME+ S
COMMAND           
 2016 SYSTEM     8   0    8.4m   8.2m   0.0  0.0   0:00.03 S
cygrunsrv         
 2017 SYSTEM     8   0    9.8m   9.1m   0.0  0.0   3:09.82 S  `-
cygserver     
 2018 SYSTEM     8   0    8.3m   7.8m   0.0  0.0   0:00.00 S
cygrunsrv         
 2019 SYSTEM     8   0    7.1m   6.9m   0.0  0.0   0:00.09 S  `-
dbus-daemon   
 2023 SYSTEM     8   0    6.9m   6.9m   0.0  0.0   0:00.03 S
syslogd           
 2028 Bliss\l+   8   0    7.6m   7.1m   0.0  0.0   0:00.00 S
inetd             
13134 Bliss\l+   8   0    7.0m   7.1m   0.0  0.0   0:00.06 S  `-
rlogind       
13135 Bliss\l+   8   0    8.8m  10.2m   0.0  0.0   0:00.49 S      `-
bash      
13267 Bliss\l+   8   0   10.2m  10.2m   3.0  0.0   0:02.68 R          `-
top   
 2046 Bliss\l+   8   0  154.6m 137.2m   0.0  0.1  19:23.48 S
XWin              
 2187 Bliss\l+   8   0    7.4m   7.4m   0.0  0.0   0:00.31 S
sshd              
 2514 Bliss\l+   8   0    9.6m  19.6m   0.0  0.0   0:00.40 S gvim
----

Did you mean that it doesn't show non-cygwin processes? or does your 'top'
really not display cygwin's SYSTEM processes?


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