]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man5/proc.5
ffix
[thirdparty/man-pages.git] / man5 / proc.5
CommitLineData
fea681da
MK
1.\" Copyright (C) 1994, 1995 by Daniel Quinlan (quinlan@yggdrasil.com)
2.\" with networking additions from Alan Cox (A.Cox@swansea.ac.uk)
3.\" and scsi additions from Michael Neuffer (neuffer@mail.uni-mainz.de)
4.\" and sysctl additions from Andries Brouwer (aeb@cwi.nl)
5.\" and System V IPC (as well as various other) additions from
c11b1abf 6.\" Michael Kerrisk <mtk.manpages@gmail.com>
fea681da
MK
7.\"
8.\" This is free documentation; you can redistribute it and/or
9.\" modify it under the terms of the GNU General Public License as
10.\" published by the Free Software Foundation; either version 2 of
11.\" the License, or (at your option) any later version.
12.\"
13.\" The GNU General Public License's references to "object code"
14.\" and "executables" are to be interpreted as the output of any
15.\" document formatting or typesetting system, including
16.\" intermediate and printed output.
17.\"
18.\" This manual is distributed in the hope that it will be useful,
19.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
20.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21.\" GNU General Public License for more details.
22.\"
23.\" You should have received a copy of the GNU General Public
24.\" License along with this manual; if not, write to the Free
25.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
26.\" USA.
27.\"
28.\" Modified 1995-05-17 by faith@cs.unc.edu
29.\" Minor changes by aeb and Marty Leisner (leisner@sdsp.mc.xerox.com).
30.\" Modified 1996-04-13, 1996-07-22 by aeb@cwi.nl
31.\" Modified 2001-12-16 by rwhron@earthlink.net
32.\" Modified 2002-07-13 by jbelton@shaw.ca
33.\" Modified 2002-07-22, 2003-05-27, 2004-04-06, 2004-05-25
c11b1abf 34.\" by Michael Kerrisk <mtk.manpages@gmail.com>
5d6d14a0
MK
35.\" 2004-11-17, mtk -- updated notes on /proc/loadavg
36.\" 2004-12-01, mtk, rtsig-max and rtsig-nr went away in 2.6.8
568105c6
MK
37.\" 2004-12-14, mtk, updated 'statm', and fixed error in order of list
38.\" 2005-05-12, mtk, updated 'stat'
6d64ca9c 39.\" 2005-07-13, mtk, added /proc/sys/fs/mqueue/*
363f747c
MK
40.\" 2005-09-16, mtk, Added /proc/sys/fs/suid_dumpable
41.\" 2005-09-19, mtk, added /proc/zoneinfo
c13182ef 42.\" 2005-03-01, mtk, moved /proc/sys/fs/mqueue/* material to
96018ebe 43.\" mq_overview.7.
363f747c 44.\"
b07b19c4
MK
45.\" FIXME 2.6.14 has /proc/PID/numa_maps (if CONFIG_NUMA is
46.\" enabled); this needs to be documented.
c13182ef 47.\" Info on numa_maps can be found in the patch-2.6.14
b07b19c4 48.\" Changelog, but this is possibly not up to date.
8cf9de1b 49.\"
c533af9d 50.\" FIXME 2.6.13 seems to have /proc/vmcore implemented
c13182ef
MK
51.\" in the source code, but there is no option available under
52.\" 'make xconfig'; eventually this should be fixed, and then info
53.\" from the patch-2.6.13 and change log could be used to write an
c533af9d 54.\" entry in this man page.
8cf9de1b 55.\"
c13182ef
MK
56.\" FIXME cross check against Documentation/filesystems/proc.txt
57.\" to see what information could be imported from that file
c533af9d 58.\" into this file.
fea681da 59.\"
350038ff 60.TH PROC 5 2007-09-30 "Linux" "Linux Programmer's Manual"
fea681da
MK
61.SH NAME
62proc \- process information pseudo-filesystem
fea681da
MK
63.SH DESCRIPTION
64The
65.I proc
66filesystem is a pseudo-filesystem which is used as an interface to
c13182ef
MK
67kernel data structures.
68It is commonly mounted at
fea681da 69.IR /proc .
c13182ef 70Most of it is read-only, but some files allow kernel variables to be
fea681da
MK
71changed.
72.LP
73The following outline gives a quick tour through the /proc hierarchy.
74.PD 1
75.TP
76.I /proc/[number]
77There is a numerical subdirectory for each running process; the
78subdirectory is named by the process ID.
79Each such subdirectory contains the following
80pseudo-files and directories.
81.TP
857f1942
MK
82.IR /proc/[number]/auxv " (since 2.6.0-test7)"
83This contains the contents of the ELF interpreter information passed
c13182ef 84to the process at exec time.
857f1942 85The format is one \fIunsigned long\fP ID
c13182ef 86plus one \fIunsigned long\fP value for each entry.
857f1942
MK
87The last entry contains two zeros.
88.TP
fea681da
MK
89.I /proc/[number]/cmdline
90This holds the complete command line for the process, unless the whole
c13182ef 91process has been swapped out or the process is a zombie.
75b94dc3
MK
92In either of these latter cases, there is nothing in this file:
93that is, a read on this file will return 0 characters.
c13182ef 94The command line arguments appear in this file as a set of
fea681da
MK
95null-separated strings, with a further null byte after the last string.
96.TP
97.I /proc/[number]/cwd
c13182ef 98This is a symbolic link to the current working directory of the process.
afcaf646 99To find out the cwd of process 20, for instance, you can do this:
fea681da
MK
100
101.br
102.nf
103.ft CW
104cd /proc/20/cwd; /bin/pwd
105.fi
106.ft
107
c13182ef
MK
108Note that the
109.I pwd
afcaf646 110command is often a shell builtin, and might
c13182ef
MK
111not work properly.
112In bash, you may use pwd \-P.
afcaf646
MK
113
114.\" The following was still true as at kernel 2.6.13
c13182ef
MK
115In a multithreaded process, the contents of this symbolic link
116are not available if the main thread has already terminated
afcaf646
MK
117(typically by calling
118.BR pthread_exit (3).
fea681da
MK
119.TP
120.I /proc/[number]/environ
121This file contains the environment for the process.
28d88c17
MK
122The entries are separated by null bytes ('\\0'),
123and there may be a null bytes at the end.
fea681da
MK
124Thus, to print out the environment of process 1, you would do:
125
126.br
127.nf
128.ft CW
129(cat /proc/1/environ; echo) | tr "\\000" "\\n"
130.fi
131.ft P
132
133(For a reason why one should want to do this, see
f41d1d3d
MK
134.BR lilo (8)
135or
136.BR grub (8).)
fea681da
MK
137.TP
138.I /proc/[number]/exe
139Under Linux 2.2 and later, this file is a symbolic link
2d7195b8 140containing the actual pathname of the executed command.
c13182ef
MK
141This symbolic link can be dereferenced normally; attempting to open
142it will open the executable.
143You can even type
fea681da 144.I /proc/[number]/exe
c13182ef 145to run another copy of the same executable as is being run by
6931a324 146process [number].
afcaf646 147.\" The following was still true as at kernel 2.6.13
c13182ef
MK
148In a multithreaded process, the contents of this symbolic link
149are not available if the main thread has already terminated
afcaf646
MK
150(typically by calling
151.BR pthread_exit (3)).
fea681da
MK
152
153Under Linux 2.0 and earlier
154.I /proc/[number]/exe
c13182ef
MK
155is a pointer to the binary which was executed,
156and appears as a symbolic link.
157A
fea681da
MK
158.BR readlink (2)
159call on this file under Linux 2.0 returns a string in the format:
160
161[device]:inode
162
163For example, [0301]:1502 would be inode 1502 on device major 03 (IDE,
164MFM, etc. drives) minor 01 (first partition on the first drive).
165
166.BR find (1)
4d9b6984 167with the \-inum option can be used to locate the file.
fea681da
MK
168.TP
169.I /proc/[number]/fd
170This is a subdirectory containing one entry for each file which the
171process has open, named by its file descriptor, and which is a
c13182ef
MK
172symbolic link to the actual file.
173Thus, 0 is standard input, 1 standard output, 2 standard error, etc.
fea681da 174
afcaf646
MK
175.\" The following was still true as at kernel 2.6.13
176In a multithreaded process, the contents of this directory
c13182ef 177are not available if the main thread has already terminated
afcaf646
MK
178(typically by calling
179.BR pthread_exit (3)).
180
fea681da
MK
181Programs that will take a filename, but will not take the standard
182input, and which write to a file, but will not send their output to
4d9b6984
MK
183standard output, can be effectively foiled this way, assuming that \-i
184is the flag designating an input file and \-o is the flag designating
fea681da
MK
185an output file:
186.br
187.nf
188
2bc2f479 189\f(CWfoobar \-i /proc/self/fd/0 \-o /proc/self/fd/1 ...\fR
fea681da
MK
190
191.fi
192.br
193and you have a working filter.
194.\" The following is not true in my tests (MTK):
195.\" Note that this will not work for
196.\" programs that seek on their files, as the files in the fd directory
197.\" are not seekable.
198
199/proc/self/fd/N is approximately the same as /dev/fd/N in some UNIX
c13182ef
MK
200and UNIX-like systems.
201Most Linux MAKEDEV scripts symbolically link
fea681da 202/dev/fd to /proc/self/fd, in fact.
6aefb6df 203.\" FIXME Describe /proc/[number]/loginuid
b877b392 204.\" Added in 2.6.11; updating requires CAP_AUDIT_CONTROL
fea681da
MK
205.TP
206.I /proc/[number]/maps
207A file containing the currently mapped memory regions and their access
208permissions.
209
210The format is:
211
212.nf
213.ft CW
214.in 8n
215address perms offset dev inode pathname
21608048000-08056000 r-xp 00000000 03:0c 64593 /usr/sbin/gpm
21708056000-08058000 rw-p 0000d000 03:0c 64593 /usr/sbin/gpm
21808058000-0805b000 rwxp 00000000 00:00 0
21940000000-40013000 r-xp 00000000 03:0c 4165 /lib/ld-2.2.4.so
22040013000-40015000 rw-p 00012000 03:0c 4165 /lib/ld-2.2.4.so
2214001f000-40135000 r-xp 00000000 03:0c 45494 /lib/libc-2.2.4.so
22240135000-4013e000 rw-p 00115000 03:0c 45494 /lib/libc-2.2.4.so
2234013e000-40142000 rw-p 00000000 00:00 0
224bffff000-c0000000 rwxp 00000000 00:00 0
225.ft
226.fi
227.in
228
229where address is the address space in the process that it occupies,
230perms is a set of permissions:
231
232.nf
233.in +5
234r = read
235w = write
236x = execute
237s = shared
238p = private (copy on write)
239.fi
240.in
241
242offset is the offset into the file/whatever, dev is the device
243(major:minor), and inode is the inode on that device. 0 indicates
244that no inode is associated with the memory region, as the case would
245be with bss.
246
247Under Linux 2.0 there is no field giving pathname.
248.TP
249.I /proc/[number]/mem
250This file can be used to access the pages of a process's memory through
251.BR open (2),
252.BR read (2),
253and
ccb2bb0d 254.BR lseek (2).
978770aa
MK
255.\" FIXME Describe /proc/[number]/mountstats and
256.\" /proc/PID/task/TID/mountstats
257.\" Some information can be found in the 2.6.17-rc1 change log.
73dc596d 258.\" Added in 2.6.17
978770aa 259.\"
6aefb6df 260.\" FIXME Describe /proc/[number]/oom_adj
e02756a4 261.\" Added in 2.6.11; updating requires CAP_SYS_RESOURCE
6aefb6df
MK
262.\" Mention OOM_DISABLE (-17)
263.\" FIXME Describe /proc/[number]/oom_score
264.\" Added in 2.6.11; read-only
fea681da
MK
265.TP
266.I /proc/[number]/root
267Unix and Linux support the idea of a per-process root of the
268filesystem, set by the
269.BR chroot (2)
c13182ef
MK
270system call.
271This file is a symbolic link that points to the process's
fea681da 272root directory, and behaves as exe, fd/*, etc. do.
afcaf646
MK
273
274.\" The following was still true as at kernel 2.6.13
c13182ef
MK
275In a multithreaded process, the contents of this symbolic link
276are not available if the main thread has already terminated
afcaf646
MK
277(typically by calling
278.BR pthread_exit (3)).
6aefb6df
MK
279.\" FIXME Describe /proc/[number]/seccomp
280.\" Added in 2.6.12
fea681da 281.TP
b07b19c4
MK
282.IR /proc/[number]/smaps " (since Linux 2.6.14)"
283This file shows memory consumption for each of the process's mappings.
284For each of mappings there is a series of lines as follows:
285.in +0.25i
286.nf
287
28808048000-080bc000 r-xp 00000000 03:02 13130 /bin/bash
289Size: 464 kB
290Rss: 424 kB
291Shared_Clean: 424 kB
292Shared_Dirty: 0 kB
293Private_Clean: 0 kB
294Private_Dirty: 0 kB
295
296.fi
297.in -0.25i
298The first of these lines shows the same information as is displayed
299for the mapping in
300.IR /proc/[number]/maps .
301The remaining lines show the size of the mapping,
302the amount of the mapping that is currently resident in RAM,
303the number clean and dirty shared pages in the mapping,
304and the number clean and dirty private pages in the mapping.
305
097585ed
MK
306This file is only present if the
307.B CONFIG_MMU
308kernel configuration
b07b19c4
MK
309option is enabled.
310.TP
fea681da 311.I /proc/[number]/stat
c13182ef
MK
312Status information about the process.
313This is used by
314.BR ps (1).
315It is defined in
fea681da
MK
316.IR /usr/src/linux/fs/proc/array.c "."
317
318The fields, in order, with their proper
319.BR scanf (3)
320format specifiers, are:
321.RS
322.TP
323\fIpid\fP %d
357cf3fe 324The process ID.
fea681da
MK
325.TP
326\fIcomm\fP %s
c13182ef
MK
327The filename of the executable, in parentheses.
328This is visible whether or not the executable is swapped out.
fea681da
MK
329.TP
330\fIstate\fP %c
331One character from the string "RSDZTW" where R is running, S is
332sleeping in an interruptible wait, D is waiting in uninterruptible
333disk sleep, Z is zombie, T is traced or stopped (on a signal),
334and W is paging.
335.TP
336\fIppid\fP %d
337The PID of the parent.
338.TP
339\fIpgrp\fP %d
340The process group ID of the process.
341.TP
342\fIsession\fP %d
343The session ID of the process.
344.TP
345.\" tty_nr needs better explanation.
346\fItty_nr\fP %d
347The tty the process uses.
348.TP
349\fItpgid\fP %d
350.\" This field and following, up to and including wchan added 0.99.1
351The process group ID of the process which currently owns the tty that
352the process is connected to.
353.TP
2ebfeb1b 354\fIflags\fP %u (%lu before Linux 2.6.22)
c13182ef
MK
355The kernel flags word of the process.
356For bit meanings,
fea681da
MK
357see the PF_* defines in
358.IR <linux/sched.h> .
359Details depend on the kernel version.
360.TP
361\fIminflt\fP %lu
362The number of minor faults the process has made which have not
363required loading a memory page from disk.
364.TP
365\fIcminflt\fP %lu
366The number of minor faults that the process's
367waited-for children have made.
368.TP
369\fImajflt\fP %lu
370The number of major faults the process has made which have
371required loading a memory page from disk.
372.TP
373\fIcmajflt\fP %lu
374The number of major faults that the process's
375waited-for children have made.
376.TP
377\fIutime\fP %lu
378The number of jiffies that this process has been scheduled in user
379mode.
380.TP
381\fIstime\fP %lu
382The number of jiffies that this process has been scheduled in kernel
383mode.
384.TP
385\fIcutime\fP %ld
386The number of jiffies that this process's
c13182ef
MK
387waited-for children have been scheduled in user mode.
388(See also
fea681da
MK
389.BR times (2).)
390.TP
391\fIcstime\fP %ld
392The number of jiffies that this process's
393waited-for children have been scheduled in kernel mode.
394.TP
395\fIpriority\fP %ld
c13182ef
MK
396The standard nice value, plus fifteen.
397The value is never negative in the kernel.
fea681da
MK
398.TP
399\fInice\fP %ld
8729177b 400The nice value ranges from 19 (nicest) to \-19 (not nice to others).
fea681da
MK
401.TP
402.\" .TP
403.\" \fIcounter\fP %ld
404.\" The current maximum size in jiffies of the process's next timeslice,
405.\" or what is currently left of its current timeslice, if it is the
406.\" currently running process.
407.\" .TP
408.\" \fItimeout\fP %u
409.\" The time in jiffies of the process's next timeout.
0e94f77b
MK
410.\" timeout was removed sometime around 2.1/2.2
411\fInum_threads\fP %ld
2ebfeb1b 412Number of threads in this process (since Linux 2.6).
bb83d1b9 413Before kernel 2.6, this field was hard coded to 0 as a placeholder
0e94f77b 414for an earlier removed field.
fea681da
MK
415.TP
416\fIitrealvalue\fP %ld
8bd58774
MK
417The time in jiffies before the next
418.B SIGALRM
419is sent to the process due to an interval timer.
0e94f77b
MK
420Since kernel 2.6.17, this field is no longer maintained,
421and is hard coded as 0.
fea681da 422.TP
0e94f77b 423\fIstarttime\fP %llu (was %lu before Linux 2.6)
fea681da
MK
424The time in jiffies the process started after system boot.
425.TP
426\fIvsize\fP %lu
427Virtual memory size in bytes.
428.TP
429\fIrss\fP %ld
430Resident Set Size: number of pages the process has in real memory,
c13182ef
MK
431minus 3 for administrative purposes.
432This is just the pages which
433count towards text, data, or stack space.
434This does not include pages
fea681da
MK
435which have not been demand-loaded in, or which are swapped out.
436.TP
437\fIrlim\fP %lu
438Current limit in bytes on the rss of the process (usually
4394294967295 on i386).
440.TP
441\fIstartcode\fP %lu
442The address above which program text can run.
443.TP
444\fIendcode\fP %lu
445The address below which program text can run.
446.TP
447\fIstartstack\fP %lu
448The address of the start of the stack.
449.TP
450\fIkstkesp\fP %lu
451The current value of esp (stack pointer), as found in the
452kernel stack page for the process.
453.TP
454\fIkstkeip\fP %lu
455The current EIP (instruction pointer).
456.TP
457\fIsignal\fP %lu
0c6085e0 458The bitmap of pending signals.
fea681da
MK
459.TP
460\fIblocked\fP %lu
0c6085e0 461The bitmap of blocked signals.
fea681da
MK
462.TP
463\fIsigignore\fP %lu
464The bitmap of ignored signals.
465.TP
466\fIsigcatch\fP %lu
0c6085e0 467The bitmap of caught signals.
fea681da
MK
468.TP
469\fIwchan\fP %lu
c13182ef
MK
470This is the "channel" in which the process is waiting.
471It is the
fea681da 472address of a system call, and can be looked up in a namelist if you
c13182ef 473need a textual name.
9a67332e
MK
474(If you have an up-to-date
475.IR /etc/psdatabase ,
476then
4d9b6984 477try \fIps \-l\fP to see the WCHAN field in action.)
fea681da
MK
478.TP
479\fInswap\fP %lu
0e94f77b 480.\" nswap was added in 2.0
4d9b6984 481Number of pages swapped (not maintained).
fea681da
MK
482.TP
483\fIcnswap\fP %lu
0e94f77b 484.\" cnswap was added in 2.0
4d9b6984 485Cumulative \fInswap\fP for child processes (not maintained).
fea681da 486.TP
2ebfeb1b 487\fIexit_signal\fP %d (since Linux 2.1.22)
fea681da
MK
488Signal to be sent to parent when we die.
489.TP
2ebfeb1b 490\fIprocessor\fP %d (since Linux 2.2.8)
fea681da 491CPU number last executed on.
568105c6 492.TP
2ebfeb1b 493\fIrt_priority\fP %u (since Linux 2.5.19; was %lu before Linux 2.6.22)
568105c6
MK
494Real-time scheduling priority (see
495.BR sched_setscheduler (2)).
496.TP
2ebfeb1b 497\fIpolicy\fP %u (since Linux 2.5.19; was %lu before Linux 2.6.22)
568105c6
MK
498Scheduling policy (see
499.BR sched_setscheduler (2)).
167450d6 500.TP
2ebfeb1b 501\fIdelayacct_blkio_ticks\fP %llu (since Linux 2.6.18)
0e94f77b 502Aggregated block I/O delays, measured in clock ticks (centiseconds).
fea681da
MK
503.RE
504.TP
505.I /proc/[number]/statm
c13182ef
MK
506Provides information about memory status in pages.
507The columns are:
fea681da
MK
508 size total program size
509 resident resident set size
510 share shared pages
5d6d14a0
MK
511 text text (code)
512 lib library
513 data data/stack
514 dt dirty pages (unused in Linux 2.6)
fea681da
MK
515.TP
516.I /proc/[number]/status
517Provides much of the information in
518.I /proc/[number]/stat
519and
520.I /proc/[number]/statm
521in a format that's easier for humans to parse.
522.TP
2ebfeb1b 523.IR /proc/[number]/task " (since Linux 2.6.0-test6)"
afcaf646
MK
524This is a directory that contains one subdirectory
525for each thread in the process.
526The name of each subdirectory is the numerical thread ID of the
527thread (see
528.BR gettid (2)).
529Within each of these subdirectories, there is a set of
530files with the same names and contents as under the
531.I /proc/[number]
532directories.
533For attributes that are shared by all threads, the contents for
534each of the files under the
535.I task/[thread-ID]
536subdirectories will be the same as in the corresponding
c13182ef 537file in the parent
afcaf646
MK
538.I /proc/[number]
539directory
c13182ef 540(e.g., in a multithreaded process, all of the
afcaf646 541.I task/[thread-ID]/cwd
c13182ef 542files will have the same value as the
afcaf646 543.I /proc/[number]/cwd
c13182ef 544file in the parent directory, since all of the threads in a process
afcaf646
MK
545share a working directory).
546For attributes that are distinct for each thread,
c13182ef 547the corresponding files under
afcaf646
MK
548.I task/[thread-ID]
549may have different values (e.g., various fields in each of the
550.I task/[thread-ID]/status
551files may be different for each thread).
552
553.\" The following was still true as at kernel 2.6.13
554In a multithreaded process, the contents of the
555.I /proc/[number]/task
c13182ef 556directory are not available if the main thread has already terminated
afcaf646
MK
557(typically by calling
558.BR pthread_exit (3)).
559.TP
fea681da 560.I /proc/apm
097585ed
MK
561Advanced power management version and battery information when
562.B CONFIG_APM
563is defined at kernel compilation time.
fea681da
MK
564.TP
565.I /proc/bus
566Contains subdirectories for installed busses.
567.TP
568.I /proc/bus/pccard
097585ed
MK
569Subdirectory for pcmcia devices when
570.B CONFIG_PCMCIA
571is set at kernel compilation time.
fea681da
MK
572.TP
573.I /proc/bus/pccard/drivers
574.TP
575.I /proc/bus/pci
c13182ef
MK
576Contains various bus subdirectories and pseudo-files containing
577information about pci busses, installed devices, and device
578drivers.
579Some of these files are not ASCII.
fea681da
MK
580.TP
581.I /proc/bus/pci/devices
c13182ef
MK
582Information about pci devices.
583They may be accessed through
fea681da
MK
584.BR lspci (8)
585and
586.BR setpci (8).
587.TP
588.I /proc/cmdline
c13182ef
MK
589Arguments passed to the Linux kernel at boot time.
590Often done via a boot manager such as
fea681da 591.BR lilo (1).
2bb6d7e6 592.\" FIXME Document /proc/config.gz (new in kernel 2.6)
fea681da
MK
593.TP
594.I /proc/cpuinfo
595This is a collection of CPU and system architecture dependent items,
596for each supported architecture a different list.
597Two common entries are \fIprocessor\fP which gives CPU number and
c13182ef
MK
598\fIbogomips\fP; a system constant that is calculated
599during kernel initialization.
600SMP machines have information for
fea681da
MK
601each CPU.
602.TP
603.I /proc/devices
c13182ef
MK
604Text listing of major numbers and device groups.
605This can be used by MAKEDEV scripts for consistency with the kernel.
fea681da
MK
606.TP
607.IR /proc/diskstats " (since Linux 2.5.69)"
608This file contains disk I/O statistics for each disk device.
609See the kernel source file
610.I Documentation/iostats.txt
611for further information.
612.TP
613.I /proc/dma
c13182ef 614This is a list of the registered \fIISA\fP DMA (direct memory access)
fea681da
MK
615channels in use.
616.TP
617.I /proc/driver
618Empty subdirectory.
619.TP
620.I /proc/execdomains
621List of the execution domains (ABI personalities).
622.TP
623.I /proc/fb
097585ed
MK
624Frame buffer information when
625.B CONFIG_FB
626is defined during kernel compilation.
fea681da
MK
627.TP
628.I /proc/filesystems
809d0164
MK
629A text listing of the filesystems which are supported by the kernel,
630namely filesystems which were compiled into the kernel or whose kernel
631modules are currently loaded. (See also
632.BR fs (5).)
633If a filesystem is marked with "nodev",
634this means that it does not require a block device to be mounted
635(e.g., virtual filesystem, network filesystem).
636
637Incidentally, this file may be used by
638.BR mount (8)
639when no filesystem is specified and it didn't manage to determine the
640filesystem type.
641Then filesystems contained in this file are tried
642(excepted those that are marked with "nodev").
fea681da
MK
643.TP
644.I /proc/fs
645Empty subdirectory.
646.TP
647.I /proc/ide
648This directory
c13182ef
MK
649exists on systems with the ide bus.
650There are directories for each ide channel and attached device.
651Files include:
fea681da
MK
652
653.nf
654cache buffer size in KB
655capacity number of sectors
656driver driver version
657geometry physical and logical geometry
9fdfa163 658identify in hexadecimal
fea681da
MK
659media media type
660model manufacturer's model number
661settings drive settings
9fdfa163
MK
662smart_thresholds in hexadecimal
663smart_values in hexadecimal
fea681da
MK
664.fi
665
c13182ef 666The
fea681da
MK
667.BR hdparm (8)
668utility provides access to this information in a friendly format.
669.TP
670.I /proc/interrupts
671This is used to record the number of interrupts per each IRQ on (at
c13182ef
MK
672least) the i386 architecture.
673Very easy to read formatting, done in
fea681da
MK
674ASCII.
675.TP
676.I /proc/iomem
677I/O memory map in Linux 2.4.
678.TP
679.I /proc/ioports
c13182ef 680This is a list of currently registered Input-Output port regions that
fea681da
MK
681are in use.
682.TP
683.IR /proc/kallsyms " (since Linux 2.5.71)"
684This holds the kernel exported symbol definitions used by the
685.BR modules (X)
686tools to dynamically link and bind loadable modules.
687In Linux 2.5.47 and earlier, a similar file with slightly different syntax
688was named
689.IR ksyms .
690.TP
691.I /proc/kcore
692This file represents the physical memory of the system and is stored
c13182ef
MK
693in the ELF core file format.
694With this pseudo-file, and an unstripped
9a67332e
MK
695kernel
696.RI ( /usr/src/linux/vmlinux )
697binary, GDB can be used to
fea681da
MK
698examine the current state of any kernel data structures.
699
700The total length of the file is the size of physical memory (RAM) plus
7014KB.
702.TP
703.I /proc/kmsg
704This file can be used instead of the
705.BR syslog (2)
c13182ef
MK
706system call to read kernel messages.
707A process must have superuser
fea681da 708privileges to read this file, and only one process should read this
c13182ef
MK
709file.
710This file should not be read if a syslog process is running
fea681da
MK
711which uses the
712.BR syslog (2)
713system call facility to log kernel messages.
714
715Information in this file is retrieved with the
716.BR dmesg (8)
717program.
718.TP
719.IR /proc/ksyms " (Linux 1.1.23-2.5.47)"
720See
721.IR /proc/kallsyms .
722.TP
723.I /proc/loadavg
6b05dc38
MK
724The first three fields in this file are load average figures
725giving the number of jobs in the run queue (state R)
fea681da
MK
726or waiting for disk I/O (state D) averaged over 1, 5, and 15 minutes.
727They are the same as the load average numbers given by
728.BR uptime (1)
729and other programs.
6b05dc38
MK
730The fourth field consists of two numbers separated by a slash (/).
731The first of these is the number of currently executing kernel
c13182ef 732scheduling entities (processes, threads);
6b05dc38
MK
733this will be less than or equal to the number of CPUs.
734The value after the slash is the number of kernel scheduling entities
735that currently exist on the system.
736The fifth field is the PID of the process that was most
737recently created on the system.
fea681da
MK
738.TP
739.I /proc/locks
740This file shows current file locks
741.RB ( flock "(2) and " fcntl (2))
742and leases
743.RB ( fcntl (2)).
744.TP
89dd5f8a 745.IR /proc/malloc " (only up to and including Linux 2.2)"
097585ed 746This file is only present if
89dd5f8a 747.B CONFIG_DEBUG_MALLOC
097585ed 748was defined during compilation.
fea681da
MK
749.TP
750.I /proc/meminfo
751This is used by
752.BR free (1)
753to report the amount of free and used memory (both physical and swap)
754on the system as well as the shared memory and buffers used by the
755kernel.
756
757It is in the same format as
758.BR free (1),
759except in bytes rather than KB.
760.TP
761.I /proc/mounts
762This is a list of all the file systems currently mounted on the system.
763The format of this file is documented in
31e9a9ec 764.BR fstab (5).
c13182ef 765Since kernel version 2.6.15, this file is pollable:
57651c15
MK
766after opening the file for reading, a change in this file
767(i.e., a file system mount or unmount) causes
768.BR select (2)
769to mark the file descriptor as readable, and
770.BR poll (2)
771and
772.BR epoll_wait (2)
773mark the file as having an error condition.
fea681da
MK
774.TP
775.I /proc/modules
776A text list of the modules that have been loaded by the system.
777See also
778.BR lsmod (8).
779.TP
780.I /proc/mtrr
c13182ef
MK
781Memory Type Range Registers.
782See
fea681da
MK
783.I /usr/src/linux/Documentation/mtrr.txt
784for details.
785.TP
786.I /proc/net
787various net pseudo-files, all of which give the status of some part of
c13182ef
MK
788the networking layer.
789These files contain ASCII structures and are,
790therefore, readable with cat.
791However, the standard
fea681da
MK
792.BR netstat (8)
793suite provides much cleaner access to these files.
794.TP
795.I /proc/net/arp
796This holds an ASCII readable dump of the kernel ARP table used for
c13182ef
MK
797address resolutions.
798It will show both dynamically learned and
799pre-programmed ARP entries.
800The format is:
fea681da
MK
801
802.nf
803.ft CW
804.in 8n
805IP address HW type Flags HW address Mask Device
806192.168.0.50 0x1 0x2 00:50:BF:25:68:F3 * eth0
807192.168.0.250 0x1 0xc 00:00:00:00:00:00 * eth0
808.ft
809.fi
810.in
811
812Here 'IP address' is the IPv4 address of the machine and the 'HW type'
c13182ef
MK
813is the hardware type of the address from RFC\ 826.
814The flags are the internal
9a67332e
MK
815flags of the ARP structure (as defined in
816.IR /usr/include/linux/if_arp.h )
817and
fea681da
MK
818the 'HW address' is the data link layer mapping for that IP address if
819it is known.
820.TP
821.I /proc/net/dev
c13182ef
MK
822The dev pseudo-file contains network device status information.
823This gives
824the number of received and sent packets, the number of errors and
fea681da 825collisions
c13182ef
MK
826and other basic statistics.
827These are used by the
fea681da 828.BR ifconfig (8)
c13182ef
MK
829program to report device status.
830The format is:
fea681da
MK
831
832.nf
833.ft CW
834.in 1n
835Inter-| Receive | Transmit
836 face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
837 lo: 2776770 11307 0 0 0 0 0 0 2776770 11307 0 0 0 0 0 0
838 eth0: 1215645 2751 0 0 0 0 0 0 1782404 4324 0 0 0 427 0 0
839 ppp0: 1622270 5552 1 0 0 0 0 0 354130 5669 0 0 0 0 0 0
840 tap0: 7714 81 0 0 0 0 0 0 7714 81 0 0 0 0 0 0
841.in
842.ft
843.fi
844.\" .TP
845.\" .I /proc/net/ipx
846.\" No information.
847.\" .TP
848.\" .I /proc/net/ipx_route
849.\" No information.
850.TP
851.I /proc/net/dev_mcast
852Defined in
853.IR /usr/src/linux/net/core/dev_mcast.c :
854.nf
855.in +5
9fdfa163 856indx interface_name dmi_u dmi_g dmi_address
fea681da
MK
8572 eth0 1 0 01005e000001
8583 eth1 1 0 01005e000001
8594 eth2 1 0 01005e000001
860.in
861.fi
862.TP
863.I /proc/net/igmp
c13182ef
MK
864Internet Group Management Protocol.
865Defined in
fea681da
MK
866.IR /usr/src/linux/net/core/igmp.c .
867.TP
868.I /proc/net/rarp
869This file uses the same format as the
870.I arp
871file and contains the current reverse mapping database used to provide
872.BR rarp (8)
c13182ef
MK
873reverse address lookup services.
874If RARP is not configured into the
fea681da
MK
875kernel,
876this file will not be present.
877.TP
878.I /proc/net/raw
c13182ef
MK
879Holds a dump of the RAW socket table.
880Much of the information is not of
fea681da 881use
c13182ef
MK
882apart from debugging.
883The 'sl' value is the kernel hash slot for the
fea681da 884socket,
6beb1671 885the 'local_address' is the local address and protocol number pair. "St" is
c13182ef
MK
886the internal status of the socket.
887The "tx_queue" and "rx_queue" are the
fea681da
MK
888outgoing and incoming data queue in terms of kernel memory usage.
889The "tr", "tm->when", and "rexmits" fields are not used by RAW.
fdc196f5
MK
890The "uid"
891field holds the effective UID of the creator of the socket.
fea681da
MK
892.\" .TP
893.\" .I /proc/net/route
894.\" No information, but looks similar to
895.\" .BR route (8).
896.TP
897.I /proc/net/snmp
c13182ef 898This file holds the ASCII data needed for the IP, ICMP, TCP, and UDP
fea681da 899management
c13182ef 900information bases for an snmp agent.
fea681da
MK
901.TP
902.I /proc/net/tcp
c13182ef
MK
903Holds a dump of the TCP socket table.
904Much of the information is not
905of use apart from debugging.
906The "sl" value is the kernel hash slot
6beb1671
MK
907for the socket, the "local_address" is the local address and port number pair.
908The "rem_address" is the remote address and port number pair
fea681da
MK
909(if connected). 'St' is the internal status of the socket.
910The 'tx_queue' and 'rx_queue' are the
911outgoing and incoming data queue in terms of kernel memory usage.
912The "tr", "tm->when", and "rexmits" fields hold internal information of
fdc196f5
MK
913the kernel socket state and are only useful for debugging.
914The "uid"
915field holds the effective UID of the creator of the socket.
fea681da
MK
916.TP
917.I /proc/net/udp
c13182ef
MK
918Holds a dump of the UDP socket table.
919Much of the information is not of
920use apart from debugging.
921The "sl" value is the kernel hash slot for the
6beb1671
MK
922socket, the "local_address" is the local address and port number pair.
923The "rem_address" is the remote address and port number pair
fea681da
MK
924(if connected). "St" is the internal status of the socket.
925The "tx_queue" and "rx_queue" are the outgoing and incoming data queue
c13182ef
MK
926in terms of kernel memory usage.
927The "tr", "tm->when", and "rexmits" fields
928are not used by UDP.
fdc196f5
MK
929The "uid"
930field holds the effective UID of the creator of the socket.
fea681da
MK
931The format is:
932
933.nf
934.ft CW
935.in 1n
936sl local_address rem_address st tx_queue rx_queue tr rexmits tm->when uid
937 1: 01642C89:0201 0C642C89:03FF 01 00000000:00000001 01:000071BA 00000000 0
938 1: 00000000:0801 00000000:0000 0A 00000000:00000000 00:00000000 6F000100 0
939 1: 00000000:0201 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
940.in
941.ft
942.fi
943.TP
944.I /proc/net/unix
945Lists the UNIX domain sockets present within the system and their
c13182ef
MK
946status.
947The format is:
fea681da
MK
948.nf
949.sp .5
950.ft CW
951Num RefCount Protocol Flags Type St Path
952 0: 00000002 00000000 00000000 0001 03
953 1: 00000001 00000000 00010000 0001 01 /dev/printer
954.ft
955.sp .5
956.fi
957
958Here 'Num' is the kernel table slot number, 'RefCount' is the number
959of users of the socket, 'Protocol' is currently always 0, 'Flags'
960represent the internal kernel flags holding the status of the
c13182ef
MK
961socket.
962Currently, type is always '1' (Unix domain datagram sockets are
fea681da
MK
963not yet supported in the kernel). 'St' is the internal state of the
964socket and Path is the bound path (if any) of the socket.
965.TP
966.I /proc/partitions
967Contains major and minor numbers of each partition as well as number
968of blocks and partition name.
969.TP
970.I /proc/pci
971This is a listing of all PCI devices found during kernel initialization
972and their configuration.
2990d781
MK
973
974This file has been deprecated in favor of a new /proc
975interface for PCI
976.RI ( /proc/bus/pci ).
977It became optional in Linux 2.2 (available with
978.B CONFIG_PCI_OLD_PROC
979set at kernel compilation).
980It became once more non-optionally enabled in Linux 2.4.
981Next, it was deprecated in Linux 2.6 (still available with
982.B CONFIG_PCI_LEGACY_PROC
983set), and finally removed altogether since Linux 2.6.17.
fea681da
MK
984.TP
985.I /proc/scsi
2990d781
MK
986A directory with the scsi mid-level pseudo-file and various SCSI low-level
987driver directories,
988which contain a file for each SCSI host in this system, all of
c13182ef
MK
989which give the status of some part of the SCSI IO subsystem.
990These files contain ASCII structures and are, therefore, readable with
2990d781 991.BR cat (1).
fea681da 992
c13182ef 993You can also write to some of the files to reconfigure the subsystem or
fea681da
MK
994switch
995certain features on or off.
996.TP
997.I /proc/scsi/scsi
c13182ef
MK
998This is a listing of all SCSI devices known to the kernel.
999The listing is
fea681da 1000similar to the one seen during bootup.
c13182ef 1001scsi currently supports only the \fIadd-single-device\fP command which
fea681da
MK
1002allows
1003root to add a hotplugged device to the list of known devices.
1004
c13182ef
MK
1005An
1006.B echo 'scsi add-single-device 1 0 5 0' > /proc/scsi/scsi
1007will cause
1008host scsi1 to scan on SCSI channel 0 for a device on ID 5 LUN 0.
1009If there
fea681da
MK
1010is already a device known on this address or the address is invalid, an
1011error will be returned.
1012.TP
1013.I /proc/scsi/[drivername]
c13182ef
MK
1014\fI[drivername]\fP can currently be NCR53c7xx, aha152x, aha1542, aha1740,
1015aic7xxx, buslogic, eata_dma, eata_pio, fdomain, in2000, pas16, qlogic,
1016scsi_debug, seagate, t128, u15-24f, ultrastore, or wd7000.
1017These directories show up for all drivers that registered at least one
1018SCSI
1019HBA.
1020Every directory contains one file per registered host.
1021Every
fea681da 1022host-file is named after the number the host was assigned during
c13182ef 1023initialization.
fea681da 1024
c13182ef 1025Reading these files will usually show driver and host configuration,
fea681da
MK
1026statistics etc.
1027
1028Writing to these files allows different things on different hosts.
1029For example, with the \fIlatency\fP and \fInolatency\fP commands,
1030root can switch on and off command latency measurement code in the
c13182ef
MK
1031eata_dma driver.
1032With the \fIlockup\fP and \fIunlock\fP commands,
1033root can control bus lockups simulated by the scsi_debug driver.
fea681da
MK
1034.TP
1035.I /proc/self
1036This directory refers to the process accessing the /proc filesystem,
1037and is identical to the /proc directory named by the process ID of the
1038same process.
1039.TP
1040.I /proc/slabinfo
c13182ef 1041Information about kernel caches.
350038ff
MK
1042Since Linux 2.6.16 this file is only present if the CONFIG_SLAB kernel
1043configuration option is enabled.
1044The columns in
38f76cd2 1045.I /proc/slabinfo
350038ff 1046are:
fea681da
MK
1047.nf
1048cache-name
1049num-active-objs
1050total-objs
1051object-size
1052num-active-slabs
1053total-slabs
1054num-pages-per-slab
1055.fi
c13182ef 1056See
fea681da
MK
1057.BR slabinfo (5)
1058for details.
1059.TP
1060.I /proc/stat
c13182ef
MK
1061kernel/system statistics.
1062Varies with architecture.
1063Common
fea681da
MK
1064entries include:
1065.RS
1066.TP
1067\fIcpu 3357 0 4313 1362393\fP
bfbfcd18 1068The amount of time, measured in units of
b877b392 1069USER_HZ (1/100ths of a second on most architectures),
bfbfcd18
MK
1070that the system spent in user mode,
1071user mode with low priority (nice), system mode, and the
1072idle task, respectively.
b09b8526 1073.\" FIXME Actually, the following info about the /proc/stat 'cpu' field
777f5a9e 1074.\" does not seem to be quite right (at least in 2.6.12)
bfbfcd18 1075The last value should be USER_HZ times the
fea681da 1076second entry in the uptime pseudo-file.
bfbfcd18
MK
1077.sp
1078In Linux 2.6 this line includes three additional columns:
1079.I iowait
1080\- time waiting for I/O to complete (since 2.5.41);
1081.I irq
1082\- time servicing interrupts (since 2.6.0-test4);
1083.I softirq
1084\- time servicing softirqs (since 2.6.0-test4).
9de1f6cc
MK
1085.sp
1086Since Linux 2.6.11, there is an eighth column,
1087.I steal
1088\- stolen time, which is the time spent in other operating systems when
1089running in a virtualized environment
fea681da
MK
1090.TP
1091\fIpage 5741 1808\fP
1092The number of pages the system paged in and the number that were paged
1093out (from disk).
1094.TP
1095\fIswap 1 0\fP
1096The number of swap pages that have been brought in and out.
1097.TP
c13182ef 1098.\" FIXME The following is not the full picture for the 'intr' of
777f5a9e 1099.\" /proc/stat on 2.6:
fea681da 1100\fIintr 1462898\fP
bfbfcd18
MK
1101This line shows counts of interrupts serviced since boot time,
1102for each of the possible system interrupts.
1103The first column is the total of all interrupts serviced;
1104each subsequent column is the total for a particular interrupt.
fea681da
MK
1105.TP
1106\fIdisk_io: (2,0):(31,30,5764,1,2) (3,0):\fP...
1107(major,minor):(noinfo, read_io_ops, blks_read, write_io_ops, blks_written)
bfbfcd18
MK
1108.br
1109(Linux 2.4 only)
fea681da
MK
1110.TP
1111\fIctxt 115315\fP
1112The number of context switches that the system underwent.
1113.TP
1114\fIbtime 769041601\fP
1115boot time, in seconds since the epoch (January 1, 1970).
1116.TP
1117\fIprocesses 86031\fP
1118Number of forks since boot.
bfbfcd18
MK
1119.TP
1120\fIprocs_running 6\fP
1121Number of processes in runnable state.
1122(Linux 2.5.45 onwards.)
1123.TP
1124\fIprocs_blocked 2\fP
1125Number of processes blocked waiting for I/O to complete.
1126(Linux 2.5.45 onwards.)
fea681da
MK
1127.RE
1128.TP
1129.I /proc/swaps
c13182ef
MK
1130Swap areas in use.
1131See also
fea681da
MK
1132.BR swapon (8).
1133.TP
1134.I /proc/sys
1135This directory (present since 1.3.57) contains a number of files
1136and subdirectories corresponding to kernel variables.
1137These variables can be read and sometimes modified using
1138the \fIproc\fP file system, and the
1139.BR sysctl (2)
c13182ef
MK
1140system call.
1141Presently, there are subdirectories
fea681da
MK
1142.IR abi ", " debug ", " dev ", " fs ", " kernel ", " net ", " proc ", "
1143.IR rxrpc ", " sunrpc " and " vm
1144that each contain more files and subdirectories.
1145.TP
6ab7c0aa 1146.IR /proc/sys/abi " (since Linux 2.4.10)"
fea681da 1147This directory may contain files with application binary information.
6ab7c0aa
MK
1148.\" On some systems, it is not present.
1149See the kernel source file
1150.I Documentation/sysctl/abi.txt
1151for more information.
fea681da
MK
1152.TP
1153.I /proc/sys/debug
1154This directory may be empty.
1155.TP
1156.I /proc/sys/dev
9a67332e
MK
1157This directory contains device specific information (e.g.,
1158.IR dev/cdrom/info ).
fea681da
MK
1159On
1160some systems, it may be empty.
1161.TP
1162.I /proc/sys/fs
6d64ca9c 1163This contains the subdirectories
b877b392 1164.IR binfmt_misc ", " inotify ", and " mqueue ,
fea681da 1165and files
c13182ef
MK
1166.IR dentry-state ", " dir-notify-enable ", " dquot-nr ", " file-max ", "
1167.IR file-nr ", " inode-max ", " inode-nr ", " inode-state ", "
1168.IR lease-break-time ", " leases-enable ", "
43da96f2
MK
1169.IR overflowgid ", " overflowuid ", "
1170.IR suid_dumpable ", "
1171.IR super-max ", and " super-nr .
fea681da
MK
1172.TP
1173.I /proc/sys/fs/binfmt_misc
c13182ef 1174Documentation for files in this directory can be found
b877b392 1175in the kernel sources in
fea681da
MK
1176.IR Documentation/binfmt_misc.txt .
1177.TP
1178.I /proc/sys/fs/dentry-state
c13182ef
MK
1179This file contains six numbers,
1180.IR nr_dentry ", " nr_unused ", " age_limit " (age in seconds), "
fea681da
MK
1181want_pages
1182(pages requested by system) and two dummy values.
1183nr_dentry seems to be 0 all the time.
1184nr_unused seems to be the number of unused dentries.
1185age_limit is the age in seconds after which dcache entries
1186can be reclaimed when memory is short and want_pages is
f59a3f19 1187non-zero when the kernel has called shrink_dcache_pages() and the
fea681da
MK
1188dcache isn't pruned yet.
1189.TP
1190.I /proc/sys/fs/dir-notify-enable
1191This file can be used to disable or enable the
1192.I dnotify
1193interface described in
1194.BR fcntl (2)
1195on a system-wide basis.
1196A value of 0 in this file disables the interface,
1197and a value of 1 enables it.
1198.TP
1199.I /proc/sys/fs/dquot-max
1200This file shows the maximum number of cached disk quota entries.
1201On some (2.4) systems, it is not present.
1202If the number of free cached disk quota entries is very low and
1203you have some awesome number of simultaneous system users,
1204you might want to raise the limit.
1205.TP
1206.I /proc/sys/fs/dquot-nr
1207This file shows the number of allocated disk quota
1208entries and the number of free disk quota entries.
1209.TP
1210.I /proc/sys/fs/file-max
1211This file defines
1212a system-wide limit on the number of open files for all processes.
1213(See also
1214.BR setrlimit (2),
1215which can be used by a process to set the per-process limit,
1216.BR RLIMIT_NOFILE ,
1217on the number of files it may open.)
1218If you get lots
1219of error messages about running out of file handles,
1220try increasing this value:
1221.br
1222
1223.br
1224.nf
1225.ft CW
1226echo 100000 > /proc/sys/fs/file-max
1227.fi
1228.ft
1229
1230The kernel constant
7b2b5ea4 1231.B NR_OPEN
fea681da
MK
1232imposes an upper limit on the value that may be placed in
1233.IR file-max .
1234
c13182ef 1235If you increase
fea681da
MK
1236.IR /proc/sys/fs/file-max ","
1237be sure to increase
1238.I /proc/sys/fs/inode-max
1239to 3-4 times the new
c13182ef 1240value of
fea681da
MK
1241.IR /proc/sys/fs/file-max ","
1242or you will run out of inodes.
1243.TP
1244.I /proc/sys/fs/file-nr
1245This (read-only) file
1246gives the number of files presently opened.
1247It contains three numbers: The number of allocated
1248file handles, the number of free file handles and the maximum
c13182ef
MK
1249number of file handles.
1250The kernel allocates file handles dynamically, but it
1251doesn't free them again.
1252If the number of allocated files is close to the
fea681da
MK
1253
1254maximum, you should consider increasing the maximum.
1255When the number of free file handles is
1256large, you've encountered a peak in your usage of file
1257handles and you probably don't need to increase the maximum.
1258.TP
c13182ef 1259.I /proc/sys/fs/inode-max
fea681da
MK
1260This file contains the maximum number of in-memory inodes.
1261On some (2.4) systems, it may not be
c13182ef
MK
1262present.
1263This value should be 3-4 times larger
9bef72b5
MK
1264than the value in file-max, since \fIstdin\fP, \fIstdout\fP
1265and network sockets also
c13182ef
MK
1266need an inode to handle them.
1267When you regularly run
fea681da
MK
1268out of inodes, you need to increase this value.
1269.TP
1270.I /proc/sys/fs/inode-nr
1271This file contains the first two values from inode-state.
1272.TP
1273.I /proc/sys/fs/inode-state
1274This file
c13182ef
MK
1275contains seven numbers: nr_inodes, nr_free_inodes, preshrink and four
1276dummy values.
1277nr_inodes is the number of inodes the system has allocated.
1278This can be slightly more than inode-max because
e02756a4 1279Linux allocates them one page full at a time.
fea681da 1280nr_free_inodes represents the number of free inodes.
f59a3f19 1281preshrink is non-zero when the nr_inodes > inode-max and the
fea681da
MK
1282system needs to prune the inode list instead of allocating
1283more.
1284.TP
b877b392 1285.IR /proc/sys/fs/inotify " (since Linux 2.6.13)"
c13182ef 1286This directory contains files
b877b392
MK
1287.IR max_queued_events ", " max_user_instances ", and " max_user_watches ,
1288that can be used to limit the amount of kernel memory consumed by the
1289.I inotify
1290interface.
c13182ef 1291For further details, see
435b27cc 1292.BR inotify (7).
b877b392 1293.TP
fea681da
MK
1294.I /proc/sys/fs/lease-break-time
1295This file
1296specifies the grace period that the kernel grants to a process
1297holding a file lease
1298.RB ( fcntl (2))
1299after it has sent a signal to that process notifying it
1300that another process is waiting to open the file.
1301If the lease holder does not remove or downgrade the lease within
1302this grace period, the kernel forcibly breaks the lease.
1303.TP
1304.I /proc/sys/fs/leases-enable
1305This file can be used to enable or disable file leases
1306.RB ( fcntl (2))
1307on a system-wide basis.
1308If this file contains the value 0, leases are disabled.
1309A non-zero value enables leases.
6d64ca9c
MK
1310.TP
1311.IR /proc/sys/fs/mqueue " (since Linux 2.6.6)"
c13182ef 1312This directory contains files
6d64ca9c
MK
1313.IR msg_max ", " msgsize_max ", and " queues_max ,
1314controlling the resources used by POSIX message queues.
96018ebe 1315See
c13182ef 1316.BR mq_overview (7)
96018ebe 1317for details.
6d64ca9c
MK
1318.TP
1319.IR /proc/sys/fs/overflowgid " and " /proc/sys/fs/overflowuid
1320These files
1321allow you to change the value of the fixed UID and GID.
1322The default is 65534.
1323Some filesystems only support 16-bit UIDs and GIDs, although in Linux
c13182ef
MK
1324UIDs and GIDs are 32 bits.
1325When one of these filesystems is mounted
6d64ca9c
MK
1326with writes enabled, any UID or GID that would exceed 65535 is translated
1327to the overflow value before being written to disk.
1328.TP
43da96f2
MK
1329.IR /proc/sys/fs/suid_dumpable " (since Linux 2.6.13)"
1330.\" The following is based on text from Documentation/sysctl/kernel.txt
c13182ef 1331The value in this file determines whether core dump files are
f1162930
MK
1332produced for set-user-ID or otherwise protected/tainted binaries.
1333Three different integer values can be specified:
43da96f2
MK
1334.sp
1335\fI0\ (default)\fP
d9bfdb9c 1336This provides the traditional (pre-Linux 2.6.13) behavior.
c13182ef 1337A core dump will not be produced for a process which has
f1162930 1338changed credentials (by calling
c13182ef
MK
1339.BR seteuid (2),
1340.BR setgid (2),
1341or similar, or by executing a set-user-ID or set-group-ID program)
f1162930 1342or whose binary does not have read permission enabled.
43da96f2 1343.sp
f1162930 1344\fI1\ ("debug")\fP
43da96f2 1345All processes dump core when possible.
c13182ef 1346The core dump is owned by the file system user ID of the dumping process
f1162930 1347and no security is applied.
43da96f2
MK
1348This is intended for system debugging situations only.
1349Ptrace is unchecked.
1350.sp
f1162930 1351\fI2\ ("suidsafe")\fP
c13182ef
MK
1352Any binary which normally would not be dumped (see "0" above)
1353is dumped readable by root only.
f1162930 1354This allows the user to remove the core dump file but not to read it.
c13182ef 1355For security reasons core dumps in this mode will not overwrite one
43da96f2 1356another or other files.
b877b392 1357This mode is appropriate when administrators are
43da96f2 1358attempting to debug problems in a normal environment.
fea681da 1359.TP
c13182ef
MK
1360.I /proc/sys/fs/super-max
1361This file
fea681da
MK
1362controls the maximum number of superblocks, and
1363thus the maximum number of mounted filesystems the kernel
c13182ef
MK
1364can have.
1365You only need to increase super-max if you need to
fea681da
MK
1366mount more filesystems than the current value in super-max
1367allows you to.
1368.TP
1369.I /proc/sys/fs/super-nr
c13182ef 1370This file
fea681da
MK
1371contains the number of filesystems currently mounted.
1372.TP
1373.I /proc/sys/kernel
1374This directory contains files
1375.IR acct ", " cad_pid ", " cap-bound ", "
1376.IR core_pattern ", " core_uses_pid ", "
1377.IR ctrl-alt-del ", " dentry-state ", " domainname ", "
c13182ef 1378.IR hotplug ", " hostname ", "
fea681da
MK
1379.IR htab-reclaim " (PowerPC only), "
1380.IR java-appletviewer " (binfmt_java, obsolete), "
1381.IR java-interpreter " (binfmt_java, obsolete), " l2cr " (PowerPC only), "
c13182ef 1382.IR modprobe ", " msgmax ", " msgmnb ", "
fea681da
MK
1383.IR msgmni ", " osrelease ", " ostype ", " overflowgid ", " overflowuid ,
1384.IR panic ", " panic_on_oops ", " pid_max ", "
1385.IR powersave-nap " (PowerPC only), " printk ", " pty ", " random ", "
c13182ef 1386.IR real-root-dev ", " reboot-cmd " (SPARC only), " rtsig-max ", "
fea681da
MK
1387.IR rtsig-nr ", " sem ", " sg-big-buff ", "
1388.IR shmall ", " shmmax ", " shmmni ", " sysrq ", " tainted ", " threads-max ,
43da96f2 1389.IR version ", and " zero-paged " (PowerPC only)."
fea681da
MK
1390.TP
1391.I /proc/sys/kernel/acct
c13182ef 1392This file
fea681da
MK
1393contains three numbers: highwater, lowwater and frequency.
1394If BSD-style process accounting is enabled these values control
d9bfdb9c 1395its behavior.
c13182ef
MK
1396If free space on filesystem where the log lives
1397goes below lowwater percent accounting suspends.
1398If free space gets
1399above highwater percent accounting resumes.
1400Frequency determines
fea681da 1401how often the kernel checks the amount of free space (value is in
c13182ef
MK
1402seconds).
1403Default values are 4, 2 and 30.
fea681da
MK
1404That is, suspend accounting if <= 2% of space is free; resume it
1405if >= 4% of space is free; consider information about amount of free space
1406valid for 30 seconds.
1407.TP
1408.I /proc/sys/kernel/cap-bound
1409This file holds the value of the kernel
0daa9e92 1410.I "capability bounding set"
fea681da
MK
1411(expressed as a signed decimal number).
1412This set is ANDed against the capabilities permitted to a process
c13182ef 1413during
ee6e96c1 1414.BR execve (2).
fea681da
MK
1415.TP
1416.I /proc/sys/kernel/core_pattern
5937fccd
MK
1417See
1418.BR core (5).
654cc098 1419.TP
fea681da 1420.I /proc/sys/kernel/core_uses_pid
5937fccd
MK
1421See
1422.BR core (5).
fea681da
MK
1423.TP
1424.I /proc/sys/kernel/ctrl-alt-del
1425This file
1426controls the handling of Ctrl-Alt-Del from the keyboard.
1427When the value in this file is 0, Ctrl-Alt-Del is trapped and
1428sent to the
49ec013c 1429.BR init (8)
fea681da
MK
1430program to handle a graceful restart.
1431When the value is > 0, Linux's reaction to a Vulcan
1432Nerve Pinch (tm) will be an immediate reboot, without even
1433syncing its dirty buffers.
1434Note: when a program (like dosemu) has the keyboard in 'raw'
1435mode, the ctrl-alt-del is intercepted by the program before it
1436ever reaches the kernel tty layer, and it's up to the program
1437to decide what to do with it.
1438.TP
1439.I /proc/sys/kernel/hotplug
1440This file
1441contains the path for the hotplug policy agent.
60849763 1442The default value in this file is
9a67332e 1443.IR /sbin/hotplug .
fea681da
MK
1444.TP
1445.IR /proc/sys/kernel/domainname " and " /proc/sys/kernel/hostname
1446can be used to set the NIS/YP domainname and the
1447hostname of your box in exactly the same way as the commands
8b49407f
MK
1448.BR domainname (1)
1449and
03d2434e
MK
1450.BR hostname (1),
1451that is:
fea681da
MK
1452.br
1453
1454.br
1455# echo "darkstar" > /proc/sys/kernel/hostname
1456.br
1457# echo "mydomain" > /proc/sys/kernel/domainname
1458.br
1459
1460.br
1461has the same effect as
1462.br
1463
1464.br
1465# hostname "darkstar"
1466.br
1467# domainname "mydomain"
1468.br
1469
1470.br
1471Note, however, that the classic darkstar.frop.org has the
1472hostname "darkstar" and DNS (Internet Domain Name Server)
1473domainname "frop.org", not to be confused with the NIS (Network
c13182ef
MK
1474Information Service) or YP (Yellow Pages) domainname.
1475These two
1476domain names are in general different.
1477For a detailed discussion
fea681da
MK
1478see the
1479.BR hostname (1)
1480man page.
1481.TP
1482.I /proc/sys/kernel/htab-reclaim
1483(PowerPC only) If this file is set to a non-zero value,
1484the PowerPC htab
9a67332e
MK
1485(see kernel file
1486.IR Documentation/powerpc/ppc_htab.txt )
1487is pruned
fea681da
MK
1488each time the system hits the idle loop.
1489.TP
1490.I /proc/sys/kernel/l2cr
1491(PowerPC only) This file
1492contains a flag that controls the L2 cache of G3 processor
c13182ef
MK
1493boards.
1494If 0, the cache is disabled.
1495Enabled if non-zero.
fea681da
MK
1496.TP
1497.I /proc/sys/kernel/modprobe
6ab7c0aa
MK
1498This file contains the path for the kernel module loader.
1499The default value is
1500.IR /sbin/modprobe .
1501The file is only present if the kernel is built with the
1502CONFIG_KMOD option enabled.
1503It is described by the kernel source file
1504.I Documentation/kmod.txt
1505(only present in kernel 2.4 and earlier).
fea681da
MK
1506.TP
1507.I /proc/sys/kernel/msgmax
1508This file defines
1509a system-wide limit specifying the maximum number of bytes in
1510a single message written on a System V message queue.
1511.TP
1512.I /proc/sys/kernel/msgmni
1513This file defines the system-wide limit on the number of
1514message queue identifiers.
1515(This file is only present in Linux 2.4 onwards.)
1516.TP
1517.I /proc/sys/kernel/msgmnb
d9bfdb9c 1518This file defines a system-wide parameter used to initialize the
fea681da 1519.I msg_qbytes
568105c6 1520setting for subsequently created message queues.
fea681da
MK
1521The
1522.I msg_qbytes
1523setting specifies the maximum number of bytes that may be written to the
1524message queue.
1525.TP
1526.IR /proc/sys/kernel/ostype " and " /proc/sys/kernel/osrelease
1527These files
1528give substrings of
1529.IR /proc/version .
1530.TP
1531.IR /proc/sys/kernel/overflowgid " and " /proc/sys/kernel/overflowuid
1532These files duplicate the files
1533.I /proc/sys/fs/overflowgid
1534and
1535.IR /proc/sys/fs/overflowuid .
1536.TP
1537.I /proc/sys/kernel/panic
1538gives read/write access to the kernel variable
1539.IR panic_timeout .
f59a3f19 1540If this is zero, the kernel will loop on a panic; if non-zero
fea681da 1541it indicates that the kernel should autoreboot after this number
c13182ef
MK
1542of seconds.
1543When you use the
fea681da
MK
1544software watchdog device driver, the recommended setting is 60.
1545.TP
1546.I /proc/sys/kernel/panic_on_oops
d9bfdb9c 1547This file (new in Linux 2.5) controls the kernel's behavior when an oops
c13182ef
MK
1548or BUG is encountered.
1549If this file contains 0, then the system
1550tries to continue operation.
1551If it contains 1, then the system
fea681da 1552delays a few seconds (to give klogd time to record the oops output)
c13182ef 1553and then panics.
fea681da
MK
1554If the
1555.I /proc/sys/kernel/panic
1556file is also non-zero then the machine will be rebooted.
1557.TP
1558.I /proc/sys/kernel/pid_max
c13182ef 1559This file
fea681da
MK
1560(new in Linux 2.5)
1561specifies the value at which PIDs wrap around
1562(i.e., the value in this file is one greater than the maximum PID).
1563The default value for this file, 32768,
1564results in the same range of PIDs as on earlier kernels.
c13182ef 1565On 32-bit platforms, 32768 is the maximum value for
b3b8bd24 1566.IR pid_max .
c13182ef 1567On 64-bit systems,
b3b8bd24
MK
1568.I pid_max
1569can be set to any value up to 2^22
fea681da 1570(PID_MAX_LIMIT, approximately 4 million).
c13182ef 1571.\" Prior to 2.6.10, pid_max could also be raised above 32768 on 32-bit
b3b8bd24
MK
1572.\" platforms, but this broke /proc/PID
1573.\" See http://marc.theaimsgroup.com/?l=linux-kernel&m=109513010926152&w=2
fea681da
MK
1574.TP
1575.IR /proc/sys/kernel/powersave-nap " (PowerPC only)"
c13182ef
MK
1576This file contains a flag.
1577If set, Linux-PPC will use the 'nap' mode of
fea681da
MK
1578powersaving,
1579otherwise the 'doze' mode will be used.
1580.TP
1581.I /proc/sys/kernel/printk
1582The four values in this file
1583are console_loglevel, default_message_loglevel, minimum_console_level and
1584default_console_loglevel.
1585These values influence printk() behavior when printing or
c13182ef
MK
1586logging error messages.
1587See
fea681da
MK
1588.BR syslog (2)
1589for more info on the different loglevels.
1590Messages with a higher priority than
1591console_loglevel will be printed to the console.
1592Messages without an explicit priority
1593will be printed with priority default_message_level.
1594minimum_console_loglevel is the minimum (highest) value to which
1595console_loglevel can be set.
1596default_console_loglevel is the default value for console_loglevel.
1597.TP
1598.IR /proc/sys/kernel/pty " (since Linux 2.6.4)"
c13182ef 1599This directory
fea681da
MK
1600contains two files relating to the number of Unix 98
1601pseudo-terminals (see
1602.BR pts (4))
1603on the system.
1604.TP
1605.I /proc/sys/kernel/pty/max
1606This file defines the maximum number of pseudo-terminals.
1607.TP
1608.I /proc/sys/kernel/pty/nr
1609This read-only file
1610indicates how many pseudo-terminals are currently in use.
1611.TP
fea681da
MK
1612.I /proc/sys/kernel/random
1613This directory
1614contains various parameters controlling the operation of the file
1615.IR /dev/random .
c13182ef 1616See
95a32af8
MK
1617.BR random (4)
1618for further information.
fea681da
MK
1619.TP
1620.I /proc/sys/kernel/real-root-dev
1621This file
9a67332e
MK
1622is documented in the kernel source file
1623.IR Documentation/initrd.txt .
fea681da
MK
1624.TP
1625.IR /proc/sys/kernel/reboot-cmd " (Sparc only) "
1626This file seems to be a way to give an argument to the SPARC
c13182ef
MK
1627ROM/Flash boot loader.
1628Maybe to tell it what to do after
fea681da
MK
1629rebooting?
1630.TP
1631.I /proc/sys/kernel/rtsig-max
c13182ef 1632(Only in kernels up to and including 2.6.7; see
70556c17 1633.BR setrlimit (2))
fea681da
MK
1634This file can be used to tune the maximum number
1635of POSIX realtime (queued) signals that can be outstanding
1636in the system.
1637.TP
1638.I /proc/sys/kernel/rtsig-nr
70556c17 1639(Only in kernels up to and including 2.6.7.)
fea681da
MK
1640This file shows the number POSIX realtime signals currently queued.
1641.TP
1642.IR /proc/sys/kernel/sem " (since Linux 2.4)"
1643This file contains 4 numbers defining limits for System V IPC semaphores.
c13182ef 1644These fields are, in order:
fea681da
MK
1645.RS
1646.IP SEMMSL 8
1647The maximum semaphores per semaphore set.
1648.IP SEMMNS 8
1649A system-wide limit on the number of semaphores in all semaphore sets.
1650.IP SEMOPM 8
1651The maximum number of operations that may be specified in a
1652.BR semop (2)
1653call.
1654.IP SEMMNI 8
1655A system-wide limit on the maximum number of semaphore identifiers.
1656.RE
1657.TP
1658.I /proc/sys/kernel/sg-big-buff
c13182ef 1659This file
fea681da
MK
1660shows the size of the generic SCSI device (sg) buffer.
1661You can't tune it just yet, but you could change it on
9a67332e
MK
1662compile time by editing
1663.I include/scsi/sg.h
1664and changing
c13182ef
MK
1665the value of SG_BIG_BUFF.
1666However, there shouldn't be any reason to change this value.
fea681da
MK
1667.TP
1668.I /proc/sys/kernel/shmall
1669This file
1670contains the system-wide limit on the total number of pages of
1671System V shared memory.
1672.TP
1673.I /proc/sys/kernel/shmmax
1674This file
1675can be used to query and set the run time limit
c13182ef 1676on the maximum (System V IPC) shared memory segment size that can be
fea681da 1677created.
c13182ef
MK
1678Shared memory segments up to 1Gb are now supported in the
1679kernel.
1680This value defaults to SHMMAX.
fea681da
MK
1681.TP
1682.I /proc/sys/kernel/shmmni
1683(available in Linux 2.4 and onwards)
1684This file
1685specifies the system-wide maximum number of System V shared memory
1686segments that can be created.
1687.TP
1688.I /proc/sys/kernel/version
1689contains a string like:
1690.br
1691
1692.br
1693#5 Wed Feb 25 21:49:24 MET 1998.TP
1694.br
1695
1696.br
1697The '#5' means that
1698this is the fifth kernel built from this source base and the
1699date behind it indicates the time the kernel was built.
1700.TP
1701.IR /proc/sys/kernel/zero-paged " (PowerPC only) "
1702This file
c13182ef
MK
1703contains a flag.
1704When enabled (non-zero), Linux-PPC will pre-zero pages in
fea681da
MK
1705the idle loop, possibly speeding up get_free_pages.
1706.TP
1707.I /proc/sys/net
1708This directory contains networking stuff.
81c6dd6c
MK
1709Explanations for some of the files under this directory can be found in
1710.BR tcp (7)
1711and
1712.BR ip (7).
fea681da 1713.TP
ec650cc1
MK
1714.I /proc/sys/net/core/somaxconn
1715This file defines a ceiling value for the
1716.I backlog
1717argument of
1718.BR listen (2);
1719see the
1720.BR listen (2)
1721manual page for details.
1722.TP
fea681da
MK
1723.I /proc/sys/proc
1724This directory may be empty.
1725.TP
1726.I /proc/sys/sunrpc
1727This directory supports Sun remote procedure call for network file system
c13182ef
MK
1728(NFS).
1729On some systems, it is not present.
fea681da
MK
1730.TP
1731.I /proc/sys/vm
c13182ef 1732This directory contains files for memory management tuning, buffer and
fea681da
MK
1733cache
1734management.
1735.TP
b6c40587
MK
1736.IR /proc/sys/vm/drop_caches " (since Linux 2.6.16)"
1737Writing to this file causes the kernel to drop clean caches, dentries and
1738inodes from memory, causing that memory to become free.
1739
c13182ef 1740To free pagecache, use
b6c40587
MK
1741.IR "echo 1 > /proc/sys/vm/drop_caches" ;
1742to free dentries and inodes, use
1743.IR "echo 2 > /proc/sys/vm/drop_caches" ;
1744to free pagecache, dentries and inodes, use
1745.IR "echo 3 > /proc/sys/vm/drop_caches" .
1746
c13182ef 1747Because this is a non-destructive operation and dirty objects
b6c40587 1748are not freeable, the
c13182ef 1749user should run
b6c40587
MK
1750.BR sync (8)
1751first.
1752.TP
473ad28f
MK
1753.IR /proc/sys/vm/legacy_va_layout " (since Linux 2.6.9)"
1754.\" The following is from Documentation/filesystems/proc.txt
1755If non-zero, this disable the new 32-bit memory-mapping layout;
1756the kernel will use the legacy (2.4) layout for all processes.
1757.TP
fea681da 1758.I /proc/sys/vm/overcommit_memory
c13182ef
MK
1759This file contains the kernel virtual memory accounting mode.
1760Values are:
fea681da
MK
1761.br
17620: heuristic overcommit (this is the default)
1763.br
17641: always overcommit, never check
1765.br
17662: always check, never overcommit
1767.br
1768In mode 0, calls of
1769.BR mmap (2)
097585ed 1770with
0daa9e92 1771.B MAP_NORESERVE
097585ed 1772set are not checked, and the default check is very weak,
fea681da 1773leading to the risk of getting a process "OOM-killed".
f59a3f19 1774Under Linux 2.4 any non-zero value implies mode 1.
fea681da
MK
1775In mode 2 (available since Linux 2.6), the total virtual address space
1776on the system is limited to (SS + RAM*(r/100)),
1777where SS is the size of the swap space, and RAM
1778is the size of the physical memory, and r is the contents of the file
1779.IR /proc/sys/vm/overcommit_ratio .
1780.TP
1781.I /proc/sys/vm/overcommit_ratio
c13182ef 1782See the description of
fea681da
MK
1783.IR /proc/sys/vm/overcommit_memory .
1784.TP
1785.I /proc/sysvipc
c13182ef 1786Subdirectory containing the pseudo-files
fea681da 1787.IR msg ", " sem " and " shm "."
c13182ef 1788These files list the System V Interprocess Communication (IPC) objects
fea681da
MK
1789(respectively: message queues, semaphores, and shared memory)
1790that currently exist on the system,
1791providing similar information to that available via
1792.BR ipcs (1).
1793These files have headers and are formatted (one IPC object per line)
1794for easy understanding.
2c5e151c 1795.BR svipc (7)
fea681da
MK
1796provides further background on the information shown by these files.
1797.TP
1798.I /proc/tty
c13182ef 1799Subdirectory containing the pseudo-files and subdirectories for
fea681da
MK
1800tty drivers and line disciplines.
1801.TP
1802.I /proc/uptime
1803This file contains two numbers: the uptime of the system (seconds),
1804and the amount of time spent in idle process (seconds).
1805.TP
1806.I /proc/version
1807This string identifies the kernel version that is currently running.
030d3025
MK
1808It includes the contents of
1809.IR /proc/sys/kernel/ostype ,
0daa9e92 1810.I /proc/sys/kernel/osrelease
030d3025
MK
1811and
1812.IR /proc/sys/kernel/version .
c13182ef 1813For example:
fea681da
MK
1814.nf
1815.in -2
1816.ft CW
1817Linux version 1.0.9 (quinlan@phaze) #1 Sat May 14 01:51:54 EDT 1994
1818.ft
1819.in +2
1820.fi
1821.TP
1822.IR /proc/vmstat " (since Linux 2.6)"
1823This file displays various virtual memory statistics.
363f747c
MK
1824.TP
1825.IR /proc/zoneinfo " (since Linux 2.6.13)"
1826This file display information about memory zones.
d9bfdb9c 1827This is useful for analyzing virtual memory behavior.
218e46f8 1828.\" FIXME more should be said about /proc/zoneinfo
fea681da
MK
1829.RE
1830.RE
e37e3282
MK
1831.SH NOTES
1832Many strings (i.e., the environment and command line) are in
1833the internal format, with sub-fields terminated by null bytes ('\\0'),
1834so you
1835may find that things are more readable if you use \fIod \-c\fP or \fItr
1836"\\000" "\\n"\fP to read them.
1837Alternatively, \fIecho `cat <file>`\fP works well.
1838
1839This manual page is incomplete, possibly inaccurate, and is the kind
1840of thing that needs to be updated very often.
1841.\" .SH ACKNOWLEDGEMENTS
1842.\" The material on /proc/sys/fs and /proc/sys/kernel is closely based on
1843.\" kernel source documentation files written by Rik van Riel.
fea681da
MK
1844.SH "SEE ALSO"
1845.BR cat (1),
1846.BR find (1),
1847.BR free (1),
fea681da
MK
1848.BR ps (1),
1849.BR tr (1),
1850.BR uptime (1),
1851.BR chroot (2),
1852.BR mmap (2),
1853.BR readlink (2),
1854.BR syslog (2),
1855.BR slabinfo (5),
1856.BR hier (7),
1857.BR arp (8),
1858.BR dmesg (8),
1859.BR hdparm (8),
1860.BR ifconfig (8),
1861.BR init (8),
1862.BR lsmod (8),
1863.BR lspci (8),
809d0164 1864.BR mount (8),
fea681da
MK
1865.BR netstat (8),
1866.BR procinfo (8),
1867.BR route (8)
1868.br
1869.I /usr/src/linux/Documentation/filesystems/proc.txt