OSDN Git Service

(split) LDP_man-pages: update original to v3.34.
[linuxjm/LDP_man-pages.git] / original / man5 / proc.5
1 .\" Copyright (C) 1994, 1995 by Daniel Quinlan (quinlan@yggdrasil.com)
2 .\" and Copyright (C) 2002-2008 Michael Kerrisk <mtk.manpages@gmail.com>
3 .\" with networking additions from Alan Cox (A.Cox@swansea.ac.uk)
4 .\" and scsi additions from Michael Neuffer (neuffer@mail.uni-mainz.de)
5 .\" and sysctl additions from Andries Brouwer (aeb@cwi.nl)
6 .\" and System V IPC (as well as various other) additions from
7 .\" Michael Kerrisk <mtk.manpages@gmail.com>
8 .\"
9 .\" This is free documentation; you can redistribute it and/or
10 .\" modify it under the terms of the GNU General Public License as
11 .\" published by the Free Software Foundation; either version 2 of
12 .\" the License, or (at your option) any later version.
13 .\"
14 .\" The GNU General Public License's references to "object code"
15 .\" and "executables" are to be interpreted as the output of any
16 .\" document formatting or typesetting system, including
17 .\" intermediate and printed output.
18 .\"
19 .\" This manual is distributed in the hope that it will be useful,
20 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
21 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 .\" GNU General Public License for more details.
23 .\"
24 .\" You should have received a copy of the GNU General Public
25 .\" License along with this manual; if not, write to the Free
26 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
27 .\" USA.
28 .\"
29 .\" Modified 1995-05-17 by faith@cs.unc.edu
30 .\" Minor changes by aeb and Marty Leisner (leisner@sdsp.mc.xerox.com).
31 .\" Modified 1996-04-13, 1996-07-22 by aeb@cwi.nl
32 .\" Modified 2001-12-16 by rwhron@earthlink.net
33 .\" Modified 2002-07-13 by jbelton@shaw.ca
34 .\" Modified 2002-07-22, 2003-05-27, 2004-04-06, 2004-05-25
35 .\"    by Michael Kerrisk <mtk.manpages@gmail.com>
36 .\" 2004-11-17, mtk -- updated notes on /proc/loadavg
37 .\" 2004-12-01, mtk, rtsig-max and rtsig-nr went away in 2.6.8
38 .\" 2004-12-14, mtk, updated 'statm', and fixed error in order of list
39 .\" 2005-05-12, mtk, updated 'stat'
40 .\" 2005-07-13, mtk, added /proc/sys/fs/mqueue/*
41 .\" 2005-09-16, mtk, Added /proc/sys/fs/suid_dumpable
42 .\" 2005-09-19, mtk, added /proc/zoneinfo
43 .\" 2005-03-01, mtk, moved /proc/sys/fs/mqueue/* material to mq_overview.7.
44 .\" 2008-06-05, mtk, Added /proc/[pid]/oom_score, /proc/[pid]/oom_adj,
45 .\"     /proc/[pid]/limits, /proc/[pid]/mountinfo, /proc/[pid]/mountstats,
46 .\"     and /proc/[pid]/fdinfo/*.
47 .\" 2008-06-19, mtk, Documented /proc/[pid]/status.
48 .\" 2008-07-15, mtk, added /proc/config.gz
49 .\"
50 .\" FIXME 2.6.13 seems to have /proc/vmcore implemented
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
54 .\" entry in this man page.
55 .\" Needs CONFIG_VMCORE
56 .\"
57 .\" FIXME cross check against Documentation/filesystems/proc.txt
58 .\" to see what information could be imported from that file
59 .\" into this file.
60 .\"
61 .TH PROC 5 2011-09-15 "Linux" "Linux Programmer's Manual"
62 .SH NAME
63 proc \- process information pseudo-file system
64 .SH DESCRIPTION
65 The
66 .I proc
67 file system is a pseudo-file system which is used as an interface to
68 kernel data structures.
69 It is commonly mounted at
70 .IR /proc .
71 Most of it is read-only, but some files allow kernel variables to be
72 changed.
73 .LP
74 The following outline gives a quick tour through the
75 .I /proc
76 hierarchy.
77 .PD 1
78 .TP
79 .I /proc/[pid]
80 There is a numerical subdirectory for each running process; the
81 subdirectory is named by the process ID.
82 Each such subdirectory contains the following
83 pseudo-files and directories.
84 .\" FIXME Describe /proc/[pid]/attr and
85 .\"       /proc/[pid]/task/[tid]/attr
86 .\"       This is a directory
87 .\"       Added in ???
88 .\"       CONFIG_SECURITY
89 .\"
90 .TP
91 .IR /proc/[pid]/auxv " (since 2.6.0-test7)"
92 This contains the contents of the ELF interpreter information passed
93 to the process at exec time.
94 The format is one \fIunsigned long\fP ID
95 plus one \fIunsigned long\fP value for each entry.
96 The last entry contains two zeros.
97 .\" FIXME Describe /proc/[pid]/cgroup and
98 .\"       /proc/[pid]/task/[tid]/cgroup
99 .\"       Info in Documentation/cgroups.txt
100 .\"       Added in 2.6.24
101 .\"       CONFIG_CGROUPS
102 .\"
103 .\" FIXME Describe /proc/[pid]/clear_refs
104 .\"       Added in 2.6.22
105 .\"       "Clears page referenced bits shown in smaps output"
106 .\"       write-only
107 .\"       CONFIG_PROC_PAGE_MONITOR
108 .TP
109 .I /proc/[pid]/cmdline
110 This holds the complete command line for the process,
111 unless the process is a zombie.
112 .\" In 2.3.26, this also used to be true if the process was swapped out.
113 In the latter case, there is nothing in this file:
114 that is, a read on this file will return 0 characters.
115 The command-line arguments appear in this file as a set of
116 strings separated by null bytes (\(aq\\0\(aq),
117 with a further null byte after the last string.
118 .TP
119 .IR /proc/[pid]/coredump_filter " (since kernel 2.6.23)"
120 See
121 .BR core (5).
122 .TP
123 .IR /proc/[pid]/cpuset " (since kernel 2.6.12)"
124 .\" and/proc/[pid]/task/[tid]/cpuset
125 See
126 .BR cpuset (7).
127 .TP
128 .I /proc/[pid]/cwd
129 This is a symbolic link to the current working directory of the process.
130 To find out the current working directory of process 20,
131 for instance, you can do this:
132
133 .in +4n
134 .nf
135 .RB "$" " cd /proc/20/cwd; /bin/pwd"
136 .fi
137 .in
138
139 Note that the
140 .I pwd
141 command is often a shell built-in, and might
142 not work properly.
143 In
144 .BR bash (1),
145 you may use
146 .IR "pwd\ \-P" .
147
148 .\" The following was still true as at kernel 2.6.13
149 In a multithreaded process, the contents of this symbolic link
150 are not available if the main thread has already terminated
151 (typically by calling
152 .BR pthread_exit (3)).
153 .TP
154 .I /proc/[pid]/environ
155 This file contains the environment for the process.
156 The entries are separated by null bytes (\(aq\\0\(aq),
157 and there may be a null byte at the end.
158 Thus, to print out the environment of process 1, you would do:
159 .in +4n
160 .nf
161
162 .ft CW
163 .RB "$" " (cat /proc/1/environ; echo) | tr \(aq\e000\(aq \(aq\en\(aq"
164 .fi
165 .ft P
166 .in
167 .TP
168 .I /proc/[pid]/exe
169 Under Linux 2.2 and later, this file is a symbolic link
170 containing the actual pathname of the executed command.
171 This symbolic link can be dereferenced normally; attempting to open
172 it will open the executable.
173 You can even type
174 .I /proc/[pid]/exe
175 to run another copy of the same executable as is being run by
176 process [pid].
177 .\" The following was still true as at kernel 2.6.13
178 In a multithreaded process, the contents of this symbolic link
179 are not available if the main thread has already terminated
180 (typically by calling
181 .BR pthread_exit (3)).
182
183 Under Linux 2.0 and earlier
184 .I /proc/[pid]/exe
185 is a pointer to the binary which was executed,
186 and appears as a symbolic link.
187 A
188 .BR readlink (2)
189 call on this file under Linux 2.0 returns a string in the format:
190
191     [device]:inode
192
193 For example, [0301]:1502 would be inode 1502 on device major 03 (IDE,
194 MFM, etc. drives) minor 01 (first partition on the first drive).
195
196 .BR find (1)
197 with the
198 .I \-inum
199 option can be used to locate the file.
200 .TP
201 .I /proc/[pid]/fd
202 This is a subdirectory containing one entry for each file which the
203 process has open, named by its file descriptor, and which is a
204 symbolic link to the actual file.
205 Thus, 0 is standard input, 1 standard output, 2 standard error, etc.
206
207 .\" The following was still true as at kernel 2.6.13
208 In a multithreaded process, the contents of this directory
209 are not available if the main thread has already terminated
210 (typically by calling
211 .BR pthread_exit (3)).
212
213 Programs that will take a filename as a command-line argument,
214 but will not take input from standard input if no argument is supplied,
215 or that write to a file named as a command-line argument,
216 but will not send their output to standard output
217 if no argument is supplied, can nevertheless be made to use
218 standard input or standard out using
219 .IR /proc/[pid]/fd .
220 For example, assuming that
221 .I \-i
222 is the flag designating an input file and
223 .I \-o
224 is the flag designating an output file:
225 .in +4n
226 .nf
227
228 .RB "$" " foobar \-i /proc/self/fd/0 \-o /proc/self/fd/1 ..."
229 .fi
230 .in
231
232 and you have a working filter.
233 .\" The following is not true in my tests (MTK):
234 .\" Note that this will not work for
235 .\" programs that seek on their files, as the files in the fd directory
236 .\" are not seekable.
237
238 .I /proc/self/fd/N
239 is approximately the same as
240 .I /dev/fd/N
241 in some UNIX and UNIX-like systems.
242 Most Linux MAKEDEV scripts symbolically link
243 .I /dev/fd
244 to
245 .IR /proc/self/fd ,
246 in fact.
247
248 Most systems provide symbolic links
249 .IR /dev/stdin ,
250 .IR /dev/stdout ,
251 and
252 .IR /dev/stderr ,
253 which respectively link to the files
254 .IR 0 ,
255 .IR 1 ,
256 and
257 .IR 2
258 in
259 .IR /proc/self/fd .
260 Thus the example command above could be written as:
261 .in +4n
262 .nf
263
264 .RB "$" " foobar \-i /dev/stdin \-o /dev/stdout ..."
265 .fi
266 .in
267 .\" FIXME Describe /proc/[pid]/loginuid
268 .\"       Added in 2.6.11; updating requires CAP_AUDIT_CONTROL
269 .\"       CONFIG_AUDITSYSCALL
270 .TP
271 .IR /proc/[pid]/fdinfo/ " (since kernel 2.6.22)"
272 This is a subdirectory containing one entry for each file which the
273 process has open, named by its file descriptor.
274 The contents of each file can be read to obtain information
275 about the corresponding file descriptor, for example:
276 .in +4n
277 .nf
278
279 .RB "$" " cat /proc/12015/fdinfo/4"
280 pos:    1000
281 flags:  01002002
282 .fi
283 .in
284
285 The
286 .I pos
287 field is a decimal number showing the current file offset.
288 The
289 .I flags
290 field is an octal number that displays the
291 file access mode and file status flags (see
292 .BR open (2)).
293
294 The files in this directory are readable only by the owner of the process.
295 .\" FIXME document /proc/[pid]/io
296 .\" .TP
297 .\" .IR /proc/[pid]/io " (since kernel 2.6.20)"
298 .TP
299 .IR /proc/[pid]/limits " (since kernel 2.6.24)"
300 This file displays the soft limit, hard limit, and units of measurement
301 for each of the process's resource limits (see
302 .BR getrlimit (2)).
303 The file is protected to only allow reading by the real UID of the process.
304 .TP
305 .I /proc/[pid]/maps
306 A file containing the currently mapped memory regions and their access
307 permissions.
308
309 The format is:
310
311 .nf
312 .ft CW
313 address           perms offset  dev   inode   pathname
314 08048000-08056000 r-xp 00000000 03:0c 64593   /usr/sbin/gpm
315 08056000-08058000 rw-p 0000d000 03:0c 64593   /usr/sbin/gpm
316 08058000-0805b000 rwxp 00000000 00:00 0
317 40000000-40013000 r-xp 00000000 03:0c 4165    /lib/ld-2.2.4.so
318 40013000-40015000 rw-p 00012000 03:0c 4165    /lib/ld-2.2.4.so
319 4001f000-40135000 r-xp 00000000 03:0c 45494   /lib/libc-2.2.4.so
320 40135000-4013e000 rw-p 00115000 03:0c 45494   /lib/libc-2.2.4.so
321 4013e000-40142000 rw-p 00000000 00:00 0
322 bffff000-c0000000 rwxp 00000000 00:00 0
323 .ft
324 .fi
325
326 where "address" is the address space in the process that it occupies,
327 "perms" is a set of permissions:
328
329 .nf
330 .in +5
331 r = read
332 w = write
333 x = execute
334 s = shared
335 p = private (copy on write)
336 .fi
337 .in
338
339 "offset" is the offset into the file/whatever, "dev" is the device
340 (major:minor), and "inode" is the inode on that device.
341 0 indicates that no inode is associated with the memory region,
342 as the case would be with BSS (uninitialized data).
343
344 Under Linux 2.0 there is no field giving pathname.
345 .TP
346 .I /proc/[pid]/mem
347 This file can be used to access the pages of a process's memory through
348 .BR open (2),
349 .BR read (2),
350 and
351 .BR lseek (2).
352 .TP
353 .IR /proc/[pid]/mountinfo " (since Linux 2.6.26)"
354 .\" This info adapted from Documentation/filesystems/proc.txt
355 This file contains information about mount points.
356 It contains lines of the form:
357 .nf
358 .ft CW
359
360 36 35 98:0 /mnt1 /mnt2 rw,noatime master:1 - ext3 /dev/root rw,errors=continue
361 (1)(2)(3)   (4)   (5)      (6)      (7)   (8) (9)   (10)         (11)
362 .ft
363 .fi
364 .IP
365 The numbers in parentheses are labels for the descriptions below:
366 .RS 7
367 .TP 5
368 (1)
369 mount ID: unique identifier of the mount (may be reused after
370 .BR umount (2)).
371 .TP
372 (2)
373 parent ID: ID of parent mount (or of self for the top of the mount tree).
374 .TP
375 (3)
376 major:minor: value of
377 .I st_dev
378 for files on file system (see
379 .BR stat (2)).
380 .TP
381 (4)
382 root: root of the mount within the file system.
383 .TP
384 (5)
385 mount point: mount point relative to the process's root.
386 .TP
387 (6)
388 mount options: per-mount options.
389 .TP
390 (7)
391 optional fields: zero or more fields of the form "tag[:value]".
392 .TP
393 (8)
394 separator: marks the end of the optional fields.
395 .TP
396 (9)
397 file system type: name of file system in the form "type[.subtype]".
398 .TP
399 (10)
400 mount source: file system-specific information or "none".
401 .TP
402 (11)
403 super options: per-super block options.
404 .RE
405 .IP
406 Parsers should ignore all unrecognized optional fields.
407 Currently the possible optional fields are:
408 .RS 12
409 .TP 18
410 shared:X
411 mount is shared in peer group X
412 .TP
413 master:X
414 mount is slave to peer group X
415 .TP
416 propagate_from:X
417 mount is slave and receives propagation from peer group X (*)
418 .TP
419 unbindable
420 mount is unbindable
421 .RE
422 .IP
423 (*) X is the closest dominant peer group under the process's root.
424 If X is the immediate master of the mount,
425 or if there is no dominant peer group under the same root,
426 then only the "master:X" field is present
427 and not the "propagate_from:X" field.
428
429 For more information on mount propagation see:
430 .I Documentation/filesystems/sharedsubtree.txt
431 in the kernel source tree.
432 .TP
433 .IR /proc/[pid]/mounts " (since Linux 2.4.19)"
434 This is a list of all the file systems currently mounted in the
435 process's mount namespace.
436 The format of this file is documented in
437 .BR fstab (5).
438 Since kernel version 2.6.15, this file is pollable:
439 after opening the file for reading, a change in this file
440 (i.e., a file system mount or unmount) causes
441 .BR select (2)
442 to mark the file descriptor as readable, and
443 .BR poll (2)
444 and
445 .BR epoll_wait (2)
446 mark the file as having an error condition.
447 .TP
448 .IR /proc/[pid]/mountstats " (since Linux 2.6.17)"
449 This file exports information (statistics, configuration information)
450 about the mount points in the process's name space.
451 Lines in this file have the form:
452 .nf
453
454 device /dev/sda7 mounted on /home with fstype ext3 [statistics]
455 (       1      )            ( 2 )             (3 ) (4)
456 .fi
457 .IP
458 The fields in each line are:
459 .RS 7
460 .TP 5
461 (1)
462 The name of the mounted device
463 (or "nodevice" if there is no corresponding device).
464 .TP
465 (2)
466 The mount point within the file system tree.
467 .TP
468 (3)
469 The file system type.
470 .TP
471 (4)
472 Optional statistics and configuration information.
473 Currently (as at Linux 2.6.26), only NFS file systems export
474 information via this field.
475 .RE
476 .IP
477 This file is only readable by the owner of the process.
478 .TP
479 .IR /proc/[pid]/numa_maps " (since Linux 2.6.14)"
480 See
481 .BR numa (7).
482 .TP
483 .IR /proc/[pid]/oom_adj " (since Linux 2.6.11)"
484 This file can be used to adjust the score used to select which process
485 should be killed in an out-of-memory (OOM) situation.
486 The kernel uses this value for a bit-shift operation of the process's
487 .IR oom_score
488 value:
489 valid values are in the range \-16 to +15,
490 plus the special value \-17,
491 which disables OOM-killing altogether for this process.
492 A positive score increases the likelihood of this
493 process being killed by the OOM-killer;
494 a negative score decreases the likelihood.
495 The default value for this file is 0;
496 a new process inherits its parent's
497 .I oom_adj
498 setting.
499 A process must be privileged
500 .RB ( CAP_SYS_RESOURCE )
501 to update this file.
502 .TP
503 .IR /proc/[pid]/oom_score " (since Linux 2.6.11)"
504 .\" See mm/oom_kill.c::badness() in the 2.6.25 sources
505 This file displays the current score that the kernel gives to
506 this process for the purpose of selecting a process
507 for the OOM-killer.
508 A higher score means that the process is more likely to be
509 selected by the OOM-killer.
510 The basis for this score is the amount of memory used by the process,
511 with increases (+) or decreases (\-) for factors including:
512 .\" See mm/oom_kill.c::badness() in the 2.6.25 sources
513 .RS
514 .IP * 2
515 whether the process creates a lot of children using
516 .BR fork (2)
517 (+);
518 .IP *
519 whether the process has been running a long time,
520 or has used a lot of CPU time (\-);
521 .IP *
522 whether the process has a low nice value (i.e., > 0) (+);
523 .IP *
524 whether the process is privileged (\-); and
525 .\" More precisely, if it has CAP_SYS_ADMIN or CAP_SYS_RESOURCE
526 .IP *
527 whether the process is making direct hardware access (\-).
528 .\" More precisely, if it has CAP_SYS_RAWIO
529 .RE
530 .IP
531 The
532 .I oom_score
533 also reflects the bit-shift adjustment specified by the
534 .I oom_adj
535 setting for the process.
536 .\" FIXME Describe /proc/[pid]/pagemap
537 .\"       Added in 2.6.25
538 .\"       CONFIG_PROC_PAGE_MONITOR
539 .TP
540 .I /proc/[pid]/root
541 UNIX and Linux support the idea of a per-process root of the
542 file system, set by the
543 .BR chroot (2)
544 system call.
545 This file is a symbolic link that points to the process's
546 root directory, and behaves as exe, fd/*, etc. do.
547
548 .\" The following was still true as at kernel 2.6.13
549 In a multithreaded process, the contents of this symbolic link
550 are not available if the main thread has already terminated
551 (typically by calling
552 .BR pthread_exit (3)).
553 .\" FIXME Describe /proc/[pid]/seccomp
554 .\"       Added in 2.6.12
555 .\" FIXME Describe /proc/[pid]/sessionid
556 .\"       Added in 2.6.25; read-only; only readable by real UID
557 .\"       CONFIG_AUDITSYSCALL
558 .\" FIXME Describe /proc/[pid]/sched
559 .\"       Added in 2.6.23
560 .\"       CONFIG_SCHED_DEBUG, and additional fields if CONFIG_SCHEDSTATS
561 .\"       Displays various scheduling parameters
562 .\"       This file can be written, to reset stats
563 .\" FIXME Describe /proc/[pid]/schedstats and
564 .\"       /proc/[pid]/task/[tid]/schedstats
565 .\"       Added in 2.6.9
566 .\"       CONFIG_SCHEDSTATS
567 .TP
568 .IR /proc/[pid]/smaps " (since Linux 2.6.14)"
569 .\"       CONFIG_PROC_PAGE_MONITOR
570 This file shows memory consumption for each of the process's mappings.
571 For each of mappings there is a series of lines such as the following:
572 .in +4n
573 .nf
574
575 08048000-080bc000 r-xp 00000000 03:02 13130      /bin/bash
576 Size:               464 kB
577 Rss:                424 kB
578 Shared_Clean:       424 kB
579 Shared_Dirty:         0 kB
580 Private_Clean:        0 kB
581 Private_Dirty:        0 kB
582
583 .fi
584 .in
585 The first of these lines shows the same information as is displayed
586 for the mapping in
587 .IR /proc/[pid]/maps .
588 The remaining lines show the size of the mapping,
589 the amount of the mapping that is currently resident in RAM,
590 the number of clean and dirty shared pages in the mapping,
591 and the number of clean and dirty private pages in the mapping.
592
593 This file is only present if the
594 .B CONFIG_MMU
595 kernel configuration
596 option is enabled.
597 .TP
598 .I /proc/[pid]/stat
599 Status information about the process.
600 This is used by
601 .BR ps (1).
602 It is defined in
603 .IR /usr/src/linux/fs/proc/array.c "."
604
605 The fields, in order, with their proper
606 .BR scanf (3)
607 format specifiers, are:
608 .RS
609 .TP 12
610 \fIpid\fP %d
611 The process ID.
612 .TP
613 \fIcomm\fP %s
614 The filename of the executable, in parentheses.
615 This is visible whether or not the executable is swapped out.
616 .TP
617 \fIstate\fP %c
618 One character from the string "RSDZTW" where R is running, S is
619 sleeping in an interruptible wait, D is waiting in uninterruptible
620 disk sleep, Z is zombie, T is traced or stopped (on a signal),
621 and W is paging.
622 .TP
623 \fIppid\fP %d
624 The PID of the parent.
625 .TP
626 \fIpgrp\fP %d
627 The process group ID of the process.
628 .TP
629 \fIsession\fP %d
630 The session ID of the process.
631 .TP
632 \fItty_nr\fP %d
633 The controlling terminal of the process.
634 (The minor device number is contained in the combination of bits
635 31 to 20 and 7 to 0;
636 the major device number is in bits 15 to 8.)
637 .TP
638 \fItpgid\fP %d
639 .\" This field and following, up to and including wchan added 0.99.1
640 The ID of the foreground process group of the controlling
641 terminal of the process.
642 .TP
643 \fIflags\fP %u (%lu before Linux 2.6.22)
644 The kernel flags word of the process.
645 For bit meanings,
646 see the PF_* defines in
647 .IR <linux/sched.h> .
648 Details depend on the kernel version.
649 .TP
650 \fIminflt\fP %lu
651 The number of minor faults the process has made which have not
652 required loading a memory page from disk.
653 .TP
654 .\" field 11
655 \fIcminflt\fP %lu
656 The number of minor faults that the process's
657 waited-for children have made.
658 .TP
659 \fImajflt\fP %lu
660 The number of major faults the process has made which have
661 required loading a memory page from disk.
662 .TP
663 \fIcmajflt\fP %lu
664 The number of major faults that the process's
665 waited-for children have made.
666 .TP
667 \fIutime\fP %lu
668 Amount of time that this process has been scheduled in user mode,
669 measured in clock ticks (divide by
670 .IR sysconf(_SC_CLK_TCK) .
671 This includes guest time, \fIguest_time\fP
672 (time spent running a virtual CPU, see below),
673 so that applications that are not aware of the guest time field
674 do not lose that time from their calculations.
675 .TP
676 \fIstime\fP %lu
677 Amount of time that this process has been scheduled in kernel mode,
678 measured in clock ticks (divide by
679 .IR sysconf(_SC_CLK_TCK) .
680 .TP
681 \fIcutime\fP %ld
682 Amount of time that this process's
683 waited-for children have been scheduled in user mode,
684 measured in clock ticks (divide by
685 .IR sysconf(_SC_CLK_TCK) .
686 (See also
687 .BR times (2).)
688 This includes guest time, \fIcguest_time\fP
689 (time spent running a virtual CPU, see below).
690 .TP
691 \fIcstime\fP %ld
692 Amount of time that this process's
693 waited-for children have been scheduled in kernel mode,
694 measured in clock ticks (divide by
695 .IR sysconf(_SC_CLK_TCK) .
696 .TP
697 \fIpriority\fP %ld
698 (Explanation for Linux 2.6)
699 For processes running a real-time scheduling policy
700 .RI ( policy
701 below; see
702 .BR sched_setscheduler (2)),
703 this is the negated scheduling priority, minus one;
704 that is, a number in the range \-2 to \-100,
705 corresponding to real-time priorities 1 to 99.
706 For processes running under a non-real-time scheduling policy,
707 this is the raw nice value
708 .RB ( setpriority (2))
709 as represented in the kernel.
710 The kernel stores nice values as numbers
711 in the range 0 (high) to 39 (low),
712 corresponding to the user-visible nice range of \-20 to 19.
713
714 Before Linux 2.6, this was a scaled value based on
715 the scheduler weighting given to this process.
716 .\" And back in kernel 1.2 days things were different again.
717 .TP
718 \fInice\fP %ld
719 The nice value (see
720 .BR setpriority (2)),
721 a value in the range 19 (low priority) to \-20 (high priority).
722 .\" Back in kernel 1.2 days things were different.
723 .TP
724 .\" .TP
725 .\" \fIcounter\fP %ld
726 .\" The current maximum size in jiffies of the process's next timeslice,
727 .\" or what is currently left of its current timeslice, if it is the
728 .\" currently running process.
729 .\" .TP
730 .\" \fItimeout\fP %u
731 .\" The time in jiffies of the process's next timeout.
732 .\" timeout was removed sometime around 2.1/2.2
733 \fInum_threads\fP %ld
734 Number of threads in this process (since Linux 2.6).
735 Before kernel 2.6, this field was hard coded to 0 as a placeholder
736 for an earlier removed field.
737 .TP
738 .\" field 21
739 \fIitrealvalue\fP %ld
740 The time in jiffies before the next
741 .B SIGALRM
742 is sent to the process due to an interval timer.
743 Since kernel 2.6.17, this field is no longer maintained,
744 and is hard coded as 0.
745 .TP
746 \fIstarttime\fP %llu (was %lu before Linux 2.6)
747 The time in jiffies the process started after system boot.
748 .TP
749 \fIvsize\fP %lu
750 Virtual memory size in bytes.
751 .TP
752 \fIrss\fP %ld
753 Resident Set Size: number of pages the process has in real memory.
754 This is just the pages which
755 count toward text, data, or stack space.
756 This does not include pages
757 which have not been demand-loaded in, or which are swapped out.
758 .TP
759 \fIrsslim\fP %lu
760 Current soft limit in bytes on the rss of the process;
761 see the description of
762 .B RLIMIT_RSS
763 in
764 .BR getpriority (2).
765 .TP
766 \fIstartcode\fP %lu
767 The address above which program text can run.
768 .TP
769 \fIendcode\fP %lu
770 The address below which program text can run.
771 .TP
772 \fIstartstack\fP %lu
773 The address of the start (i.e., bottom) of the stack.
774 .TP
775 \fIkstkesp\fP %lu
776 The current value of ESP (stack pointer), as found in the
777 kernel stack page for the process.
778 .TP
779 \fIkstkeip\fP %lu
780 The current EIP (instruction pointer).
781 .TP
782 .\" field 31
783 \fIsignal\fP %lu
784 The bitmap of pending signals, displayed as a decimal number.
785 Obsolete, because it does not provide information on real-time signals; use
786 .I /proc/[pid]/status
787 instead.
788 .TP
789 \fIblocked\fP %lu
790 The bitmap of blocked signals, displayed as a decimal number.
791 Obsolete, because it does not provide information on real-time signals; use
792 .I /proc/[pid]/status
793 instead.
794 .TP
795 \fIsigignore\fP %lu
796 The bitmap of ignored signals, displayed as a decimal number.
797 Obsolete, because it does not provide information on real-time signals; use
798 .I /proc/[pid]/status
799 instead.
800 .TP
801 \fIsigcatch\fP %lu
802 The bitmap of caught signals, displayed as a decimal number.
803 Obsolete, because it does not provide information on real-time signals; use
804 .I /proc/[pid]/status
805 instead.
806 .TP
807 \fIwchan\fP %lu
808 This is the "channel" in which the process is waiting.
809 It is the
810 address of a system call, and can be looked up in a namelist if you
811 need a textual name.
812 (If you have an up-to-date
813 .IR /etc/psdatabase ,
814 then
815 try \fIps \-l\fP to see the WCHAN field in action.)
816 .TP
817 \fInswap\fP %lu
818 .\" nswap was added in 2.0
819 Number of pages swapped (not maintained).
820 .TP
821 \fIcnswap\fP %lu
822 .\" cnswap was added in 2.0
823 Cumulative \fInswap\fP for child processes (not maintained).
824 .TP
825 \fIexit_signal\fP %d (since Linux 2.1.22)
826 Signal to be sent to parent when we die.
827 .TP
828 \fIprocessor\fP %d (since Linux 2.2.8)
829 CPU number last executed on.
830 .TP
831 \fIrt_priority\fP %u (since Linux 2.5.19; was %lu before Linux 2.6.22)
832 Real-time scheduling priority, a number in the range 1 to 99 for
833 processes scheduled under a real-time policy,
834 or 0, for non-real-time processes (see
835 .BR sched_setscheduler (2)).
836 .TP
837 .\" field 41
838 \fIpolicy\fP %u (since Linux 2.5.19; was %lu before Linux 2.6.22)
839 Scheduling policy (see
840 .BR sched_setscheduler (2)).
841 Decode using the SCHED_* constants in
842 .IR linux/sched.h .
843 .TP
844 \fIdelayacct_blkio_ticks\fP %llu (since Linux 2.6.18)
845 Aggregated block I/O delays, measured in clock ticks (centiseconds).
846 .TP
847 \fIguest_time\fP %lu (since Linux 2.6.24)
848 Guest time of the process (time spent running a virtual CPU
849 for a guest operating system), measured in clock ticks (divide by
850 .IR sysconf(_SC_CLK_TCK) .
851 .TP
852 \fIcguest_time\fP %ld (since Linux 2.6.24)
853 Guest time of the process's children, measured in clock ticks (divide by
854 .IR sysconf(_SC_CLK_TCK) .
855 .RE
856 .TP
857 .I /proc/[pid]/statm
858 Provides information about memory usage, measured in pages.
859 The columns are:
860 .in +4n
861 .nf
862
863 size       total program size
864            (same as VmSize in \fI/proc/[pid]/status\fP)
865 resident   resident set size
866            (same as VmRSS in \fI/proc/[pid]/status\fP)
867 share      shared pages (from shared mappings)
868 text       text (code)
869 .\" (not including libs; broken, includes data segment)
870 lib        library (unused in Linux 2.6)
871 data       data + stack
872 .\" (including libs; broken, includes library text)
873 dt         dirty pages (unused in Linux 2.6)
874 .fi
875 .in
876 .TP
877 .I /proc/[pid]/status
878 Provides much of the information in
879 .I /proc/[pid]/stat
880 and
881 .I /proc/[pid]/statm
882 in a format that's easier for humans to parse.
883 Here's an example:
884 .in +4n
885 .nf
886
887 .RB "$" " cat /proc/$$/status"
888 Name:   bash
889 State:  S (sleeping)
890 Tgid:   3515
891 Pid:    3515
892 PPid:   3452
893 TracerPid:      0
894 Uid:    1000    1000    1000    1000
895 Gid:    100     100     100     100
896 FDSize: 256
897 Groups: 16 33 100
898 VmPeak:     9136 kB
899 VmSize:     7896 kB
900 VmLck:         0 kB
901 VmHWM:      7572 kB
902 VmRSS:      6316 kB
903 VmData:     5224 kB
904 VmStk:        88 kB
905 VmExe:       572 kB
906 VmLib:      1708 kB
907 VmPTE:        20 kB
908 Threads:        1
909 SigQ:   0/3067
910 SigPnd: 0000000000000000
911 ShdPnd: 0000000000000000
912 SigBlk: 0000000000010000
913 SigIgn: 0000000000384004
914 SigCgt: 000000004b813efb
915 CapInh: 0000000000000000
916 CapPrm: 0000000000000000
917 CapEff: 0000000000000000
918 CapBnd: ffffffffffffffff
919 Cpus_allowed:   00000001
920 Cpus_allowed_list:      0
921 Mems_allowed:   1
922 Mems_allowed_list:      0
923 voluntary_ctxt_switches:        150
924 nonvoluntary_ctxt_switches:     545
925 .fi
926 .in
927 .IP
928 The fields are as follows:
929 .RS
930 .IP * 2
931 .IR Name :
932 Command run by this process.
933 .IP *
934 .IR State :
935 Current state of the process.  One of
936 "R (running)",
937 "S (sleeping)",
938 "D (disk sleep)",
939 "T (stopped)",
940 "T (tracing stop)",
941 "Z (zombie)",
942 or
943 "X (dead)".
944 .IP *
945 .IR Tgid :
946 Thread group ID (i.e., Process ID).
947 .IP *
948 .IR Pid :
949 Thread ID (see
950 .BR gettid (2)).
951 .IP *
952 .IR PPid :
953 PID of parent process.
954 .IP *
955 .IR TracerPid :
956 PID of process tracing this process (0 if not being traced).
957 .IP *
958 .IR Uid ", " Gid :
959 Real, effective, saved set, and file system UIDs (GIDs).
960 .IP *
961 .IR FDSize :
962 Number of file descriptor slots currently allocated.
963 .IP *
964 .IR Groups :
965 Supplementary group list.
966 .IP *
967 .IR VmPeak :
968 Peak virtual memory size.
969 .IP *
970 .IR VmSize :
971 Virtual memory size.
972 .IP *
973 .IR VmLck :
974 Locked memory size (see
975 .BR mlock (3)).
976 .IP *
977 .IR VmHWM :
978 Peak resident set size ("high water mark").
979 .IP *
980 .IR VmRSS :
981 Resident set size.
982 .IP *
983 .IR VmData ", " VmStk ", " VmExe :
984 Size of data, stack, and text segments.
985 .IP *
986 .IR VmLib :
987 Shared library code size.
988 .IP *
989 .IR VmPTE :
990 Page table entries size (since Linux 2.6.10).
991 .IP *
992 .IR Threads :
993 Number of threads in process containing this thread.
994 .IP *
995 .IR SigQ :
996 This field contains two slash-separated numbers that relate to
997 queued signals for the real user ID of this process.
998 The first of these is the number of currently queued
999 signals for this real user ID, and the second is the
1000 resource limit on the number of queued signals for this process
1001 (see the description of
1002 .BR RLIMIT_SIGPENDING
1003 in
1004 .BR getrlimit (2)).
1005 .IP *
1006 .IR SigPnd ", " ShdPnd :
1007 Number of signals pending for thread and for process as a whole (see
1008 .BR pthreads (7)
1009 and
1010 .BR signal (7)).
1011 .IP *
1012 .IR SigBlk ", " SigIgn ", " SigCgt :
1013 Masks indicating signals being blocked, ignored, and caught (see
1014 .BR signal (7)).
1015 .IP *
1016 .IR CapInh ", " CapPrm ", " CapEff :
1017 Masks of capabilities enabled in inheritable, permitted, and effective sets
1018 (see
1019 .BR capabilities (7)).
1020 .IP *
1021 .IR CapBnd :
1022 Capability Bounding set
1023 (since kernel 2.6.26, see
1024 .BR capabilities (7)).
1025 .IP *
1026 .IR Cpus_allowed :
1027 Mask of CPUs on which this process may run
1028 (since Linux 2.6.24, see
1029 .BR cpuset (7)).
1030 .IP *
1031 .IR Cpus_allowed_list :
1032 Same as previous, but in "list format"
1033 (since Linux 2.6.26, see
1034 .BR cpuset (7)).
1035 .IP *
1036 .IR Mems_allowed :
1037 Mask of memory nodes allowed to this process
1038 (since Linux 2.6.24, see
1039 .BR cpuset (7)).
1040 .IP *
1041 .IR Mems_allowed_list :
1042 Same as previous, but in "list format"
1043 (since Linux 2.6.26, see
1044 .BR cpuset (7)).
1045 .IP *
1046 .IR voluntary_context_switches ", " nonvoluntary_context_switches :
1047 Number of voluntary and involuntary context switches (since Linux 2.6.23).
1048 .RE
1049 .TP
1050 .IR /proc/[pid]/task " (since Linux 2.6.0-test6)"
1051 This is a directory that contains one subdirectory
1052 for each thread in the process.
1053 The name of each subdirectory is the numerical thread ID
1054 .RI ( [tid] )
1055 of the thread (see
1056 .BR gettid (2)).
1057 Within each of these subdirectories, there is a set of
1058 files with the same names and contents as under the
1059 .I /proc/[pid]
1060 directories.
1061 For attributes that are shared by all threads, the contents for
1062 each of the files under the
1063 .I task/[tid]
1064 subdirectories will be the same as in the corresponding
1065 file in the parent
1066 .I /proc/[pid]
1067 directory
1068 (e.g., in a multithreaded process, all of the
1069 .I task/[tid]/cwd
1070 files will have the same value as the
1071 .I /proc/[pid]/cwd
1072 file in the parent directory, since all of the threads in a process
1073 share a working directory).
1074 For attributes that are distinct for each thread,
1075 the corresponding files under
1076 .I task/[tid]
1077 may have different values (e.g., various fields in each of the
1078 .I task/[tid]/status
1079 files may be different for each thread).
1080
1081 .\" The following was still true as at kernel 2.6.13
1082 In a multithreaded process, the contents of the
1083 .I /proc/[pid]/task
1084 directory are not available if the main thread has already terminated
1085 (typically by calling
1086 .BR pthread_exit (3)).
1087 .TP
1088 .I /proc/apm
1089 Advanced power management version and battery information when
1090 .B CONFIG_APM
1091 is defined at kernel compilation time.
1092 .TP
1093 .I /proc/bus
1094 Contains subdirectories for installed busses.
1095 .TP
1096 .I /proc/bus/pccard
1097 Subdirectory for PCMCIA devices when
1098 .B CONFIG_PCMCIA
1099 is set at kernel compilation time.
1100 .TP
1101 .I /proc/bus/pccard/drivers
1102 .TP
1103 .I /proc/bus/pci
1104 Contains various bus subdirectories and pseudo-files containing
1105 information about PCI busses, installed devices, and device
1106 drivers.
1107 Some of these files are not ASCII.
1108 .TP
1109 .I /proc/bus/pci/devices
1110 Information about PCI devices.
1111 They may be accessed through
1112 .BR lspci (8)
1113 and
1114 .BR setpci (8).
1115 .TP
1116 .I /proc/cmdline
1117 Arguments passed to the Linux kernel at boot time.
1118 Often done via a boot manager such as
1119 .BR lilo (8)
1120 or
1121 .BR grub (8).
1122 .TP
1123 .IR /proc/config.gz " (since Linux 2.6)"
1124 This file exposes the configuration options that were used
1125 to build the currently running kernel,
1126 in the same format as they would be shown in the
1127 .I .config
1128 file that resulted when configuring the kernel (using
1129 .IR "make xconfig" ,
1130 .IR "make config" ,
1131 or similar).
1132 The file contents are compressed; view or search them using
1133 .BR zcat (1),
1134 .BR zgrep (1),
1135 etc.
1136 As long as no changes have been made to the following file,
1137 the contents of
1138 .I /proc/config.gz
1139 are the same as those provided by :
1140 .in +4n
1141 .nf
1142
1143 cat /lib/modules/$(uname \-r)/build/.config
1144 .fi
1145 .in
1146 .IP
1147 .I /proc/config.gz
1148 is only provided if the kernel is configured with
1149 .BR CONFIG_IKCONFIG_PROC .
1150 .TP
1151 .I /proc/cpuinfo
1152 This is a collection of CPU and system architecture dependent items,
1153 for each supported architecture a different list.
1154 Two common entries are \fIprocessor\fP which gives CPU number and
1155 \fIbogomips\fP; a system constant that is calculated
1156 during kernel initialization.
1157 SMP machines have information for
1158 each CPU.
1159 .TP
1160 .I /proc/devices
1161 Text listing of major numbers and device groups.
1162 This can be used by MAKEDEV scripts for consistency with the kernel.
1163 .TP
1164 .IR /proc/diskstats " (since Linux 2.5.69)"
1165 This file contains disk I/O statistics for each disk device.
1166 See the kernel source file
1167 .I Documentation/iostats.txt
1168 for further information.
1169 .TP
1170 .I /proc/dma
1171 This is a list of the registered \fIISA\fP DMA (direct memory access)
1172 channels in use.
1173 .TP
1174 .I /proc/driver
1175 Empty subdirectory.
1176 .TP
1177 .I /proc/execdomains
1178 List of the execution domains (ABI personalities).
1179 .TP
1180 .I /proc/fb
1181 Frame buffer information when
1182 .B CONFIG_FB
1183 is defined during kernel compilation.
1184 .TP
1185 .I /proc/filesystems
1186 A text listing of the file systems which are supported by the kernel,
1187 namely file systems which were compiled into the kernel or whose kernel
1188 modules are currently loaded.
1189 (See also
1190 .BR filesystems (5).)
1191 If a file system is marked with "nodev",
1192 this means that it does not require a block device to be mounted
1193 (e.g., virtual file system, network file system).
1194
1195 Incidentally, this file may be used by
1196 .BR mount (8)
1197 when no file system is specified and it didn't manage to determine the
1198 file system type.
1199 Then file systems contained in this file are tried
1200 (excepted those that are marked with "nodev").
1201 .TP
1202 .I /proc/fs
1203 Empty subdirectory.
1204 .TP
1205 .I /proc/ide
1206 This directory
1207 exists on systems with the IDE bus.
1208 There are directories for each IDE channel and attached device.
1209 Files include:
1210
1211 .in +4n
1212 .nf
1213 cache              buffer size in KB
1214 capacity           number of sectors
1215 driver             driver version
1216 geometry           physical and logical geometry
1217 identify           in hexadecimal
1218 media              media type
1219 model              manufacturer's model number
1220 settings           drive settings
1221 smart_thresholds   in hexadecimal
1222 smart_values       in hexadecimal
1223 .fi
1224 .in
1225
1226 The
1227 .BR hdparm (8)
1228 utility provides access to this information in a friendly format.
1229 .TP
1230 .I /proc/interrupts
1231 This is used to record the number of interrupts per CPU per IO device.
1232 Since Linux 2.6.24,
1233 for the i386 and x86_64 architectures, at least, this also includes
1234 interrupts internal to the system (that is, not associated with a device
1235 as such), such as NMI (nonmaskable interrupt), LOC (local timer interrupt),
1236 and for SMP systems, TLB (TLB flush interrupt), RES (rescheduling
1237 interrupt), CAL (remote function call interrupt), and possibly others.
1238 Very easy to read formatting, done in ASCII.
1239 .TP
1240 .I /proc/iomem
1241 I/O memory map in Linux 2.4.
1242 .TP
1243 .I /proc/ioports
1244 This is a list of currently registered Input-Output port regions that
1245 are in use.
1246 .TP
1247 .IR /proc/kallsyms " (since Linux 2.5.71)"
1248 This holds the kernel exported symbol definitions used by the
1249 .BR modules (X)
1250 tools to dynamically link and bind loadable modules.
1251 In Linux 2.5.47 and earlier, a similar file with slightly different syntax
1252 was named
1253 .IR ksyms .
1254 .TP
1255 .I /proc/kcore
1256 This file represents the physical memory of the system and is stored
1257 in the ELF core file format.
1258 With this pseudo-file, and an unstripped
1259 kernel
1260 .RI ( /usr/src/linux/vmlinux )
1261 binary, GDB can be used to
1262 examine the current state of any kernel data structures.
1263
1264 The total length of the file is the size of physical memory (RAM) plus
1265 4KB.
1266 .TP
1267 .I /proc/kmsg
1268 This file can be used instead of the
1269 .BR syslog (2)
1270 system call to read kernel messages.
1271 A process must have superuser
1272 privileges to read this file, and only one process should read this
1273 file.
1274 This file should not be read if a syslog process is running
1275 which uses the
1276 .BR syslog (2)
1277 system call facility to log kernel messages.
1278
1279 Information in this file is retrieved with the
1280 .BR dmesg (1)
1281 program.
1282 .TP
1283 .IR /proc/ksyms " (Linux 1.1.23-2.5.47)"
1284 See
1285 .IR /proc/kallsyms .
1286 .TP
1287 .I /proc/loadavg
1288 The first three fields in this file are load average figures
1289 giving the number of jobs in the run queue (state R)
1290 or waiting for disk I/O (state D) averaged over 1, 5, and 15 minutes.
1291 They are the same as the load average numbers given by
1292 .BR uptime (1)
1293 and other programs.
1294 The fourth field consists of two numbers separated by a slash (/).
1295 The first of these is the number of currently executing kernel
1296 scheduling entities (processes, threads);
1297 this will be less than or equal to the number of CPUs.
1298 The value after the slash is the number of kernel scheduling entities
1299 that currently exist on the system.
1300 The fifth field is the PID of the process that was most
1301 recently created on the system.
1302 .TP
1303 .I /proc/locks
1304 This file shows current file locks
1305 .RB ( flock "(2) and " fcntl (2))
1306 and leases
1307 .RB ( fcntl (2)).
1308 .TP
1309 .IR /proc/malloc " (only up to and including Linux 2.2)"
1310 .\" It looks like this only ever did something back in 1.0 days
1311 This file is only present if
1312 .B CONFIG_DEBUG_MALLOC
1313 was defined during compilation.
1314 .TP
1315 .I /proc/meminfo
1316 This file reports statistics about memory usage on the system.
1317 It is used by
1318 .BR free (1)
1319 to report the amount of free and used memory (both physical and swap)
1320 on the system as well as the shared memory and buffers used by the
1321 kernel.
1322 .TP
1323 .I /proc/modules
1324 A text list of the modules that have been loaded by the system.
1325 See also
1326 .BR lsmod (8).
1327 .TP
1328 .I /proc/mounts
1329 Before kernel 2.4.19, this file was a list
1330 of all the file systems currently mounted on the system.
1331 With the introduction of per-process mount namespaces in
1332 Linux 2.4.19, this file became a link to
1333 .IR /proc/self/mounts ,
1334 which lists the mount points of the process's own mount namespace.
1335 The format of this file is documented in
1336 .BR fstab (5).
1337 .TP
1338 .I /proc/mtrr
1339 Memory Type Range Registers.
1340 See the kernel source file
1341 .I Documentation/mtrr.txt
1342 for details.
1343 .TP
1344 .I /proc/net
1345 various net pseudo-files, all of which give the status of some part of
1346 the networking layer.
1347 These files contain ASCII structures and are,
1348 therefore, readable with
1349 .BR cat (1).
1350 However, the standard
1351 .BR netstat (8)
1352 suite provides much cleaner access to these files.
1353 .TP
1354 .I /proc/net/arp
1355 This holds an ASCII readable dump of the kernel ARP table used for
1356 address resolutions.
1357 It will show both dynamically learned and preprogrammed ARP entries.
1358 The format is:
1359
1360 .nf
1361 .ft CW
1362 .in 8n
1363 IP address     HW type   Flags     HW address          Mask   Device
1364 192.168.0.50   0x1       0x2       00:50:BF:25:68:F3   *      eth0
1365 192.168.0.250  0x1       0xc       00:00:00:00:00:00   *      eth0
1366 .ft
1367 .fi
1368 .in
1369
1370 Here "IP address" is the IPv4 address of the machine and the "HW type"
1371 is the hardware type of the address from RFC\ 826.
1372 The flags are the internal
1373 flags of the ARP structure (as defined in
1374 .IR /usr/include/linux/if_arp.h )
1375 and
1376 the "HW address" is the data link layer mapping for that IP address if
1377 it is known.
1378 .TP
1379 .I /proc/net/dev
1380 The dev pseudo-file contains network device status information.
1381 This gives
1382 the number of received and sent packets, the number of errors and
1383 collisions
1384 and other basic statistics.
1385 These are used by the
1386 .BR ifconfig (8)
1387 program to report device status.
1388 The format is:
1389
1390 .nf
1391 .ft CW
1392 .in 1n
1393 Inter-|   Receive                                                |  Transmit
1394  face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
1395     lo: 2776770   11307    0    0    0     0          0         0  2776770   11307    0    0    0     0       0          0
1396   eth0: 1215645    2751    0    0    0     0          0         0  1782404    4324    0    0    0   427       0          0
1397   ppp0: 1622270    5552    1    0    0     0          0         0   354130    5669    0    0    0     0       0          0
1398   tap0:    7714      81    0    0    0     0          0         0     7714      81    0    0    0     0       0          0
1399 .in
1400 .ft
1401 .fi
1402 .\" .TP
1403 .\" .I /proc/net/ipx
1404 .\" No information.
1405 .\" .TP
1406 .\" .I /proc/net/ipx_route
1407 .\" No information.
1408 .TP
1409 .I /proc/net/dev_mcast
1410 Defined in
1411 .IR /usr/src/linux/net/core/dev_mcast.c :
1412 .nf
1413 .in +5
1414 indx interface_name  dmi_u dmi_g dmi_address
1415 2    eth0            1     0     01005e000001
1416 3    eth1            1     0     01005e000001
1417 4    eth2            1     0     01005e000001
1418 .in
1419 .fi
1420 .TP
1421 .I /proc/net/igmp
1422 Internet Group Management Protocol.
1423 Defined in
1424 .IR /usr/src/linux/net/core/igmp.c .
1425 .TP
1426 .I /proc/net/rarp
1427 This file uses the same format as the
1428 .I arp
1429 file and contains the current reverse mapping database used to provide
1430 .BR rarp (8)
1431 reverse address lookup services.
1432 If RARP is not configured into the
1433 kernel,
1434 this file will not be present.
1435 .TP
1436 .I /proc/net/raw
1437 Holds a dump of the RAW socket table.
1438 Much of the information is not of
1439 use
1440 apart from debugging.
1441 The "sl" value is the kernel hash slot for the
1442 socket,
1443 the "local_address" is the local address and protocol number pair.
1444 \&"St" is
1445 the internal status of the socket.
1446 The "tx_queue" and "rx_queue" are the
1447 outgoing and incoming data queue in terms of kernel memory usage.
1448 The "tr", "tm\->when", and "rexmits" fields are not used by RAW.
1449 The "uid"
1450 field holds the effective UID of the creator of the socket.
1451 .\" .TP
1452 .\" .I /proc/net/route
1453 .\" No information, but looks similar to
1454 .\" .BR route (8).
1455 .TP
1456 .I /proc/net/snmp
1457 This file holds the ASCII data needed for the IP, ICMP, TCP, and UDP
1458 management
1459 information bases for an SNMP agent.
1460 .TP
1461 .I /proc/net/tcp
1462 Holds a dump of the TCP socket table.
1463 Much of the information is not
1464 of use apart from debugging.
1465 The "sl" value is the kernel hash slot
1466 for the socket, the "local_address" is the local address and port number pair.
1467 The "rem_address" is the remote address and port number pair
1468 (if connected).
1469 \&"St" is the internal status of the socket.
1470 The "tx_queue" and "rx_queue" are the
1471 outgoing and incoming data queue in terms of kernel memory usage.
1472 The "tr", "tm\->when", and "rexmits" fields hold internal information of
1473 the kernel socket state and are only useful for debugging.
1474 The "uid"
1475 field holds the effective UID of the creator of the socket.
1476 .TP
1477 .I /proc/net/udp
1478 Holds a dump of the UDP socket table.
1479 Much of the information is not of
1480 use apart from debugging.
1481 The "sl" value is the kernel hash slot for the
1482 socket, the "local_address" is the local address and port number pair.
1483 The "rem_address" is the remote address and port number pair
1484 (if connected). "St" is the internal status of the socket.
1485 The "tx_queue" and "rx_queue" are the outgoing and incoming data queue
1486 in terms of kernel memory usage.
1487 The "tr", "tm\->when", and "rexmits" fields
1488 are not used by UDP.
1489 The "uid"
1490 field holds the effective UID of the creator of the socket.
1491 The format is:
1492
1493 .nf
1494 .ft CW
1495 .in 1n
1496 sl  local_address rem_address   st tx_queue rx_queue tr rexmits  tm\->when uid
1497  1: 01642C89:0201 0C642C89:03FF 01 00000000:00000001 01:000071BA 00000000 0
1498  1: 00000000:0801 00000000:0000 0A 00000000:00000000 00:00000000 6F000100 0
1499  1: 00000000:0201 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0
1500 .in
1501 .ft
1502 .fi
1503 .TP
1504 .I /proc/net/unix
1505 Lists the UNIX domain sockets present within the system and their
1506 status.
1507 The format is:
1508 .nf
1509 .sp .5
1510 .ft CW
1511 Num RefCount Protocol Flags    Type St Path
1512  0: 00000002 00000000 00000000 0001 03
1513  1: 00000001 00000000 00010000 0001 01 /dev/printer
1514 .ft
1515 .sp .5
1516 .fi
1517
1518 Here "Num" is the kernel table slot number, "RefCount" is the number
1519 of users of the socket, "Protocol" is currently always 0, "Flags"
1520 represent the internal kernel flags holding the status of the
1521 socket.
1522 Currently, type is always "1" (UNIX domain datagram sockets are
1523 not yet supported in the kernel).
1524 \&"St" is the internal state of the
1525 socket and Path is the bound path (if any) of the socket.
1526 .TP
1527 .I /proc/partitions
1528 Contains major and minor numbers of each partition as well as number
1529 of blocks and partition name.
1530 .TP
1531 .I /proc/pci
1532 This is a listing of all PCI devices found during kernel initialization
1533 and their configuration.
1534
1535 This file has been deprecated in favor of a new
1536 .I /proc
1537 interface for PCI
1538 .RI ( /proc/bus/pci ).
1539 It became optional in Linux 2.2 (available with
1540 .B CONFIG_PCI_OLD_PROC
1541 set at kernel compilation).
1542 It became once more nonoptionally enabled in Linux 2.4.
1543 Next, it was deprecated in Linux 2.6 (still available with
1544 .B CONFIG_PCI_LEGACY_PROC
1545 set), and finally removed altogether since Linux 2.6.17.
1546 .\" FIXME /proc/sched_debug
1547 .\" .TP
1548 .\" .IR /proc/sched_debug " (since Linux 2.6.23)"
1549 .\" See also /proc/[pid]/sched
1550 .TP
1551 .I /proc/scsi
1552 A directory with the
1553 .I scsi
1554 mid-level pseudo-file and various SCSI low-level
1555 driver directories,
1556 which contain a file for each SCSI host in this system, all of
1557 which give the status of some part of the SCSI IO subsystem.
1558 These files contain ASCII structures and are, therefore, readable with
1559 .BR cat (1).
1560
1561 You can also write to some of the files to reconfigure the subsystem or
1562 switch certain features on or off.
1563 .TP
1564 .I /proc/scsi/scsi
1565 This is a listing of all SCSI devices known to the kernel.
1566 The listing is similar to the one seen during bootup.
1567 scsi currently supports only the \fIadd-single-device\fP command which
1568 allows root to add a hotplugged device to the list of known devices.
1569
1570 The command
1571 .in +4n
1572 .nf
1573
1574 echo \(aqscsi add-single-device 1 0 5 0\(aq > /proc/scsi/scsi
1575
1576 .fi
1577 .in
1578 will cause
1579 host scsi1 to scan on SCSI channel 0 for a device on ID 5 LUN 0.
1580 If there
1581 is already a device known on this address or the address is invalid, an
1582 error will be returned.
1583 .TP
1584 .I /proc/scsi/[drivername]
1585 \fI[drivername]\fP can currently be NCR53c7xx, aha152x, aha1542, aha1740,
1586 aic7xxx, buslogic, eata_dma, eata_pio, fdomain, in2000, pas16, qlogic,
1587 scsi_debug, seagate, t128, u15-24f, ultrastore, or wd7000.
1588 These directories show up for all drivers that registered at least one
1589 SCSI HBA.
1590 Every directory contains one file per registered host.
1591 Every host-file is named after the number the host was assigned during
1592 initialization.
1593
1594 Reading these files will usually show driver and host configuration,
1595 statistics, etc.
1596
1597 Writing to these files allows different things on different hosts.
1598 For example, with the \fIlatency\fP and \fInolatency\fP commands,
1599 root can switch on and off command latency measurement code in the
1600 eata_dma driver.
1601 With the \fIlockup\fP and \fIunlock\fP commands,
1602 root can control bus lockups simulated by the scsi_debug driver.
1603 .TP
1604 .I /proc/self
1605 This directory refers to the process accessing the
1606 .I /proc
1607 file system,
1608 and is identical to the
1609 .I /proc
1610 directory named by the process ID of the same process.
1611 .TP
1612 .I /proc/slabinfo
1613 Information about kernel caches.
1614 Since Linux 2.6.16 this file is only present if the
1615 .B CONFIG_SLAB
1616 kernel configuration option is enabled.
1617 The columns in
1618 .I /proc/slabinfo
1619 are:
1620 .in +4n
1621 .nf
1622
1623 cache-name
1624 num-active-objs
1625 total-objs
1626 object-size
1627 num-active-slabs
1628 total-slabs
1629 num-pages-per-slab
1630 .fi
1631 .in
1632
1633 See
1634 .BR slabinfo (5)
1635 for details.
1636 .TP
1637 .I /proc/stat
1638 kernel/system statistics.
1639 Varies with architecture.
1640 Common
1641 entries include:
1642 .RS
1643 .TP
1644 \fIcpu  3357 0 4313 1362393\fP
1645 The amount of time, measured in units of
1646 USER_HZ (1/100ths of a second on most architectures, use
1647 .IR sysconf(_SC_CLK_TCK)
1648 to obtain the right value),
1649 .\" 1024 on Alpha and ia64
1650 that the system spent in user mode,
1651 user mode with low priority (nice), system mode, and the
1652 idle task, respectively.
1653 .\" FIXME Actually, the following info about the /proc/stat 'cpu' field
1654 .\"       does not seem to be quite right (at least in 2.6.12)
1655 The last value should be USER_HZ times the
1656 second entry in the uptime pseudo-file.
1657
1658 In Linux 2.6 this line includes three additional columns:
1659 .I iowait
1660 \- time waiting for I/O to complete (since 2.5.41);
1661 .I irq
1662 \- time servicing interrupts (since 2.6.0-test4);
1663 .I softirq
1664 \- time servicing softirqs (since 2.6.0-test4).
1665
1666 Since Linux 2.6.11, there is an eighth column,
1667 .I steal
1668 \- stolen time, which is the time spent in other operating systems when
1669 running in a virtualized environment
1670
1671 Since Linux 2.6.24, there is a ninth column,
1672 .IR guest ,
1673 which is the time spent running a virtual CPU for guest
1674 operating systems under the control of the Linux kernel.
1675 .\" See Changelog entry for 5e84cfde51cf303d368fcb48f22059f37b3872de
1676 .TP
1677 \fIpage 5741 1808\fP
1678 The number of pages the system paged in and the number that were paged
1679 out (from disk).
1680 .TP
1681 \fIswap 1 0\fP
1682 The number of swap pages that have been brought in and out.
1683 .TP
1684 .\" FIXME The following is not the full picture for the 'intr' of
1685 .\"       /proc/stat on 2.6:
1686 \fIintr 1462898\fP
1687 This line shows counts of interrupts serviced since boot time,
1688 for each of the possible system interrupts.
1689 The first column is the total of all interrupts serviced;
1690 each subsequent column is the total for a particular interrupt.
1691 .TP
1692 \fIdisk_io: (2,0):(31,30,5764,1,2) (3,0):\fP...
1693 (major,disk_idx):(noinfo, read_io_ops, blks_read, write_io_ops, blks_written)
1694 .br
1695 (Linux 2.4 only)
1696 .TP
1697 \fIctxt 115315\fP
1698 The number of context switches that the system underwent.
1699 .TP
1700 \fIbtime 769041601\fP
1701 boot time, in seconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC).
1702 .TP
1703 \fIprocesses 86031\fP
1704 Number of forks since boot.
1705 .TP
1706 \fIprocs_running 6\fP
1707 Number of processes in runnable state.
1708 (Linux 2.5.45 onward.)
1709 .TP
1710 \fIprocs_blocked 2\fP
1711 Number of processes blocked waiting for I/O to complete.
1712 (Linux 2.5.45 onward.)
1713 .RE
1714 .TP
1715 .I /proc/swaps
1716 Swap areas in use.
1717 See also
1718 .BR swapon (8).
1719 .TP
1720 .I /proc/sys
1721 This directory (present since 1.3.57) contains a number of files
1722 and subdirectories corresponding to kernel variables.
1723 These variables can be read and sometimes modified using
1724 the \fI/proc\fP file system, and the (deprecated)
1725 .BR sysctl (2)
1726 system call.
1727 .TP
1728 .IR /proc/sys/abi " (since Linux 2.4.10)"
1729 This directory may contain files with application binary information.
1730 .\" On some systems, it is not present.
1731 See the kernel source file
1732 .I Documentation/sysctl/abi.txt
1733 for more information.
1734 .TP
1735 .I /proc/sys/debug
1736 This directory may be empty.
1737 .TP
1738 .I /proc/sys/dev
1739 This directory contains device-specific information (e.g.,
1740 .IR dev/cdrom/info ).
1741 On
1742 some systems, it may be empty.
1743 .TP
1744 .I /proc/sys/fs
1745 This directory contains the files and subdirectories for kernel variables
1746 related to file systems.
1747 .TP
1748 .I /proc/sys/fs/binfmt_misc
1749 Documentation for files in this directory can be found
1750 in the kernel sources in
1751 .IR Documentation/binfmt_misc.txt .
1752 .TP
1753 .IR /proc/sys/fs/dentry-state " (since Linux 2.2)"
1754 This file contains information about the status of the
1755 directory cache (dcache).
1756 The file contains six numbers,
1757 .IR nr_dentry ", " nr_unused ", " age_limit " (age in seconds), "
1758 .I want_pages
1759 (pages requested by system) and two dummy values.
1760 .RS
1761 .IP * 2
1762 .I nr_dentry
1763 is the number of allocated dentries (dcache entries).
1764 This field is unused in Linux 2.2.
1765 .IP *
1766 .I nr_unused
1767 is the number of unused dentries.
1768 .IP *
1769 .I age_limit
1770 .\" looks like this is unused in kernels 2.2 to 2.6
1771 is the age in seconds after which dcache entries
1772 can be reclaimed when memory is short.
1773 .IP *
1774 .I want_pages
1775 .\" looks like this is unused in kernels 2.2 to 2.6
1776 is nonzero when the kernel has called shrink_dcache_pages() and the
1777 dcache isn't pruned yet.
1778 .RE
1779 .TP
1780 .I /proc/sys/fs/dir-notify-enable
1781 This file can be used to disable or enable the
1782 .I dnotify
1783 interface described in
1784 .BR fcntl (2)
1785 on a system-wide basis.
1786 A value of 0 in this file disables the interface,
1787 and a value of 1 enables it.
1788 .TP
1789 .I /proc/sys/fs/dquot-max
1790 This file shows the maximum number of cached disk quota entries.
1791 On some (2.4) systems, it is not present.
1792 If the number of free cached disk quota entries is very low and
1793 you have some awesome number of simultaneous system users,
1794 you might want to raise the limit.
1795 .TP
1796 .I /proc/sys/fs/dquot-nr
1797 This file shows the number of allocated disk quota
1798 entries and the number of free disk quota entries.
1799 .TP
1800 .IR /proc/sys/fs/epoll " (since Linux 2.6.28)"
1801 This directory contains the file
1802 .IR max_user_watches ,
1803 which can be used to limit the amount of kernel memory consumed by the
1804 .I epoll
1805 interface.
1806 For further details, see
1807 .BR epoll (7).
1808 .TP
1809 .I /proc/sys/fs/file-max
1810 This file defines
1811 a system-wide limit on the number of open files for all processes.
1812 (See also
1813 .BR setrlimit (2),
1814 which can be used by a process to set the per-process limit,
1815 .BR RLIMIT_NOFILE ,
1816 on the number of files it may open.)
1817 If you get lots
1818 of error messages about running out of file handles,
1819 try increasing this value:
1820 .br
1821
1822 .br
1823 .nf
1824 .ft CW
1825 echo 100000 > /proc/sys/fs/file-max
1826 .fi
1827 .ft
1828
1829 The kernel constant
1830 .B NR_OPEN
1831 imposes an upper limit on the value that may be placed in
1832 .IR file-max .
1833
1834 If you increase
1835 .IR /proc/sys/fs/file-max ","
1836 be sure to increase
1837 .I /proc/sys/fs/inode-max
1838 to 3-4 times the new
1839 value of
1840 .IR /proc/sys/fs/file-max ","
1841 or you will run out of inodes.
1842 .TP
1843 .I /proc/sys/fs/file-nr
1844 This (read-only) file gives the number of files presently opened.
1845 It contains three numbers: the number of allocated file handles;
1846 the number of free file handles; and the maximum number of file handles.
1847 The kernel allocates file handles dynamically, but it
1848 doesn't free them again.
1849 If the number of allocated files is close to the
1850 maximum, you should consider increasing the maximum.
1851 When the number of free file handles is
1852 large, you've encountered a peak in your usage of file
1853 handles and you probably don't need to increase the maximum.
1854 .TP
1855 .I /proc/sys/fs/inode-max
1856 This file contains the maximum number of in-memory inodes.
1857 On some (2.4) systems, it may not be present.
1858 This value should be 3-4 times larger
1859 than the value in
1860 .IR file-max ,
1861 since \fIstdin\fP, \fIstdout\fP
1862 and network sockets also need an inode to handle them.
1863 When you regularly run out of inodes, you need to increase this value.
1864 .TP
1865 .I /proc/sys/fs/inode-nr
1866 This file contains the first two values from
1867 .IR inode-state .
1868 .TP
1869 .I /proc/sys/fs/inode-state
1870 This file
1871 contains seven numbers:
1872 .IR nr_inodes ,
1873 .IR nr_free_inodes ,
1874 .IR preshrink ,
1875 and four dummy values.
1876 .I nr_inodes
1877 is the number of inodes the system has allocated.
1878 This can be slightly more than
1879 .I inode-max
1880 because Linux allocates them one page full at a time.
1881 .I nr_free_inodes
1882 represents the number of free inodes.
1883 .I preshrink
1884 is nonzero when the
1885 .I nr_inodes
1886 >
1887 .I inode-max
1888 and the system needs to prune the inode list instead of allocating more.
1889 .TP
1890 .IR /proc/sys/fs/inotify " (since Linux 2.6.13)"
1891 This directory contains files
1892 .IR max_queued_events ", " max_user_instances ", and " max_user_watches ,
1893 that can be used to limit the amount of kernel memory consumed by the
1894 .I inotify
1895 interface.
1896 For further details, see
1897 .BR inotify (7).
1898 .TP
1899 .I /proc/sys/fs/lease-break-time
1900 This file specifies the grace period that the kernel grants to a process
1901 holding a file lease
1902 .RB ( fcntl (2))
1903 after it has sent a signal to that process notifying it
1904 that another process is waiting to open the file.
1905 If the lease holder does not remove or downgrade the lease within
1906 this grace period, the kernel forcibly breaks the lease.
1907 .TP
1908 .I /proc/sys/fs/leases-enable
1909 This file can be used to enable or disable file leases
1910 .RB ( fcntl (2))
1911 on a system-wide basis.
1912 If this file contains the value 0, leases are disabled.
1913 A nonzero value enables leases.
1914 .TP
1915 .IR /proc/sys/fs/mqueue " (since Linux 2.6.6)"
1916 This directory contains files
1917 .IR msg_max ", " msgsize_max ", and " queues_max ,
1918 controlling the resources used by POSIX message queues.
1919 See
1920 .BR mq_overview (7)
1921 for details.
1922 .TP
1923 .IR /proc/sys/fs/overflowgid " and " /proc/sys/fs/overflowuid
1924 These files
1925 allow you to change the value of the fixed UID and GID.
1926 The default is 65534.
1927 Some file systems only support 16-bit UIDs and GIDs, although in Linux
1928 UIDs and GIDs are 32 bits.
1929 When one of these file systems is mounted
1930 with writes enabled, any UID or GID that would exceed 65535 is translated
1931 to the overflow value before being written to disk.
1932 .TP
1933 .IR /proc/sys/fs/pipe-max-size " (since Linux 2.6.35)"
1934 The value in this file defines an upper limit for raising the capacity
1935 of a pipe using the
1936 .BR fcntl (2)
1937 .B F_SETPIPE_SZ
1938 operation.
1939 This limit applies only to unprivileged processes.
1940 The default value for this file is 1,048,576.
1941 The value assigned to this file may be rounded upward,
1942 to reflect the value actually employed for a convenient implementation.
1943 To determine the rounded-up value,
1944 display the contents of this file after assigning a value to it.
1945 The minimum value that can be assigned to this file is the system page size.
1946 .TP
1947 .IR /proc/sys/fs/suid_dumpable " (since Linux 2.6.13)"
1948 .\" The following is based on text from Documentation/sysctl/kernel.txt
1949 The value in this file determines whether core dump files are
1950 produced for set-user-ID or otherwise protected/tainted binaries.
1951 Three different integer values can be specified:
1952 .sp
1953 \fI0\ (default)\fP
1954 This provides the traditional (pre-Linux 2.6.13) behavior.
1955 A core dump will not be produced for a process which has
1956 changed credentials (by calling
1957 .BR seteuid (2),
1958 .BR setgid (2),
1959 or similar, or by executing a set-user-ID or set-group-ID program)
1960 or whose binary does not have read permission enabled.
1961 .sp
1962 \fI1\ ("debug")\fP
1963 All processes dump core when possible.
1964 The core dump is owned by the file system user ID of the dumping process
1965 and no security is applied.
1966 This is intended for system debugging situations only.
1967 Ptrace is unchecked.
1968 .sp
1969 \fI2\ ("suidsafe")\fP
1970 Any binary which normally would not be dumped (see "0" above)
1971 is dumped readable by root only.
1972 This allows the user to remove the core dump file but not to read it.
1973 For security reasons core dumps in this mode will not overwrite one
1974 another or other files.
1975 This mode is appropriate when administrators are
1976 attempting to debug problems in a normal environment.
1977 .TP
1978 .I /proc/sys/fs/super-max
1979 This file
1980 controls the maximum number of superblocks, and
1981 thus the maximum number of mounted file systems the kernel
1982 can have.
1983 You only need to increase
1984 .I super-max
1985 if you need to mount more file systems than the current value in
1986 .I super-max
1987 allows you to.
1988 .TP
1989 .I /proc/sys/fs/super-nr
1990 This file
1991 contains the number of file systems currently mounted.
1992 .TP
1993 .I /proc/sys/kernel
1994 This directory contains files controlling a range of kernel parameters,
1995 as described below.
1996 .TP
1997 .I /proc/sys/kernel/acct
1998 This file
1999 contains three numbers:
2000 .IR highwater ,
2001 .IR lowwater ,
2002 and
2003 .IR frequency .
2004 If BSD-style process accounting is enabled these values control
2005 its behavior.
2006 If free space on file system where the log lives goes below
2007 .I lowwater
2008 percent accounting suspends.
2009 If free space gets above
2010 .I highwater
2011 percent accounting resumes.
2012 .I frequency
2013 determines
2014 how often the kernel checks the amount of free space (value is in
2015 seconds).
2016 Default values are 4, 2 and 30.
2017 That is, suspend accounting if 2% or less space is free; resume it
2018 if 4% or more space is free; consider information about amount of free space
2019 valid for 30 seconds.
2020 .TP
2021 .IR /proc/sys/kernel/cap-bound " (from Linux 2.2 to 2.6.24)"
2022 This file holds the value of the kernel
2023 .I "capability bounding set"
2024 (expressed as a signed decimal number).
2025 This set is ANDed against the capabilities permitted to a process
2026 during
2027 .BR execve (2).
2028 Starting with Linux 2.6.25,
2029 the system-wide capability bounding set disappeared,
2030 and was replaced by a per-thread bounding set; see
2031 .BR capabilities (7).
2032 .TP
2033 .I /proc/sys/kernel/core_pattern
2034 See
2035 .BR core (5).
2036 .TP
2037 .I /proc/sys/kernel/core_uses_pid
2038 See
2039 .BR core (5).
2040 .TP
2041 .I /proc/sys/kernel/ctrl-alt-del
2042 This file
2043 controls the handling of Ctrl-Alt-Del from the keyboard.
2044 When the value in this file is 0, Ctrl-Alt-Del is trapped and
2045 sent to the
2046 .BR init (8)
2047 program to handle a graceful restart.
2048 When the value is greater than zero, Linux's reaction to a Vulcan
2049 Nerve Pinch (tm) will be an immediate reboot, without even
2050 syncing its dirty buffers.
2051 Note: when a program (like dosemu) has the keyboard in "raw"
2052 mode, the ctrl-alt-del is intercepted by the program before it
2053 ever reaches the kernel tty layer, and it's up to the program
2054 to decide what to do with it.
2055 .TP
2056 .I /proc/sys/kernel/hotplug
2057 This file
2058 contains the path for the hotplug policy agent.
2059 The default value in this file is
2060 .IR /sbin/hotplug .
2061 .TP
2062 .IR /proc/sys/kernel/domainname " and " /proc/sys/kernel/hostname
2063 can be used to set the NIS/YP domainname and the
2064 hostname of your box in exactly the same way as the commands
2065 .BR domainname (1)
2066 and
2067 .BR hostname (1),
2068 that is:
2069
2070 .in +4n
2071 .nf
2072 .RB "#" " echo \(aqdarkstar\(aq > /proc/sys/kernel/hostname"
2073 .RB "#" " echo \(aqmydomain\(aq > /proc/sys/kernel/domainname"
2074 .fi
2075 .in
2076
2077 has the same effect as
2078
2079 .in +4n
2080 .nf
2081 .RB "#" " hostname \(aqdarkstar\(aq"
2082 .RB "#" " domainname \(aqmydomain\(aq"
2083 .fi
2084 .in
2085
2086 Note, however, that the classic darkstar.frop.org has the
2087 hostname "darkstar" and DNS (Internet Domain Name Server)
2088 domainname "frop.org", not to be confused with the NIS (Network
2089 Information Service) or YP (Yellow Pages) domainname.
2090 These two
2091 domain names are in general different.
2092 For a detailed discussion
2093 see the
2094 .BR hostname (1)
2095 man page.
2096 .TP
2097 .I /proc/sys/kernel/htab-reclaim
2098 (PowerPC only) If this file is set to a nonzero value,
2099 the PowerPC htab
2100 (see kernel file
2101 .IR Documentation/powerpc/ppc_htab.txt )
2102 is pruned
2103 each time the system hits the idle loop.
2104 .TP
2105 .I /proc/sys/kernel/l2cr
2106 (PowerPC only) This file
2107 contains a flag that controls the L2 cache of G3 processor
2108 boards.
2109 If 0, the cache is disabled.
2110 Enabled if nonzero.
2111 .TP
2112 .I /proc/sys/kernel/modprobe
2113 This file contains the path for the kernel module loader.
2114 The default value is
2115 .IR /sbin/modprobe .
2116 The file is only present if the kernel is built with the
2117 .B CONFIG_KMOD
2118 option enabled.
2119 It is described by the kernel source file
2120 .I Documentation/kmod.txt
2121 (only present in kernel 2.4 and earlier).
2122 .TP
2123 .I /proc/sys/kernel/msgmax
2124 This file defines
2125 a system-wide limit specifying the maximum number of bytes in
2126 a single message written on a System V message queue.
2127 .TP
2128 .I /proc/sys/kernel/msgmni
2129 This file defines the system-wide limit on the number of
2130 message queue identifiers.
2131 (This file is only present in Linux 2.4 onward.)
2132 .TP
2133 .I /proc/sys/kernel/msgmnb
2134 This file defines a system-wide parameter used to initialize the
2135 .I msg_qbytes
2136 setting for subsequently created message queues.
2137 The
2138 .I msg_qbytes
2139 setting specifies the maximum number of bytes that may be written to the
2140 message queue.
2141 .TP
2142 .IR /proc/sys/kernel/ostype " and " /proc/sys/kernel/osrelease
2143 These files
2144 give substrings of
2145 .IR /proc/version .
2146 .TP
2147 .IR /proc/sys/kernel/overflowgid " and " /proc/sys/kernel/overflowuid
2148 These files duplicate the files
2149 .I /proc/sys/fs/overflowgid
2150 and
2151 .IR /proc/sys/fs/overflowuid .
2152 .TP
2153 .I /proc/sys/kernel/panic
2154 This file gives read/write access to the kernel variable
2155 .IR panic_timeout .
2156 If this is zero, the kernel will loop on a panic; if nonzero
2157 it indicates that the kernel should autoreboot after this number
2158 of seconds.
2159 When you use the
2160 software watchdog device driver, the recommended setting is 60.
2161 .TP
2162 .IR /proc/sys/kernel/panic_on_oops " (since Linux 2.5.68)"
2163 This file controls the kernel's behavior when an oops
2164 or BUG is encountered.
2165 If this file contains 0, then the system
2166 tries to continue operation.
2167 If it contains 1, then the system
2168 delays a few seconds (to give klogd time to record the oops output)
2169 and then panics.
2170 If the
2171 .I /proc/sys/kernel/panic
2172 file is also nonzero then the machine will be rebooted.
2173 .TP
2174 .IR /proc/sys/kernel/pid_max " (since Linux 2.5.34)"
2175 This file specifies the value at which PIDs wrap around
2176 (i.e., the value in this file is one greater than the maximum PID).
2177 The default value for this file, 32768,
2178 results in the same range of PIDs as on earlier kernels.
2179 On 32-bit platforms, 32768 is the maximum value for
2180 .IR pid_max .
2181 On 64-bit systems,
2182 .I pid_max
2183 can be set to any value up to 2^22
2184 .RB ( PID_MAX_LIMIT ,
2185 approximately 4 million).
2186 .\" Prior to 2.6.10, pid_max could also be raised above 32768 on 32-bit
2187 .\" platforms, but this broke /proc/[pid]
2188 .\" See http://marc.theaimsgroup.com/?l=linux-kernel&m=109513010926152&w=2
2189 .TP
2190 .IR /proc/sys/kernel/powersave-nap " (PowerPC only)"
2191 This file contains a flag.
2192 If set, Linux-PPC will use the "nap" mode of
2193 powersaving,
2194 otherwise the "doze" mode will be used.
2195 .TP
2196 .I /proc/sys/kernel/printk
2197 The four values in this file are
2198 .IR console_loglevel ,
2199 .IR default_message_loglevel ,
2200 .IR minimum_console_level ,
2201 and
2202 .IR default_console_loglevel .
2203 These values influence
2204 .I printk()
2205 behavior when printing or logging error messages.
2206 See
2207 .BR syslog (2)
2208 for more info on the different loglevels.
2209 Messages with a higher priority than
2210 .I console_loglevel
2211 will be printed to the console.
2212 Messages without an explicit priority will be printed with priority
2213 .IR default_message_level .
2214 .I minimum_console_loglevel
2215 is the minimum (highest) value to which
2216 .I console_loglevel
2217 can be set.
2218 .I default_console_loglevel
2219 is the default value for
2220 .IR console_loglevel .
2221 .TP
2222 .IR /proc/sys/kernel/pty " (since Linux 2.6.4)"
2223 This directory contains two files relating to the number of UNIX 98
2224 pseudoterminals (see
2225 .BR pts (4))
2226 on the system.
2227 .TP
2228 .I /proc/sys/kernel/pty/max
2229 This file defines the maximum number of pseudoterminals.
2230 .TP
2231 .I /proc/sys/kernel/pty/nr
2232 This read-only file
2233 indicates how many pseudoterminals are currently in use.
2234 .TP
2235 .I /proc/sys/kernel/random
2236 This directory
2237 contains various parameters controlling the operation of the file
2238 .IR /dev/random .
2239 See
2240 .BR random (4)
2241 for further information.
2242 .TP
2243 .I /proc/sys/kernel/real-root-dev
2244 This file is documented in the kernel source file
2245 .IR Documentation/initrd.txt .
2246 .TP
2247 .IR /proc/sys/kernel/reboot-cmd " (Sparc only) "
2248 This file seems to be a way to give an argument to the SPARC
2249 ROM/Flash boot loader.
2250 Maybe to tell it what to do after
2251 rebooting?
2252 .TP
2253 .I /proc/sys/kernel/rtsig-max
2254 (Only in kernels up to and including 2.6.7; see
2255 .BR setrlimit (2))
2256 This file can be used to tune the maximum number
2257 of POSIX real-time (queued) signals that can be outstanding
2258 in the system.
2259 .TP
2260 .I /proc/sys/kernel/rtsig-nr
2261 (Only in kernels up to and including 2.6.7.)
2262 This file shows the number POSIX real-time signals currently queued.
2263 .TP
2264 .IR /proc/sys/kernel/sem " (since Linux 2.4)"
2265 This file contains 4 numbers defining limits for System V IPC semaphores.
2266 These fields are, in order:
2267 .RS
2268 .IP SEMMSL 8
2269 The maximum semaphores per semaphore set.
2270 .IP SEMMNS 8
2271 A system-wide limit on the number of semaphores in all semaphore sets.
2272 .IP SEMOPM 8
2273 The maximum number of operations that may be specified in a
2274 .BR semop (2)
2275 call.
2276 .IP SEMMNI 8
2277 A system-wide limit on the maximum number of semaphore identifiers.
2278 .RE
2279 .TP
2280 .I /proc/sys/kernel/sg-big-buff
2281 This file
2282 shows the size of the generic SCSI device (sg) buffer.
2283 You can't tune it just yet, but you could change it at
2284 compile time by editing
2285 .I include/scsi/sg.h
2286 and changing
2287 the value of
2288 .BR SG_BIG_BUFF .
2289 However, there shouldn't be any reason to change this value.
2290 .TP
2291 .I /proc/sys/kernel/shmall
2292 This file
2293 contains the system-wide limit on the total number of pages of
2294 System V shared memory.
2295 .TP
2296 .I /proc/sys/kernel/shmmax
2297 This file
2298 can be used to query and set the run-time limit
2299 on the maximum (System V IPC) shared memory segment size that can be
2300 created.
2301 Shared memory segments up to 1GB are now supported in the
2302 kernel.
2303 This value defaults to
2304 .BR SHMMAX .
2305 .TP
2306 .I /proc/sys/kernel/shmmni
2307 (available in Linux 2.4 and onward)
2308 This file
2309 specifies the system-wide maximum number of System V shared memory
2310 segments that can be created.
2311 .TP
2312 .I /proc/sys/kernel/sysrq
2313 This file controls the functions allowed to be invoked by the SysRq key.
2314 By default,
2315 the file contains 1 meaning that every possible SysRq request is allowed
2316 (in older kernel versions, SysRq was disabled by default,
2317 and you were required to specifically enable it at run-time,
2318 but this is not the case any more).
2319 Possible values in this file are:
2320
2321    0 - disable sysrq completely
2322    1 - enable all functions of sysrq
2323   >1 - bitmask of allowed sysrq functions, as follows:
2324           2 - enable control of console logging level
2325           4 - enable control of keyboard (SAK, unraw)
2326           8 - enable debugging dumps of processes etc.
2327          16 - enable sync command
2328          32 - enable remount read-only
2329          64 - enable signalling of processes (term, kill, oom-kill)
2330         128 - allow reboot/poweroff
2331         256 - allow nicing of all real-time tasks
2332
2333 This file is only present if the
2334 .B CONFIG_MAGIC_SYSRQ
2335 kernel configuration option is enabled.
2336 For further details see the kernel source file
2337 .IR Documentation/sysrq.txt .
2338 .TP
2339 .I /proc/sys/kernel/version
2340 This file contains a string like:
2341
2342     #5 Wed Feb 25 21:49:24 MET 1998
2343
2344 The "#5" means that
2345 this is the fifth kernel built from this source base and the
2346 date behind it indicates the time the kernel was built.
2347 .TP
2348 .IR /proc/sys/kernel/threads-max " (since Linux 2.3.11)"
2349 This file specifies the system-wide limit on the number of
2350 threads (tasks) that can be created on the system.
2351 .TP
2352 .IR /proc/sys/kernel/zero-paged " (PowerPC only) "
2353 This file
2354 contains a flag.
2355 When enabled (nonzero), Linux-PPC will pre-zero pages in
2356 the idle loop, possibly speeding up get_free_pages.
2357 .TP
2358 .I /proc/sys/net
2359 This directory contains networking stuff.
2360 Explanations for some of the files under this directory can be found in
2361 .BR tcp (7)
2362 and
2363 .BR ip (7).
2364 .TP
2365 .I /proc/sys/net/core/somaxconn
2366 This file defines a ceiling value for the
2367 .I backlog
2368 argument of
2369 .BR listen (2);
2370 see the
2371 .BR listen (2)
2372 manual page for details.
2373 .TP
2374 .I /proc/sys/proc
2375 This directory may be empty.
2376 .TP
2377 .I /proc/sys/sunrpc
2378 This directory supports Sun remote procedure call for network file system
2379 (NFS).
2380 On some systems, it is not present.
2381 .TP
2382 .I /proc/sys/vm
2383 This directory contains files for memory management tuning, buffer and
2384 cache management.
2385 .TP
2386 .IR /proc/sys/vm/drop_caches " (since Linux 2.6.16)"
2387 Writing to this file causes the kernel to drop clean caches, dentries and
2388 inodes from memory, causing that memory to become free.
2389
2390 To free pagecache, use
2391 .IR "echo 1 > /proc/sys/vm/drop_caches" ;
2392 to free dentries and inodes, use
2393 .IR "echo 2 > /proc/sys/vm/drop_caches" ;
2394 to free pagecache, dentries and inodes, use
2395 .IR "echo 3 > /proc/sys/vm/drop_caches" .
2396
2397 Because this is a nondestructive operation and dirty objects
2398 are not freeable, the
2399 user should run
2400 .BR sync (8)
2401 first.
2402 .TP
2403 .IR /proc/sys/vm/legacy_va_layout " (since Linux 2.6.9)"
2404 .\" The following is from Documentation/filesystems/proc.txt
2405 If nonzero, this disables the new 32-bit memory-mapping layout;
2406 the kernel will use the legacy (2.4) layout for all processes.
2407 .TP
2408 .IR /proc/sys/vm/memory_failure_early_kill " (since Linux 2.6.32)"
2409 .\" The following is based on the text in Documentation/sysctl/vm.txt
2410 Control how to kill processes when an uncorrected memory error
2411 (typically a 2-bit error in a memory module)
2412 that cannot be handled by the kernel
2413 is detected in the background by hardware.
2414 In some cases (like the page still having a valid copy on disk),
2415 the kernel will handle the failure
2416 transparently without affecting any applications.
2417 But if there is no other up-to-date copy of the data,
2418 it will kill processes to prevent any data corruptions from propagating.
2419
2420 The file has one of the following values:
2421 .RS
2422 .IP 1: 4
2423 Kill all processes that have the corrupted-and-not-reloadable page mapped
2424 as soon as the corruption is detected.
2425 Note this is not supported for a few types of pages, like kernel internally
2426 allocated data or the swap cache, but works for the majority of user pages.
2427 .IP 0: 4
2428 Only unmap the corrupted page from all processes and only kill a process
2429 who tries to access it.
2430 .RE
2431 .IP
2432 The kill is performed using a
2433 .B SIGBUS
2434 signal with
2435 .I si_code
2436 set to
2437 .BR BUS_MCEERR_AO .
2438 Processes can handle this if they want to; see
2439 .BR sigaction (2)
2440 for more details.
2441
2442 This feature is only active on architectures/platforms with advanced machine
2443 check handling and depends on the hardware capabilities.
2444
2445 Applications can override the
2446 .I memory_failure_early_kill
2447 setting individually with the
2448 .BR prctl (2)
2449 .B PR_MCE_KILL
2450 operation.
2451 .IP
2452 Only present if the kernel was configured with
2453 .BR CONFIG_MEMORY_FAILURE .
2454 .TP
2455 .IR /proc/sys/vm/memory_failure_recovery " (since Linux 2.6.32)"
2456 .\" The following is based on the text in Documentation/sysctl/vm.txt
2457 Enable memory failure recovery (when supported by the platform)
2458 .RS
2459 .IP 1: 4
2460 Attempt recovery.
2461 .IP 0: 4
2462 Always panic on a memory failure.
2463 .RE
2464 .IP
2465 Only present if the kernel was configured with
2466 .BR CONFIG_MEMORY_FAILURE .
2467 .TP
2468 .IR /proc/sys/vm/oom_dump_tasks " (since Linux 2.6.25)"
2469 .\" The following is from Documentation/sysctl/vm.txt
2470 Enables a system-wide task dump (excluding kernel threads) to be
2471 produced when the kernel performs an OOM-killing.
2472 The dump includes the following information
2473 for each task (thread, process):
2474 thread ID, real user ID, thread group ID (process ID),
2475 virtual memory size, resident set size,
2476 the CPU that the task is scheduled on,
2477 oom_adj score (see the description of
2478 .IR /proc/[pid]/oom_adj ),
2479 and command name.
2480 This is helpful to determine why the OOM-killer was invoked
2481 and to identify the rogue task that caused it.
2482
2483 If this contains the value zero, this information is suppressed.
2484 On very large systems with thousands of tasks,
2485 it may not be feasible to dump the memory state information for each one.
2486 Such systems should not be forced to incur a performance penalty in
2487 OOM situations when the information may not be desired.
2488
2489 If this is set to nonzero, this information is shown whenever the
2490 OOM-killer actually kills a memory-hogging task.
2491
2492 The default value is 0.
2493 .TP
2494 .IR /proc/sys/vm/oom_kill_allocating_task " (since Linux 2.6.24)"
2495 .\" The following is from Documentation/sysctl/vm.txt
2496 This enables or disables killing the OOM-triggering task in
2497 out-of-memory situations.
2498
2499 If this is set to zero, the OOM-killer will scan through the entire
2500 tasklist and select a task based on heuristics to kill.
2501 This normally selects a rogue memory-hogging task that
2502 frees up a large amount of memory when killed.
2503
2504 If this is set to nonzero, the OOM-killer simply kills the task that
2505 triggered the out-of-memory condition.
2506 This avoids a possibly expensive tasklist scan.
2507
2508 If
2509 .I /proc/sys/vm/panic_on_oom
2510 is nonzero, it takes precedence over whatever value is used in
2511 .IR /proc/sys/vm/oom_kill_allocating_task .
2512
2513 The default value is 0.
2514 .TP
2515 .I /proc/sys/vm/overcommit_memory
2516 This file contains the kernel virtual memory accounting mode.
2517 Values are:
2518 .RS
2519 .IP
2520 0: heuristic overcommit (this is the default)
2521 .br
2522 1: always overcommit, never check
2523 .br
2524 2: always check, never overcommit
2525 .RE
2526 .IP
2527 In mode 0, calls of
2528 .BR mmap (2)
2529 with
2530 .B MAP_NORESERVE
2531 are not checked, and the default check is very weak,
2532 leading to the risk of getting a process "OOM-killed".
2533 Under Linux 2.4 any nonzero value implies mode 1.
2534 In mode 2 (available since Linux 2.6), the total virtual address space
2535 on the system is limited to (SS + RAM*(r/100)),
2536 where SS is the size of the swap space, and RAM
2537 is the size of the physical memory, and r is the contents of the file
2538 .IR /proc/sys/vm/overcommit_ratio .
2539 .TP
2540 .I /proc/sys/vm/overcommit_ratio
2541 See the description of
2542 .IR /proc/sys/vm/overcommit_memory .
2543 .TP
2544 .IR /proc/sys/vm/panic_on_oom " (since Linux 2.6.18)"
2545 .\" The following is adapted from Documentation/sysctl/vm.txt
2546 This enables or disables a kernel panic in
2547 an out-of-memory situation.
2548
2549 If this file is set to the value 0,
2550 the kernel's OOM-killer will kill some rogue process.
2551 Usually, the OOM-killer is able to kill a rogue process and the
2552 system will survive.
2553
2554 If this file is set to the value 1,
2555 then the kernel normally panics when out-of-memory happens.
2556 However, if a process limits allocations to certain nodes
2557 using memory policies
2558 .RB ( mbind  (2)
2559 .BR MPOL_BIND )
2560 or cpusets
2561 .RB ( cpuset (7))
2562 and those nodes reach memory exhaustion status,
2563 one process may be killed by the OOM-killer.
2564 No panic occurs in this case:
2565 because other nodes' memory may be free,
2566 this means the system as a whole may not have reached
2567 an out-of-memory situation yet.
2568
2569 If this file is set to the value 2,
2570 the kernel always panics when an out-of-memory condition occurs.
2571
2572 The default value is 0.
2573 1 and 2 are for failover of clustering.
2574 Select either according to your policy of failover.
2575 .TP
2576 .IR /proc/sys/vm/swappiness
2577 .\" The following is from Documentation/sysctl/vm.txt
2578 The value in this file controls how aggressively the kernel will swap
2579 memory pages.
2580 Higher values increase aggressiveness, lower values
2581 decrease aggressiveness.
2582 The default value is 60.
2583 .TP
2584 .IR /proc/sysrq-trigger " (since Linux 2.4.21)"
2585 Writing a character to this file triggers the same SysRq function as
2586 typing ALT-SysRq-<character> (see the description of
2587 .IR /proc/sys/kernel/sysrq ).
2588 This file is normally only writable by
2589 .IR root .
2590 For further details see the kernel source file
2591 .IR Documentation/sysrq.txt .
2592 .TP
2593 .I /proc/sysvipc
2594 Subdirectory containing the pseudo-files
2595 .IR msg ", "  sem " and "  shm "."
2596 These files list the System V Interprocess Communication (IPC) objects
2597 (respectively: message queues, semaphores, and shared memory)
2598 that currently exist on the system,
2599 providing similar information to that available via
2600 .BR ipcs (1).
2601 These files have headers and are formatted (one IPC object per line)
2602 for easy understanding.
2603 .BR svipc (7)
2604 provides further background on the information shown by these files.
2605 .TP
2606 .I /proc/tty
2607 Subdirectory containing the pseudo-files and subdirectories for
2608 tty drivers and line disciplines.
2609 .TP
2610 .I /proc/uptime
2611 This file contains two numbers: the uptime of the system (seconds),
2612 and the amount of time spent in idle process (seconds).
2613 .TP
2614 .I /proc/version
2615 This string identifies the kernel version that is currently running.
2616 It includes the contents of
2617 .IR /proc/sys/kernel/ostype ,
2618 .I /proc/sys/kernel/osrelease
2619 and
2620 .IR /proc/sys/kernel/version .
2621 For example:
2622 .nf
2623 .in -2
2624 .ft CW
2625 Linux version 1.0.9 (quinlan@phaze) #1 Sat May 14 01:51:54 EDT 1994
2626 .ft
2627 .in +2
2628 .fi
2629 .\" FIXME Document /proc/timer_list
2630 .\" .TP
2631 .\" .IR /proc/timer_list " (since Linux 2.6.21)"
2632 .\" See the 2.6.21 Change log
2633 .\" FIXME Document /proc/timer_stats
2634 .\" .TP
2635 .\" .IR /proc/timer_stats " (since Linux 2.6.21)"
2636 .\" See the 2.6.21 Change log
2637 .TP
2638 .IR /proc/vmstat " (since Linux 2.6)"
2639 This file displays various virtual memory statistics.
2640 .TP
2641 .IR /proc/zoneinfo " (since Linux 2.6.13)"
2642 This file display information about memory zones.
2643 This is useful for analyzing virtual memory behavior.
2644 .\" FIXME more should be said about /proc/zoneinfo
2645 .SH NOTES
2646 Many strings (i.e., the environment and command line) are in
2647 the internal format, with subfields terminated by null bytes (\(aq\\0\(aq),
2648 so you
2649 may find that things are more readable if you use \fIod \-c\fP or \fItr
2650 "\\000" "\\n"\fP to read them.
2651 Alternatively, \fIecho \`cat <file>\`\fP works well.
2652
2653 This manual page is incomplete, possibly inaccurate, and is the kind
2654 of thing that needs to be updated very often.
2655 .\" .SH ACKNOWLEDGEMENTS
2656 .\" The material on /proc/sys/fs and /proc/sys/kernel is closely based on
2657 .\" kernel source documentation files written by Rik van Riel.
2658 .SH "SEE ALSO"
2659 .BR cat (1),
2660 .BR dmesg (1),
2661 .BR find (1),
2662 .BR free (1),
2663 .BR ps (1),
2664 .BR tr (1),
2665 .BR uptime (1),
2666 .BR chroot (2),
2667 .BR mmap (2),
2668 .BR readlink (2),
2669 .BR syslog (2),
2670 .BR slabinfo (5),
2671 .BR hier (7),
2672 .BR time (7),
2673 .BR arp (8),
2674 .BR hdparm (8),
2675 .BR ifconfig (8),
2676 .BR init (8),
2677 .BR lsmod (8),
2678 .BR lspci (8),
2679 .BR mount (8),
2680 .BR netstat (8),
2681 .BR procinfo (8),
2682 .BR route (8)
2683 .br
2684 The kernel source files:
2685 .IR Documentation/filesystems/proc.txt ,
2686 .IR Documentation/sysctl/vm.txt