summaryrefslogtreecommitdiffstats
path: root/Documentation/blockdev
diff options
context:
space:
mode:
authorMinchan Kim2018-06-08 02:05:42 +0200
committerLinus Torvalds2018-06-08 02:34:34 +0200
commit89e85bce4b02edb7408aebf69d5d1a6692a05f4f (patch)
treeedcf57724445af23cf3d97d904903722359f7d78 /Documentation/blockdev
parentzram: correct flag name of ZRAM_ACCESS (diff)
downloadkernel-qcow2-linux-89e85bce4b02edb7408aebf69d5d1a6692a05f4f.tar.gz
kernel-qcow2-linux-89e85bce4b02edb7408aebf69d5d1a6692a05f4f.tar.xz
kernel-qcow2-linux-89e85bce4b02edb7408aebf69d5d1a6692a05f4f.zip
zram: mark incompressible page as ZRAM_HUGE
Mark incompressible pages so that we could investigate who is the owner of the incompressible pages once the page is swapped out via using upcoming zram memory tracker feature. With it, we could prevent such pages to be swapped out by using mlock. Otherwise we might remove them. This patch exposes new stat for huge pages via mm_stat. Link: http://lkml.kernel.org/r/20180416090946.63057-3-minchan@kernel.org Signed-off-by: Minchan Kim <minchan@kernel.org> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/blockdev')
-rw-r--r--Documentation/blockdev/zram.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/blockdev/zram.txt b/Documentation/blockdev/zram.txt
index 257e65714c6a..78db38d02bc9 100644
--- a/Documentation/blockdev/zram.txt
+++ b/Documentation/blockdev/zram.txt
@@ -218,6 +218,7 @@ line of text and contains the following stats separated by whitespace:
same_pages the number of same element filled pages written to this disk.
No memory is allocated for such pages.
pages_compacted the number of pages freed during compaction
+ huge_pages the number of incompressible pages
9) Deactivate:
swapoff /dev/zram0