Proc/Sys - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

megabytes per second, while the tape drive is only communicating at 10 megabytes per
second.
3.9.

/proc/sys/

The
directory is different from others in
/proc/sys/
information about the system but also allows the system administrator to immediately enable
and disable kernel features.
Caution
Use caution when changing settings on a production system using the various
files in the
kernel unstable, requiring a system reboot.
For this reason, be sure the options are valid for that file before attempting to
change any value in
A good way to determine if a particular file can be configured, or if it is only designed to provide
information, is to list it with the
to configure the kernel. For example, a partial listing of
-r--r--r-- 1 root root 0 May 10 16:14 dentry-state -rw-r--r-- 1 root root 0
May 10 16:14 dir-notify-enable -r--r--r-- 1 root root 0 May 10 16:14
dquot-nr -rw-r--r-- 1 root root 0 May 10 16:14 file-max -r--r--r-- 1 root
root 0 May 10 16:14 file-nr
In this listing, the files
be used to configure the kernel. The other files only provide feedback on current settings.
Changing a value within a
example, to enable the System Request Key on a running kernel, type the command:
echo 1 > /proc/sys/kernel/sysrq
This changes the value for
A few
configuration files contain more than one value. To correctly send new
/proc/sys/
values to them, place a space character between each value passed with the
such as is done in this example:
echo 4 2 45 > /proc/sys/kernel/acct
directory. Changing the wrong setting may render the
/proc/sys/
/proc/sys/
option at the shell prompt. If the file is writable, it may be used
-l
and
dir-notify-enable
file is done by echoing the new value into the file. For
/proc/sys/
from
(off) to
sysrq
0
because it not only provides
/proc/
.
/proc/sys/fs
can be written to and, therefore, can
file-max
(on).
1
/proc/sys/
looks like the following:
command,
echo
73

Advertisement

Table of Contents
loading

Table of Contents