2.15.
/proc/kmsg
This file is used to hold messages generated by the kernel. These messages are then picked up
by other programs, such as
2.16.
/proc/loadavg
This file provides a look at the load average in regard to both the CPU and IO over time, as well
as additional data used by
similar to the following:
0.20 0.18 0.12 1/80 11206
The first three columns measure CPU and IO utilization of the last one, five, and 10 minute
periods. The fourth column shows the number of currently running processes and the total
number of processes. The last column displays the last process ID used.
2.17.
/proc/locks
This file displays the files currently locked by the kernel. The contents of this file contain internal
kernel debugging data and can vary tremendously, depending on the use of the system. A
sample
/proc/locks
1: POSIX ADVISORY WRITE 3568 fd:00:2531452 0 EOF 2: FLOCK ADVISORY WRITE
3517 fd:00:2531448 0 EOF 3: POSIX ADVISORY WRITE 3452 fd:00:2531442 0 EOF 4:
POSIX ADVISORY WRITE 3443 fd:00:2531440 0 EOF 5: POSIX ADVISORY WRITE 3326
fd:00:2531430 0 EOF 6: POSIX ADVISORY WRITE 3175 fd:00:2531425 0 EOF 7:
POSIX ADVISORY WRITE 3056 fd:00:2548663 0 EOF
Each lock has its own line which starts with a unique number. The second column refers to the
class of lock used, with
and
representing the newer POSIX locks from the
POSIX
The third column can have two values:
does not prevent other people from accessing the data; it only prevents other attempts to lock it.
means that no other access to the data is permitted while the lock is held. The fourth
MANDATORY
column reveals whether the lock is allowing the holder
column shows the ID of the process holding the lock. The sixth column shows the ID of the file
being locked, in the format of
eighth column shows the start and end of the file's locked region.
2.18.
/proc/mdstat
This file contains the current information for multiple-disk, RAID configurations. If the system
does not contain such a configuration, then
Personalities : read_ahead not set unused devices: <none>
or
/sbin/klogd
and other commands. A sample
uptime
file for a lightly loaded system looks similar to the following:
signifying the older-style UNIX file locks from a
FLOCK
ADVISORY
MAJOR-DEVICE:MINOR-DEVICE:INODE-NUMBER
/proc/mdstat
.
/bin/dmesg
system call.
lockf
or
.
MANDATORY
ADVISORY
or
READ
WRITE
looks similar to the following:
/proc/loadavg
file looks
/proc/loadavg
system call
flock
means that the lock
access to the file. The fifth
. The seventh and
57
Need help?
Do you have a question about the ENTERPRISE LINUX 4.5.0 and is the answer not in the manual?
Questions and answers