blob: 368ea314c0797f894df70a6ef93eac1ce43097ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
The following is a demonstration of the topsysproc program,
Here we run topsysproc with no arguments,
# topsysproc
2005 Jun 13 22:25:16, load average: 1.24, 1.23, 1.21 syscalls: 1347
PROCESS COUNT
svc.startd 1
nscd 1
setiathome 7
poold 18
sshd 21
java_vm 35
tput 49
dtrace 56
Xorg 108
sh 110
clear 122
mozilla-bin 819
The screen refreshes every 1 second, which can be changed by specifying
a different interval at the command line.
In the above output we can see that processes with the name "mozilla-bin"
made 819 system calls, while processes with the name "clear" made 122.
Now topsysproc is run with a 15 second interval,
# topsysproc 15
2005 Jun 13 22:29:43, load average: 1.19, 1.20, 1.20 syscalls: 15909
PROCESS COUNT
fmd 1
inetd 2
svc.configd 2
gconfd-2 3
miniserv.pl 3
sac 6
snmpd 6
sshd 8
automountd 8
ttymon 9
svc.startd 17
nscd 21
in.routed 37
sendmail 41
setiathome 205
poold 293
dtrace 413
java_vm 529
Xorg 1234
mozilla-bin 13071
|