• Home
  • Raw
  • Download

Lines Matching full:proc

2                        T H E  /proc   F I L E S Y S T E M
4 /proc/sys Terrehon Bowden <terrehon@pacbell.net> October 7 1999
8 move /proc/sys Shen Feng <shen@cn.fujitsu.com> April 1 2009
25 1.3 IDE devices in /proc/ide
26 1.4 Networking info in /proc/net
28 1.6 Parallel port info in /proc/parport
29 1.7 TTY info in /proc/tty
30 1.8 Miscellaneous kernel statistics in /proc/stat
36 3.1 /proc/<pid>/oom_adj & /proc/<pid>/oom_score_adj - Adjust the oom-killer
38 3.2 /proc/<pid>/oom_score - Display current oom-killer score
39 3.3 /proc/<pid>/io - Display the IO accounting fields
40 3.4 /proc/<pid>/coredump_filter - Core dump filtering settings
41 3.5 /proc/<pid>/mountinfo - Information about mounts
42 3.6 /proc/<pid>/comm & /proc/<pid>/task/<tid>/comm
43 3.7 /proc/<pid>/task/<tid>/children - Information about task children
44 3.8 /proc/<pid>/fdinfo/<fd> - Information about opened file
45 3.9 /proc/<pid>/map_files - Information about memory mapped files
46 3.10 /proc/<pid>/timerslack_ns - Task timerslack value
47 3.11 /proc/<pid>/patch_state - Livepatch patch operation state
61 /proc file system and we've used many freely available sources to write these
65 we know, it is the first 'all-in-one' document about the /proc file system. It
84 http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html
104 * Investigating the properties of the pseudo file system /proc and its
106 * Examining /proc's structure
112 The proc file system acts as an interface to internal data structures in the
116 First, we'll take a look at the read-only parts of /proc. In Chapter 2, we
117 show you how you can use /proc/sys to change settings.
122 The directory /proc contains (among other things) one subdirectory for each
129 Table 1-1: Process specific entries in /proc
156 read the file /proc/PID/status:
158 >cat /proc/self/status
202 the ps command. In fact, ps uses the proc file system to obtain its
204 file /proc/PID/status. It fields are described in table 1-2.
214 snapshot of a moment, you can see /proc/<pid>/smaps file and scan page table.
334 0 (place holder, used to be the wchan address, use /proc/PID/wchan instead)
354 The /proc/PID/maps file containing the currently mapped memory regions and
404 The /proc/PID/smaps is an extension based on maps, showing the memory
432 mapping in /proc/PID/maps. The remaining lines show the size of the mapping
509 Note: reading /proc/PID/maps or /proc/PID/smaps is inherently racy (consistent
521 The /proc/PID/clear_refs is used to reset the PG_Referenced and ACCESSED/YOUNG
526 > echo 1 > /proc/PID/clear_refs
529 > echo 2 > /proc/PID/clear_refs
532 > echo 3 > /proc/PID/clear_refs
535 > echo 4 > /proc/PID/clear_refs
539 > echo 5 > /proc/PID/clear_refs
541 Any other value written to /proc/PID/clear_refs will have no effect.
543 The /proc/pid/pagemap gives the PFN, which can be used to find the pageflags
544 using /proc/kpageflags and number of times a page is mapped using
545 /proc/kpagecount. For detailed explanation, see
548 The /proc/pid/numa_maps is an extension based on maps, showing the memory
584 /proc and are listed in Table 1-5. Not all of these will be present in your
588 Table 1-5: Kernel info in /proc
621 pci Deprecated info of PCI bus (new way -> /proc/bus/pci/,
639 they are used for by looking in the file /proc/interrupts:
641 > cat /proc/interrupts
660 > cat /proc/interrupts
689 In 2.6.2* /proc/interrupts was expanded again. This time the goal was for
690 /proc/interrupts to display every IRQ vector in use by the system, not
717 Of some interest is the introduction of the /proc/irq directory to 2.4.
724 > ls /proc/irq/
727 > ls /proc/irq/0/
733 > echo 1 > /proc/irq/10/smp_affinity
740 > cat /proc/irq/0/smp_affinity
746 > cat /proc/irq/0/smp_affinity_list
751 /proc/irq/[0-9]* directory.
766 There are three more important subdirectories in /proc: net, scsi, and sys.
779 > cat /proc/buddyinfo
798 > cat /proc/pagetypeinfo
845 > cat /proc/meminfo
993 > cat /proc/vmallocinfo
1024 > cat /proc/softirqs
1037 1.3 IDE devices in /proc/ide
1040 The subdirectory /proc/ide contains information about all IDE devices of which
1048 > cat /proc/ide/drivers
1057 Table 1-6: IDE controller info in /proc/ide/ide?
1089 # cat /proc/ide/ide0/hda/settings
1110 1.4 Networking info in /proc/net
1113 The subdirectory /proc/net follows the usual pattern. Table 1-8 shows the
1118 Table 1-8: IPv6 info in /proc/net
1133 Table 1-9: Network info in /proc/net
1167 > cat /proc/net/dev
1181 example, the bond0 device will have a directory called /proc/net/bond0/.
1190 named after the driver for this adapter in /proc/scsi. You'll also see a list
1191 of all recognized SCSI devices in /proc/scsi:
1193 >cat /proc/scsi/scsi
1209 > cat /proc/scsi/aic7xxx/0
1249 1.6 Parallel port info in /proc/parport
1252 The directory /proc/parport contains information about the parallel ports of
1259 Table 1-10: Files in /proc/parport
1272 1.7 TTY info in /proc/tty
1276 directory /proc/tty.You'll find entries for drivers and line disciplines in
1280 Table 1-11: Files in /proc/tty
1289 /proc/tty/drivers:
1291 > cat /proc/tty/drivers
1305 1.8 Miscellaneous kernel statistics in /proc/stat
1309 /proc/stat file. All of the numbers reported in this file are aggregates
1312 > cat /proc/stat
1340 3. The value of iowait field in /proc/stat will decrease in certain
1342 So, the iowait is not reliable by reading from /proc/stat.
1380 /proc/fs/ext4. Each mounted filesystem will have a directory in
1381 /proc/fs/ext4 based on its device name (i.e., /proc/fs/ext4/hdc or
1382 /proc/fs/ext4/dm-0). The files in each per-device directory are shown
1385 Table 1-12: Files in /proc/fs/ext4/<devname>
1391 2.0 /proc/consoles
1396 /dev/console, you may simply look into the file /proc/consoles:
1398 > cat /proc/consoles
1419 The /proc file system serves information about the running system. It not only
1423 The directory structure of /proc reflects the types of information and makes
1434 * Modifying kernel parameters by writing into files found in /proc/sys
1436 * Review of the /proc/sys file tree
1440 A very interesting part of /proc is the directory /proc/sys. This is not only
1453 The files in /proc/sys can be used to fine tune and monitor miscellaneous and
1457 very careful when writing to any of these files. The entries in /proc may
1471 /proc/sys tree can not only be read, but also modified. You can use the echo
1480 3.1 /proc/<pid>/oom_adj & /proc/<pid>/oom_score_adj- Adjust the oom-killer score
1505 The value of /proc/<pid>/oom_score_adj is added to the badness score before it
1514 consider for each task. Setting a /proc/<pid>/oom_score_adj value of +500, for
1521 For backwards compatibility with previous kernels, /proc/<pid>/oom_adj may also
1525 scaled linearly with /proc/<pid>/oom_score_adj.
1527 The value of /proc/<pid>/oom_score_adj may be reduced no lower than the last
1537 3.2 /proc/<pid>/oom_score - Display current oom-killer score
1541 any given <pid>. Use it together with /proc/<pid>/oom_score_adj to tune which
1545 3.3 /proc/<pid>/io - Display the IO accounting fields
1556 test:/tmp # cat /proc/3828/io
1640 process A reads process B's /proc/pid/io while process B is updating one of
1647 3.4 /proc/<pid>/coredump_filter - Core dump filtering settings
1655 /proc/<pid>/coredump_filter allows you to customize which memory segments
1682 write 0x31 to the process's proc file.
1684 $ echo 0x31 > /proc/1234/coredump_filter
1690 $ echo 0x7 > /proc/self/coredump_filter
1693 3.5 /proc/<pid>/mountinfo - Information about mounts
1731 3.6 /proc/<pid>/comm & /proc/<pid>/task/<tid>/comm
1740 3.7 /proc/<pid>/task/<tid>/children - Information about task children
1747 not be listed here, one needs to read /proc/<children-pid>/task/<tid>/children
1757 3.8 /proc/<pid>/fdinfo/<fd> - Information about opened file
1764 the file system containing the opened file [see 3.5 /proc/<pid>/mountinfo
1878 3.9 /proc/<pid>/map_files - Information about memory mapped files
1894 files in a fast way instead of parsing /proc/<pid>/maps or
1895 /proc/<pid>/smaps, both of which contain many more records. At the same
1900 3.10 /proc/<pid>/timerslack_ns - Task timerslack value
1916 3.11 /proc/<pid>/patch_state - Livepatch patch operation state
1943 hidepid= Set /proc/<pid>/ access mode.
1946 hidepid=0 means classic mode - everybody may access all /proc/<pid>/ directories
1949 hidepid=1 means users may not access any /proc/<pid>/ directories but their
1953 As an additional bonus, as /proc/<pid>/cmdline is unaccessible for other users,
1957 hidepid=2 means hidepid=1 plus all /proc/<pid>/ will be fully invisible to other
1961 /proc/<pid>/ otherwise. It greatly complicates an intruder's task of gathering