Lines Matching refs: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
59 /proc file system and we've used many freely available sources to write these
63 we know, it is the first 'all-in-one' document about the /proc file system. It
82 http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html
102 * Investigating the properties of the pseudo file system /proc and its
104 * Examining /proc's structure
110 The proc file system acts as an interface to internal data structures in the
114 First, we'll take a look at the read-only parts of /proc. In Chapter 2, we
115 show you how you can use /proc/sys to change settings.
120 The directory /proc contains (among other things) one subdirectory for each
127 Table 1-1: Process specific entries in /proc
154 read the file /proc/PID/status:
156 >cat /proc/self/status
195 the ps command. In fact, ps uses the proc file system to obtain its
197 file /proc/PID/status. It fields are described in table 1-2.
207 snapshot of a moment, you can see /proc/<pid>/smaps file and scan page table.
316 0 (place holder, used to be the wchan address, use /proc/PID/wchan instead)
336 The /proc/PID/maps file containing the currently mapped memory regions and
387 The /proc/PID/task/TID/maps is a view of the virtual memory from the viewpoint
390 content of /proc/PID/maps, where you will see all mappings that are being used
392 map, i.e. /proc/PID/task/TID/maps for thread 1001 will look like this:
415 The /proc/PID/smaps is an extension based on maps, showing the memory
440 mapping in /proc/PID/maps. The remaining lines show the size of the mapping
503 The /proc/PID/clear_refs is used to reset the PG_Referenced and ACCESSED/YOUNG
507 > echo 1 > /proc/PID/clear_refs
510 > echo 2 > /proc/PID/clear_refs
513 > echo 3 > /proc/PID/clear_refs
516 > echo 4 > /proc/PID/clear_refs
520 > echo 5 > /proc/PID/clear_refs
522 Any other value written to /proc/PID/clear_refs will have no effect.
524 The /proc/pid/pagemap gives the PFN, which can be used to find the pageflags
525 using /proc/kpageflags and number of times a page is mapped using
526 /proc/kpagecount. For detailed explanation, see Documentation/vm/pagemap.txt.
528 The /proc/pid/numa_maps is an extension based on maps, showing the memory
564 /proc and are listed in Table 1-5. Not all of these will be present in your
568 Table 1-5: Kernel info in /proc
601 pci Deprecated info of PCI bus (new way -> /proc/bus/pci/,
619 they are used for by looking in the file /proc/interrupts:
621 > cat /proc/interrupts
640 > cat /proc/interrupts
669 In 2.6.2* /proc/interrupts was expanded again. This time the goal was for
670 /proc/interrupts to display every IRQ vector in use by the system, not
697 Of some interest is the introduction of the /proc/irq directory to 2.4.
704 > ls /proc/irq/
707 > ls /proc/irq/0/
713 > echo 1 > /proc/irq/10/smp_affinity
720 > cat /proc/irq/0/smp_affinity
726 > cat /proc/irq/0/smp_affinity_list
731 /proc/irq/[0-9]* directory.
746 There are three more important subdirectories in /proc: net, scsi, and sys.
759 > cat /proc/buddyinfo
778 > cat /proc/pagetypeinfo
825 > cat /proc/meminfo
959 > cat /proc/vmallocinfo
990 > cat /proc/softirqs
1003 1.3 IDE devices in /proc/ide
1006 The subdirectory /proc/ide contains information about all IDE devices of which
1014 > cat /proc/ide/drivers
1023 Table 1-6: IDE controller info in /proc/ide/ide?
1055 # cat /proc/ide/ide0/hda/settings
1076 1.4 Networking info in /proc/net
1079 The subdirectory /proc/net follows the usual pattern. Table 1-8 shows the
1084 Table 1-8: IPv6 info in /proc/net
1099 Table 1-9: Network info in /proc/net
1133 > cat /proc/net/dev
1147 example, the bond0 device will have a directory called /proc/net/bond0/.
1156 named after the driver for this adapter in /proc/scsi. You'll also see a list
1157 of all recognized SCSI devices in /proc/scsi:
1159 >cat /proc/scsi/scsi
1175 > cat /proc/scsi/aic7xxx/0
1215 1.6 Parallel port info in /proc/parport
1218 The directory /proc/parport contains information about the parallel ports of
1225 Table 1-10: Files in /proc/parport
1238 1.7 TTY info in /proc/tty
1242 directory /proc/tty.You'll find entries for drivers and line disciplines in
1246 Table 1-11: Files in /proc/tty
1255 /proc/tty/drivers:
1257 > cat /proc/tty/drivers
1271 1.8 Miscellaneous kernel statistics in /proc/stat
1275 /proc/stat file. All of the numbers reported in this file are aggregates
1278 > cat /proc/stat
1337 /proc/fs/ext4. Each mounted filesystem will have a directory in
1338 /proc/fs/ext4 based on its device name (i.e., /proc/fs/ext4/hdc or
1339 /proc/fs/ext4/dm-0). The files in each per-device directory are shown
1342 Table 1-12: Files in /proc/fs/ext4/<devname>
1348 2.0 /proc/consoles
1353 /dev/console, you may simply look into the file /proc/consoles:
1355 > cat /proc/consoles
1376 The /proc file system serves information about the running system. It not only
1380 The directory structure of /proc reflects the types of information and makes
1391 * Modifying kernel parameters by writing into files found in /proc/sys
1393 * Review of the /proc/sys file tree
1397 A very interesting part of /proc is the directory /proc/sys. This is not only
1410 The files in /proc/sys can be used to fine tune and monitor miscellaneous and
1414 very careful when writing to any of these files. The entries in /proc may
1428 /proc/sys tree can not only be read, but also modified. You can use the echo
1437 3.1 /proc/<pid>/oom_adj & /proc/<pid>/oom_score_adj- Adjust the oom-killer score
1462 The value of /proc/<pid>/oom_score_adj is added to the badness score before it
1471 consider for each task. Setting a /proc/<pid>/oom_score_adj value of +500, for
1478 For backwards compatibility with previous kernels, /proc/<pid>/oom_adj may also
1482 scaled linearly with /proc/<pid>/oom_score_adj.
1484 The value of /proc/<pid>/oom_score_adj may be reduced no lower than the last
1494 3.2 /proc/<pid>/oom_score - Display current oom-killer score
1498 any given <pid>. Use it together with /proc/<pid>/oom_score_adj to tune which
1502 3.3 /proc/<pid>/io - Display the IO accounting fields
1513 test:/tmp # cat /proc/3828/io
1597 process A reads process B's /proc/pid/io while process B is updating one of
1604 3.4 /proc/<pid>/coredump_filter - Core dump filtering settings
1612 /proc/<pid>/coredump_filter allows you to customize which memory segments
1639 write 0x31 to the process's proc file.
1641 $ echo 0x31 > /proc/1234/coredump_filter
1647 $ echo 0x7 > /proc/self/coredump_filter
1650 3.5 /proc/<pid>/mountinfo - Information about mounts
1688 3.6 /proc/<pid>/comm & /proc/<pid>/task/<tid>/comm
1697 3.7 /proc/<pid>/task/<tid>/children - Information about task children
1704 not be listed here, one needs to read /proc/<children-pid>/task/<tid>/children
1714 3.8 /proc/<pid>/fdinfo/<fd> - Information about opened file
1721 the file system containing the opened file [see 3.5 /proc/<pid>/mountinfo
1831 3.9 /proc/<pid>/map_files - Information about memory mapped files
1847 files in a fast way instead of parsing /proc/<pid>/maps or
1848 /proc/<pid>/smaps, both of which contain many more records. At the same
1862 hidepid= Set /proc/<pid>/ access mode.
1865 hidepid=0 means classic mode - everybody may access all /proc/<pid>/ directories
1868 hidepid=1 means users may not access any /proc/<pid>/ directories but their
1872 As an additional bonus, as /proc/<pid>/cmdline is unaccessible for other users,
1876 hidepid=2 means hidepid=1 plus all /proc/<pid>/ will be fully invisible to other
1880 /proc/<pid>/ otherwise. It greatly complicates an intruder's task of gathering