diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2014-04-07 18:38:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-07 19:36:00 -0400 |
commit | 8dd1d3247e6c00b50ef83934ea8b22a1590015de (patch) | |
tree | cd3a390a6da1cfa32c1a780946868ae43eed89e5 /Documentation | |
parent | e64cd51d2fa87733176246101df871a8ac5c7c20 (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-zram | 24 | ||||
-rw-r--r-- | Documentation/blockdev/zram.txt | 3 |
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 | ||
46 | What: /sys/block/zram<id>/failed_reads | ||
47 | Date: February 2014 | ||
48 | Contact: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | ||
49 | Description: | ||
50 | The failed_reads file is read-only and specifies the number of | ||
51 | failed reads happened on this device. | ||
52 | |||
53 | |||
54 | What: /sys/block/zram<id>/failed_writes | ||
55 | Date: February 2014 | ||
56 | Contact: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | ||
57 | Description: | ||
58 | The failed_writes file is read-only and specifies the number of | ||
59 | failed writes happened on this device. | ||
60 | |||
46 | What: /sys/block/zram<id>/notify_free | 61 | What: /sys/block/zram<id>/notify_free |
47 | Date: August 2010 | 62 | Date: August 2010 |
48 | Contact: Nitin Gupta <ngupta@vflare.org> | 63 | Contact: 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 | ||
56 | What: /sys/block/zram<id>/discard | ||
57 | Date: August 2010 | ||
58 | Contact: Nitin Gupta <ngupta@vflare.org> | ||
59 | Description: | ||
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 | |||
65 | What: /sys/block/zram<id>/zero_pages | 71 | What: /sys/block/zram<id>/zero_pages |
66 | Date: August 2010 | 72 | Date: August 2010 |
67 | Contact: Nitin Gupta <ngupta@vflare.org> | 73 | Contact: 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 |