aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2014-04-07 18:38:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-07 19:36:00 -0400
commit8dd1d3247e6c00b50ef83934ea8b22a1590015de (patch)
treecd3a390a6da1cfa32c1a780946868ae43eed89e5 /Documentation
parente64cd51d2fa87733176246101df871a8ac5c7c20 (diff)
zram: document failed_reads, failed_writes stats
Document `failed_reads' and `failed_writes' device attributes. Remove info about `discard' - there is no such zram attr. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Minchan Kim <minchan@kernel.org> Cc: Jerome Marchand <jmarchan@redhat.com> Cc: Nitin Gupta <ngupta@vflare.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/ABI/testing/sysfs-block-zram24
-rw-r--r--Documentation/blockdev/zram.txt3
2 files changed, 17 insertions, 10 deletions
diff --git a/Documentation/ABI/testing/sysfs-block-zram b/Documentation/ABI/testing/sysfs-block-zram
index 3f0b9ae61d8c..8aa046841625 100644
--- a/Documentation/ABI/testing/sysfs-block-zram
+++ b/Documentation/ABI/testing/sysfs-block-zram
@@ -43,6 +43,21 @@ Description:
43 The invalid_io file is read-only and specifies the number of 43 The invalid_io file is read-only and specifies the number of
44 non-page-size-aligned I/O requests issued to this device. 44 non-page-size-aligned I/O requests issued to this device.
45 45
46What: /sys/block/zram<id>/failed_reads
47Date: February 2014
48Contact: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
49Description:
50 The failed_reads file is read-only and specifies the number of
51 failed reads happened on this device.
52
53
54What: /sys/block/zram<id>/failed_writes
55Date: February 2014
56Contact: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
57Description:
58 The failed_writes file is read-only and specifies the number of
59 failed writes happened on this device.
60
46What: /sys/block/zram<id>/notify_free 61What: /sys/block/zram<id>/notify_free
47Date: August 2010 62Date: August 2010
48Contact: Nitin Gupta <ngupta@vflare.org> 63Contact: Nitin Gupta <ngupta@vflare.org>
@@ -53,15 +68,6 @@ Description:
53 is freed. This statistic is applicable only when this disk is 68 is freed. This statistic is applicable only when this disk is
54 being used as a swap disk. 69 being used as a swap disk.
55 70
56What: /sys/block/zram<id>/discard
57Date: August 2010
58Contact: Nitin Gupta <ngupta@vflare.org>
59Description:
60 The discard file is read-only and specifies the number of
61 discard requests received by this device. These requests
62 provide information to block device regarding blocks which are
63 no longer used by filesystem.
64
65What: /sys/block/zram<id>/zero_pages 71What: /sys/block/zram<id>/zero_pages
66Date: August 2010 72Date: August 2010
67Contact: Nitin Gupta <ngupta@vflare.org> 73Contact: Nitin Gupta <ngupta@vflare.org>
diff --git a/Documentation/blockdev/zram.txt b/Documentation/blockdev/zram.txt
index 393541be1ec0..b31ac5e5d4b9 100644
--- a/Documentation/blockdev/zram.txt
+++ b/Documentation/blockdev/zram.txt
@@ -51,9 +51,10 @@ size of the disk when not in use so a huge zram is wasteful.
51 disksize 51 disksize
52 num_reads 52 num_reads
53 num_writes 53 num_writes
54 failed_reads
55 failed_writes
54 invalid_io 56 invalid_io
55 notify_free 57 notify_free
56 discard
57 zero_pages 58 zero_pages
58 orig_data_size 59 orig_data_size
59 compr_data_size 60 compr_data_size