Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 717 — #743
i
i
i
i
i
i
i
i
28
System Monitoring Utilities
Some of the important files and their contents are as follows:
/proc/devices available devices
/proc/modules kernel modules loaded
/proc/cmdline kernel command line
/proc/meminfo detailed information about memory usage
/proc/config.gz gzip-compressed configuration file of the kernel cur-
rently running
Further information is available in the text file /usr/src/linux/
Documentation/filesystems/proc.txt. Query Memory usage with
the command vmstat.
Information about processes currently running can be found in the
/proc/hNNNi directories, where hNNNi is the process ID (PID) of the rel-
evant process. A process and its particular characteristics can be seen with
/proc/self/:
$ ls -l /proc/self
lrwxrwxrwx 1 root root 64 Apr 29 13:52 /proc/self -> 27585
$ ls -l /proc/self/
total 0
dr-xr-xr-x 2 jj suse 0 Apr 29 13:52 attr
-r-------- 1 jj suse 0 Apr 29 13:52 auxv
-r--r--r-- 1 jj suse 0 Apr 29 13:52 cmdline
lrwxrwxrwx 1 jj suse 0 Apr 29 13:52 cwd -> /suse/jj/t
-r--r--r-- 1 jj suse 0 Apr 29 13:52 delay
-r-------- 1 jj suse 0 Apr 29 13:52 environ
lrwxrwxrwx 1 jj suse 0 Apr 29 13:52 exe -> /bin/ls
dr-x------ 2 jj suse 0 Apr 29 13:52 fd
-rw------- 1 jj suse 0 Apr 29 13:52 mapped_base
-r--r--r-- 1 jj suse 0 Apr 29 13:52 maps
-rw------- 1 jj suse 0 Apr 29 13:52 mem
-r--r--r-- 1 jj suse 0 Apr 29 13:52 mounts
lrwxrwxrwx 1 jj suse 0 Apr 29 13:52 root -> /
-r--r--r-- 1 jj suse 0 Apr 29 13:52 stat
-r--r--r-- 1 jj suse 0 Apr 29 13:52 statm
-r--r--r-- 1 jj suse 0 Apr 29 13:52 status
dr-xr-xr-x 3 jj suse 0 Apr 29 13:52 task
-r--r--r-- 1 jj suse 0 Apr 29 13:52 wchan
717
SUSE LINUX Enterprise Server










