|
Another way to modify kernel parameters is to use the file system interface through procfs. The /proc file system (procfs) is a special file system. It is a virtual file system; it is not associated with a block device, but exists only in memory. The /proc/ directory shows a hierarchical view of the parameters. You can view the parameters by looking at the file's contents. The parameters can be modified by echoing the value in the file. However, changes made this way do not persist across machine reboots. /proc is organized into the following directories:
Using procfsThe parameters can be viewed or changed by writing to the appropriate file in the /proc/ directory. For example, to view the current value of shmmax, enter the following: $ cat /proc/sys/kernel/shmmax Similarly, you can change the value of shmmax by entering this command: $ echo "32" > /proc/sys/kernel/shmmax Note that this change is temporary and does not persist across reboots. |
|