diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-08 20:52:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-08 20:52:23 -0400 |
commit | f6f7a6369203fa3e07efb7f35cfd81efe9f25b07 (patch) | |
tree | 97bec9ddd999040822acf314647eaf4208213589 /Documentation/filesystems | |
parent | 839fe9156fbe89c3157aa6146d22090f8cffddd8 (diff) | |
parent | df69f52d990bd85159727bd26e819d3a6e49c666 (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.txt | 7 | ||||
-rw-r--r-- | Documentation/filesystems/proc.txt | 18 |
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 | |||
424 | Referenced: 892 kB | 424 | Referenced: 892 kB |
425 | Anonymous: 0 kB | 425 | Anonymous: 0 kB |
426 | Swap: 0 kB | 426 | Swap: 0 kB |
427 | SwapPss: 0 kB | ||
427 | KernelPageSize: 4 kB | 428 | KernelPageSize: 4 kB |
428 | MMUPageSize: 4 kB | 429 | MMUPageSize: 4 kB |
429 | Locked: 374 kB | 430 | Locked: 374 kB |
@@ -433,16 +434,23 @@ the first of these lines shows the same information as is displayed for the | |||
433 | mapping in /proc/PID/maps. The remaining lines show the size of the mapping | 434 | mapping 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 |
435 | process' proportional share of this mapping (PSS), the number of clean and | 436 | process' proportional share of this mapping (PSS), the number of clean and |
436 | dirty private pages in the mapping. Note that even a page which is part of a | 437 | dirty private pages in the mapping. |
437 | MAP_SHARED mapping, but has only a single pte mapped, i.e. is currently used | 438 | |
438 | by only one process, is accounted as private and not as shared. "Referenced" | 439 | The "proportional set size" (PSS) of a process is the count of pages it has |
439 | indicates the amount of memory currently marked as referenced or accessed. | 440 | in memory, where each page is divided by the number of processes sharing it. |
441 | So if a process has 1000 pages all to itself, and 1000 shared with one other | ||
442 | process, its PSS will be 1500. | ||
443 | Note that even a page which is part of a MAP_SHARED mapping, but has only | ||
444 | a single pte mapped, i.e. is currently used by only one process, is accounted | ||
445 | as private and not as shared. | ||
446 | "Referenced" indicates the amount of memory currently marked as referenced or | ||
447 | accessed. | ||
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 |
441 | a mapping associated with a file may contain anonymous pages: when MAP_PRIVATE | 449 | a mapping associated with a file may contain anonymous pages: when MAP_PRIVATE |
442 | and a page is modified, the file page is replaced by a private anonymous copy. | 450 | and 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 |
444 | swap. | 452 | swap. |
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 |
447 | flags associated with the particular virtual memory area in two letter encoded | 455 | flags associated with the particular virtual memory area in two letter encoded |
448 | manner. The codes are the following: | 456 | manner. The codes are the following: |