Red Hat ENTERPRISE LINUX 3 Reference Manual page 72

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

54
5.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
file for a lightly loaded system looks similar to the following:
/proc/locks
1: FLOCK
ADVISORY
2: POSIX
ADVISORY
Each lock has its own line which starts with a unique number. The second column refers to the class
of lock used, with
FLOCK
representing the newer POSIX locks from the
POSIX
The third column can have two values:
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 column reveals
whether the lock is allowing the holder
ID of the process holding the lock. The sixth column shows the ID of the file being locked, in the
format of
MAJOR-DEVICE:MINOR-DEVICE:INODE-NUMBER
and end of the file's locked region. The remaining columns point to internal kernel data structures
used for specialized debugging and can be ignored.
5.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:
This file remains in the same state as seen above unless a software RAID or
that case, view
/proc/mdstat
The
/proc/mdstat
is currently re-syncing the disks:
Personalities : [linear] [raid1]
read_ahead 1024 sectors
md0: active raid1 sda2[1] sdb2[0] 9940 blocks [2/2] [UU] resync=1% finish=12.3min
algorithm 2 [3/3] [UUU]
unused devices:
5.2.19.
/proc/meminfo
This is one of the more commonly used files in the
valuable information about the systems RAM usage.
The following sample
of swap space:
total:
Mem:
128692224 121212928
Swap: 1103093760 32772096 1070321664
MemTotal:
125676 kB
MemFree:
MemShared:
WRITE 807 03:05:308731 0 EOF c2a260c0 c025aa48 c2a26120
WRITE 708 03:05:308720 0 EOF c2a2611c c2a260c4 c025aa48
signifying the older-style UNIX file locks from a
ADVISORY
READ
/proc/mdstat
none
to find the current status of
file below shows a system with its
none
virtual file is from a system with 256MB of RAM and 384MB
/proc/meminfo
used:
free:
7479296
7304 kB
0 kB
system call.
lockf
or
MANDATORY
or
access to the file. The fifth column shows the
WRITE
. The seventh column shows the start
looks similar to the following:
mdX
configured as a RAID 1 device, while it
md0
directory, as it reports a large amount of
/proc/
shared: buffers:
0
9293824 47964160
proc
Chapter 5. The
flock
.
means that the lock does
ADVISORY
device is present. In
md
RAID devices.
cached:
File System
system call and
MANDATORY

Advertisement

Table of Contents
loading

Table of Contents