aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-09-08 20:52:23 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-08 20:52:23 -0400
commitf6f7a6369203fa3e07efb7f35cfd81efe9f25b07 (patch)
tree97bec9ddd999040822acf314647eaf4208213589 /Documentation/filesystems
parent839fe9156fbe89c3157aa6146d22090f8cffddd8 (diff)
parentdf69f52d990bd85159727bd26e819d3a6e49c666 (diff)
Merge branch 'akpm' (patches from Andrew)
Merge second patch-bomb from Andrew Morton: "Almost all of the rest of MM. There was an unusually large amount of MM material this time" * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (141 commits) zpool: remove no-op module init/exit mm: zbud: constify the zbud_ops mm: zpool: constify the zpool_ops mm: swap: zswap: maybe_preload & refactoring zram: unify error reporting zsmalloc: remove null check from destroy_handle_cache() zsmalloc: do not take class lock in zs_shrinker_count() zsmalloc: use class->pages_per_zspage zsmalloc: consider ZS_ALMOST_FULL as migrate source zsmalloc: partial page ordering within a fullness_list zsmalloc: use shrinker to trigger auto-compaction zsmalloc: account the number of compacted pages zsmalloc/zram: introduce zs_pool_stats api zsmalloc: cosmetic compaction code adjustments zsmalloc: introduce zs_can_compact() function zsmalloc: always keep per-class stats zsmalloc: drop unused variable `nr_to_migrate' mm/memblock.c: fix comment in __next_mem_range() mm/page_alloc.c: fix type information of memoryless node memory-hotplug: fix comments in zone_spanned_pages_in_node() and zone_spanned_pages_in_node() ...
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r--Documentation/filesystems/dax.txt7
-rw-r--r--Documentation/filesystems/proc.txt18
2 files changed, 17 insertions, 8 deletions
diff --git a/Documentation/filesystems/dax.txt b/Documentation/filesystems/dax.txt
index 7af2851d667c..7bde64014a89 100644
--- a/Documentation/filesystems/dax.txt
+++ b/Documentation/filesystems/dax.txt
@@ -60,9 +60,10 @@ Filesystem support consists of
60- implementing the direct_IO address space operation, and calling 60- implementing the direct_IO address space operation, and calling
61 dax_do_io() instead of blockdev_direct_IO() if S_DAX is set 61 dax_do_io() instead of blockdev_direct_IO() if S_DAX is set
62- implementing an mmap file operation for DAX files which sets the 62- implementing an mmap file operation for DAX files which sets the
63 VM_MIXEDMAP flag on the VMA, and setting the vm_ops to include handlers 63 VM_MIXEDMAP and VM_HUGEPAGE flags on the VMA, and setting the vm_ops to
64 for fault and page_mkwrite (which should probably call dax_fault() and 64 include handlers for fault, pmd_fault and page_mkwrite (which should
65 dax_mkwrite(), passing the appropriate get_block() callback) 65 probably call dax_fault(), dax_pmd_fault() and dax_mkwrite(), passing the
66 appropriate get_block() callback)
66- calling dax_truncate_page() instead of block_truncate_page() for DAX files 67- calling dax_truncate_page() instead of block_truncate_page() for DAX files
67- calling dax_zero_page_range() instead of zero_user() for DAX files 68- calling dax_zero_page_range() instead of zero_user() for DAX files
68- ensuring that there is sufficient locking between reads, writes, 69- ensuring that there is sufficient locking between reads, writes,
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
index 6f7fafde0884..d411ca63c8b6 100644
--- a/Documentation/filesystems/proc.txt
+++ b/Documentation/filesystems/proc.txt
@@ -424,6 +424,7 @@ Private_Dirty: 0 kB
424Referenced: 892 kB 424Referenced: 892 kB
425Anonymous: 0 kB 425Anonymous: 0 kB
426Swap: 0 kB 426Swap: 0 kB
427SwapPss: 0 kB
427KernelPageSize: 4 kB 428KernelPageSize: 4 kB
428MMUPageSize: 4 kB 429MMUPageSize: 4 kB
429Locked: 374 kB 430Locked: 374 kB
@@ -433,16 +434,23 @@ the first of these lines shows the same information as is displayed for the
433mapping in /proc/PID/maps. The remaining lines show the size of the mapping 434mapping in /proc/PID/maps. The remaining lines show the size of the mapping
434(size), the amount of the mapping that is currently resident in RAM (RSS), the 435(size), the amount of the mapping that is currently resident in RAM (RSS), the
435process' proportional share of this mapping (PSS), the number of clean and 436process' proportional share of this mapping (PSS), the number of clean and
436dirty private pages in the mapping. Note that even a page which is part of a 437dirty private pages in the mapping.
437MAP_SHARED mapping, but has only a single pte mapped, i.e. is currently used 438
438by only one process, is accounted as private and not as shared. "Referenced" 439The "proportional set size" (PSS) of a process is the count of pages it has
439indicates the amount of memory currently marked as referenced or accessed. 440in memory, where each page is divided by the number of processes sharing it.
441So if a process has 1000 pages all to itself, and 1000 shared with one other
442process, its PSS will be 1500.
443Note that even a page which is part of a MAP_SHARED mapping, but has only
444a single pte mapped, i.e. is currently used by only one process, is accounted
445as private and not as shared.
446"Referenced" indicates the amount of memory currently marked as referenced or
447accessed.
440"Anonymous" shows the amount of memory that does not belong to any file. Even 448"Anonymous" shows the amount of memory that does not belong to any file. Even
441a mapping associated with a file may contain anonymous pages: when MAP_PRIVATE 449a mapping associated with a file may contain anonymous pages: when MAP_PRIVATE
442and a page is modified, the file page is replaced by a private anonymous copy. 450and a page is modified, the file page is replaced by a private anonymous copy.
443"Swap" shows how much would-be-anonymous memory is also used, but out on 451"Swap" shows how much would-be-anonymous memory is also used, but out on
444swap. 452swap.
445 453"SwapPss" shows proportional swap share of this mapping.
446"VmFlags" field deserves a separate description. This member represents the kernel 454"VmFlags" field deserves a separate description. This member represents the kernel
447flags associated with the particular virtual memory area in two letter encoded 455flags associated with the particular virtual memory area in two letter encoded
448manner. The codes are the following: 456manner. The codes are the following: