Lines Matching full:proc
4 The /proc Filesystem
8 /proc/sys Terrehon Bowden <terrehon@pacbell.net>, October 7 1999
11 move /proc/sys Shen Feng <shen@cn.fujitsu.com> April 1 2009
26 1.3 IDE devices in /proc/ide
27 1.4 Networking info in /proc/net
29 1.6 Parallel port info in /proc/parport
30 1.7 TTY info in /proc/tty
31 1.8 Miscellaneous kernel statistics in /proc/stat
37 3.1 /proc/<pid>/oom_adj & /proc/<pid>/oom_score_adj - Adjust the oom-killer
39 3.2 /proc/<pid>/oom_score - Display current oom-killer score
40 3.3 /proc/<pid>/io - Display the IO accounting fields
41 3.4 /proc/<pid>/coredump_filter - Core dump filtering settings
42 3.5 /proc/<pid>/mountinfo - Information about mounts
43 3.6 /proc/<pid>/comm & /proc/<pid>/task/<tid>/comm
44 3.7 /proc/<pid>/task/<tid>/children - Information about task children
45 3.8 /proc/<pid>/fdinfo/<fd> - Information about opened file
46 3.9 /proc/<pid>/map_files - Information about memory mapped files
47 3.10 /proc/<pid>/timerslack_ns - Task timerslack value
48 3.11 /proc/<pid>/patch_state - Livepatch patch operation state
49 3.12 /proc/<pid>/arch_status - Task architecture specific information
64 /proc file system and we've used many freely available sources to write these
68 we know, it is the first 'all-in-one' document about the /proc file system. It
87 http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html
105 * Investigating the properties of the pseudo file system /proc and its
107 * Examining /proc's structure
113 The proc file system acts as an interface to internal data structures in the
117 First, we'll take a look at the read-only parts of /proc. In Chapter 2, we
118 show you how you can use /proc/sys to change settings.
123 The directory /proc contains (among other things) one subdirectory for each
129 Note that an open file descriptor to /proc/<pid> or to any of its
132 open /proc/<pid> file descriptors corresponding to dead processes
137 .. table:: Table 1-1: Process specific entries in /proc
168 read the file /proc/PID/status::
170 >cat /proc/self/status
218 the ps command. In fact, ps uses the proc file system to obtain its
220 file /proc/PID/status. It fields are described in table 1-2.
231 snapshot of a moment, you can see /proc/<pid>/smaps file and scan page table.
365 use /proc/PID/wchan instead)
386 The /proc/PID/maps file contains the currently mapped memory regions and
438 The /proc/PID/smaps is an extension based on maps, showing the memory
469 mapping in /proc/PID/maps. Following lines show the size of the mapping
567 Note: reading /proc/PID/maps or /proc/PID/smaps is inherently racy (consistent
579 The /proc/PID/smaps_rollup file includes the same fields as /proc/PID/smaps,
593 The /proc/PID/clear_refs is used to reset the PG_Referenced and ACCESSED/YOUNG
599 > echo 1 > /proc/PID/clear_refs
603 > echo 2 > /proc/PID/clear_refs
607 > echo 3 > /proc/PID/clear_refs
611 > echo 4 > /proc/PID/clear_refs
616 > echo 5 > /proc/PID/clear_refs
618 Any other value written to /proc/PID/clear_refs will have no effect.
620 The /proc/pid/pagemap gives the PFN, which can be used to find the pageflags
621 using /proc/kpageflags and number of times a page is mapped using
622 /proc/kpagecount. For detailed explanation, see
625 The /proc/pid/numa_maps is an extension based on maps, showing the memory
664 /proc and are listed in Table 1-5. Not all of these will be present in your
668 .. table:: Table 1-5: Kernel info in /proc
710 pci Deprecated info of PCI bus (new way -> /proc/bus/pci/,
728 they are used for by looking in the file /proc/interrupts::
730 > cat /proc/interrupts
749 > cat /proc/interrupts
778 In 2.6.2* /proc/interrupts was expanded again. This time the goal was for
779 /proc/interrupts to display every IRQ vector in use by the system, not
810 Of some interest is the introduction of the /proc/irq directory to 2.4.
818 > ls /proc/irq/
821 > ls /proc/irq/0/
827 > echo 1 > /proc/irq/10/smp_affinity
834 > cat /proc/irq/0/smp_affinity
840 > cat /proc/irq/0/smp_affinity_list
845 /proc/irq/[0-9]* directory.
860 There are three more important subdirectories in /proc: net, scsi, and sys.
873 > cat /proc/buddyinfo
892 > cat /proc/pagetypeinfo
941 /proc/net/sockstat for TCP memory allocations.
948 > cat /proc/meminfo
1139 > cat /proc/vmallocinfo
1172 > cat /proc/softirqs
1185 1.3 IDE devices in /proc/ide
1188 The subdirectory /proc/ide contains information about all IDE devices of which
1196 > cat /proc/ide/drivers
1205 .. table:: Table 1-6: IDE controller info in /proc/ide/ide?
1241 # cat /proc/ide/ide0/hda/settings
1262 1.4 Networking info in /proc/net
1265 The subdirectory /proc/net follows the usual pattern. Table 1-8 shows the
1270 .. table:: Table 1-8: IPv6 info in /proc/net
1286 .. table:: Table 1-9: Network info in /proc/net
1322 > cat /proc/net/dev
1336 example, the bond0 device will have a directory called /proc/net/bond0/.
1345 named after the driver for this adapter in /proc/scsi. You'll also see a list
1346 of all recognized SCSI devices in /proc/scsi::
1348 >cat /proc/scsi/scsi
1364 > cat /proc/scsi/aic7xxx/0
1404 1.6 Parallel port info in /proc/parport
1407 The directory /proc/parport contains information about the parallel ports of
1414 .. table:: Table 1-10: Files in /proc/parport
1429 1.7 TTY info in /proc/tty
1433 directory /proc/tty. You'll find entries for drivers and line disciplines in
1437 .. table:: Table 1-11: Files in /proc/tty
1448 /proc/tty/drivers::
1450 > cat /proc/tty/drivers
1464 1.8 Miscellaneous kernel statistics in /proc/stat
1468 /proc/stat file. All of the numbers reported in this file are aggregates
1471 > cat /proc/stat
1500 3. The value of iowait field in /proc/stat will decrease in certain
1503 So, the iowait is not reliable by reading from /proc/stat.
1541 /proc/fs/ext4. Each mounted filesystem will have a directory in
1542 /proc/fs/ext4 based on its device name (i.e., /proc/fs/ext4/hdc or
1543 /proc/fs/ext4/dm-0). The files in each per-device directory are shown
1546 .. table:: Table 1-12: Files in /proc/fs/ext4/<devname>
1553 1.10 /proc/consoles
1558 /dev/console, you may simply look into the file /proc/consoles::
1560 > cat /proc/consoles
1587 The /proc file system serves information about the running system. It not only
1591 The directory structure of /proc reflects the types of information and makes
1600 * Modifying kernel parameters by writing into files found in /proc/sys
1602 * Review of the /proc/sys file tree
1606 A very interesting part of /proc is the directory /proc/sys. This is not only
1618 The files in /proc/sys can be used to fine tune and monitor miscellaneous and
1622 very careful when writing to any of these files. The entries in /proc may
1636 /proc/sys tree can not only be read, but also modified. You can use the echo
1644 3.1 /proc/<pid>/oom_adj & /proc/<pid>/oom_score_adj- Adjust the oom-killer score
1666 The value of /proc/<pid>/oom_score_adj is added to the badness score before it
1675 consider for each task. Setting a /proc/<pid>/oom_score_adj value of +500, for
1682 For backwards compatibility with previous kernels, /proc/<pid>/oom_adj may also
1686 scaled linearly with /proc/<pid>/oom_score_adj.
1688 The value of /proc/<pid>/oom_score_adj may be reduced no lower than the last
1693 3.2 /proc/<pid>/oom_score - Display current oom-killer score
1697 any given <pid>. Use it together with /proc/<pid>/oom_score_adj to tune which
1704 3.3 /proc/<pid>/io - Display the IO accounting fields
1717 test:/tmp # cat /proc/3828/io
1800 if process A reads process B's /proc/pid/io while process B is updating one
1807 3.4 /proc/<pid>/coredump_filter - Core dump filtering settings
1815 /proc/<pid>/coredump_filter allows you to customize which memory segments
1843 write 0x31 to the process's proc file::
1845 $ echo 0x31 > /proc/1234/coredump_filter
1851 $ echo 0x7 > /proc/self/coredump_filter
1854 3.5 /proc/<pid>/mountinfo - Information about mounts
1894 3.6 /proc/<pid>/comm & /proc/<pid>/task/<tid>/comm
1903 3.7 /proc/<pid>/task/<tid>/children - Information about task children
1910 not be listed here; one needs to read /proc/<children-pid>/task/<tid>/children
1920 3.8 /proc/<pid>/fdinfo/<fd> - Information about opened file
1928 /proc/<pid>/mountinfo for details]. 'ino' represents the inode number of
2077 3.9 /proc/<pid>/map_files - Information about memory mapped files
2093 files in a fast way instead of parsing /proc/<pid>/maps or
2094 /proc/<pid>/smaps, both of which contain many more records. At the same
2099 3.10 /proc/<pid>/timerslack_ns - Task timerslack value
2115 3.11 /proc/<pid>/patch_state - Livepatch patch operation state
2132 3.12 /proc/<pid>/arch_status - task architecture specific status
2142 $ cat /proc/6753/arch_status
2186 hidepid= Set /proc/<pid>/ access mode.
2192 /proc/<pid>/ directories (default).
2194 hidepid=noaccess or hidepid=1 means users may not access any /proc/<pid>/
2198 behaviour). As an additional bonus, as /proc/<pid>/cmdline is unaccessible for
2202 hidepid=invisible or hidepid=2 means hidepid=1 plus all /proc/<pid>/ will be
2206 stat()'ing /proc/<pid>/ otherwise. It greatly complicates an intruder's task of
2212 /proc/<pid>/ directories that the caller can ptrace.
2231 # grep ^proc /proc/mounts
2232 proc /proc proc rw,relatime,hidepid=2 0 0
2234 # strace -e mount mount -o hidepid=1 -t proc proc /tmp/proc
2235 mount("proc", "/tmp/proc", "proc", 0, "hidepid=1") = 0
2238 # grep ^proc /proc/mounts
2239 proc /proc proc rw,relatime,hidepid=2 0 0
2240 proc /tmp/proc proc rw,relatime,hidepid=2 0 0
2245 # mount -o remount,hidepid=1 -t proc proc /tmp/proc
2247 # grep ^proc /proc/mounts
2248 proc /proc proc rw,relatime,hidepid=1 0 0
2249 proc /tmp/proc proc rw,relatime,hidepid=1 0 0
2258 # mount -o hidepid=invisible -t proc proc /proc
2259 # mount -o hidepid=noaccess -t proc proc /tmp/proc
2260 # grep ^proc /proc/mounts
2261 proc /proc proc rw,relatime,hidepid=invisible 0 0
2262 proc /tmp/proc proc rw,relatime,hidepid=noaccess 0 0