Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: Documentation/filesystems/proc.txt

Issue 801393003: task_mmu: Reduce excessive indentation in clear_refs_write Base URL: https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git@master
Patch Set: Second patch Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | fs/proc/task_mmu.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ------------------------------------------------------------------------------ 1 ------------------------------------------------------------------------------
2 T H E /proc F I L E S Y S T E M 2 T H E /proc F I L E S Y S T E M
3 ------------------------------------------------------------------------------ 3 ------------------------------------------------------------------------------
4 /proc/sys Terrehon Bowden <terrehon@pacbell.net> October 7 1999 4 /proc/sys Terrehon Bowden <terrehon@pacbell.net> October 7 1999
5 Bodo Bauer <bb@ricochet.net> 5 Bodo Bauer <bb@ricochet.net>
6 6
7 2.4.x update Jorge Nerin <comandante@zaralinux.com> November 14 2000 7 2.4.x update Jorge Nerin <comandante@zaralinux.com> November 14 2000
8 move /proc/sys Shen Feng <shen@cn.fujitsu.com> April 1 2009 8 move /proc/sys Shen Feng <shen@cn.fujitsu.com> April 1 2009
9 ------------------------------------------------------------------------------ 9 ------------------------------------------------------------------------------
10 Version 1.3 Kernel version 2.2.12 10 Version 1.3 Kernel version 2.2.12
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 481
482 To clear the bits for the anonymous pages associated with the process 482 To clear the bits for the anonymous pages associated with the process
483 > echo 2 > /proc/PID/clear_refs 483 > echo 2 > /proc/PID/clear_refs
484 484
485 To clear the bits for the file mapped pages associated with the process 485 To clear the bits for the file mapped pages associated with the process
486 > echo 3 > /proc/PID/clear_refs 486 > echo 3 > /proc/PID/clear_refs
487 487
488 To clear the soft-dirty bit 488 To clear the soft-dirty bit
489 > echo 4 > /proc/PID/clear_refs 489 > echo 4 > /proc/PID/clear_refs
490 490
491 To reset the peak resident set size ("high water mark")
492 > echo 5 > /proc/PID/clear_refs
493
491 Any other value written to /proc/PID/clear_refs will have no effect. 494 Any other value written to /proc/PID/clear_refs will have no effect.
492 495
493 The /proc/pid/pagemap gives the PFN, which can be used to find the pageflags 496 The /proc/pid/pagemap gives the PFN, which can be used to find the pageflags
494 using /proc/kpageflags and number of times a page is mapped using 497 using /proc/kpageflags and number of times a page is mapped using
495 /proc/kpagecount. For detailed explanation, see Documentation/vm/pagemap.txt. 498 /proc/kpagecount. For detailed explanation, see Documentation/vm/pagemap.txt.
496 499
497 1.2 Kernel data 500 1.2 Kernel data
498 --------------- 501 ---------------
499 502
500 Similar to the process entries, the kernel data files give information about 503 Similar to the process entries, the kernel data files give information about
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1791 pid value exists (it can be learned by other means, e.g. by "kill -0 $PID"), 1794 pid value exists (it can be learned by other means, e.g. by "kill -0 $PID"),
1792 but it hides process' uid and gid, which may be learned by stat()'ing 1795 but it hides process' uid and gid, which may be learned by stat()'ing
1793 /proc/<pid>/ otherwise. It greatly complicates an intruder's task of gathering 1796 /proc/<pid>/ otherwise. It greatly complicates an intruder's task of gathering
1794 information about running processes, whether some daemon runs with elevated 1797 information about running processes, whether some daemon runs with elevated
1795 privileges, whether other user runs some sensitive program, whether other users 1798 privileges, whether other user runs some sensitive program, whether other users
1796 run any program at all, etc. 1799 run any program at all, etc.
1797 1800
1798 gid= defines a group authorized to learn processes information otherwise 1801 gid= defines a group authorized to learn processes information otherwise
1799 prohibited by hidepid=. If you use some daemon like identd which needs to learn 1802 prohibited by hidepid=. If you use some daemon like identd which needs to learn
1800 information about processes information, just add identd to this group. 1803 information about processes information, just add identd to this group.
OLDNEW
« no previous file with comments | « no previous file | fs/proc/task_mmu.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698