Memory Usage - Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007 Installation Manual

Table of Contents

Advertisement

tester
4047
0.0
tester
4057
0.0
tester
4067
0.0
tester
4072
0.0
tester
4114
0.0
tester
4818
0.0
tester
4959
0.0
To check how many sshd processes are running, use the option -p together with the
command pidof, which lists the process IDs of the given processes.
tester@linux:~> ps -p `pidof sshd`
PID TTY
STAT
3524 ?
Ss
4813 ?
Ss
4817 ?
R
The process list can be formatted according to your needs. The option -L returns a list
of all keywords. Enter the following command to issue a list of all processes sorted by

memory usage:

tester@linux:~> ps ax --format pid,rss,cmd --sort rss
PID
RSS CMD
2
0 [ksoftirqd/0]
3
0 [events/0]
4
0 [khelper]
5
0 [kthread]
11
0 [kblockd/0]
12
0 [kacpid]
472
0 [pdflush]
473
0 [pdflush]
[...]
4028 17556 nautilus --no-default-window --sm-client-id default2
4118 17800 ksnapshot
4114 19172 sound-juicer
4023 25144 gnome-panel --sm-client-id default1
4047 31400 mono-best --debug /usr/lib/beagle/Best.exe --autostarted
3973 31520 mono-beagled --debug /usr/lib/beagle/BeagleDaemon.exe --bg --aut
16.6.3 Process Tree: pstree
The command pstree produces a list of processes in the form of a tree:
6.0 158548 31400 ?
0.7
9036
3684 ?
0.1
2204
636 ?
1.0
15996
5160 ?
3.7 130988 19172 ?
0.3
4192
1812 pts/0
0.1
2324
816 pts/0
TIME COMMAND
0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
0:00 sshd: tester [priv]
0:00 sshd: tester@pts/0
Ssl
13:02
0:06 mono-best
Sl
13:02
0:00 /opt/gnome
S
13:02
0:00 /opt/gnome
Ss
13:02
0:00 gnome-scre
SLl
13:06
0:04 sound-juic
Ss
15:59
0:00 -bash
R+
16:17
0:00 ps axu
System Monitoring Utilities
321

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents