Linux Audio

Check our new training course

Loading...
v3.1
 1What:		/sys/block/zram<id>/disksize
 2Date:		August 2010
 3Contact:	Nitin Gupta <ngupta@vflare.org>
 4Description:
 5		The disksize file is read-write and specifies the disk size
 6		which represents the limit on the *uncompressed* worth of data
 7		that can be stored in this disk.
 
 8
 9What:		/sys/block/zram<id>/initstate
10Date:		August 2010
11Contact:	Nitin Gupta <ngupta@vflare.org>
12Description:
13		The disksize file is read-only and shows the initialization
14		state of the device.
15
16What:		/sys/block/zram<id>/reset
17Date:		August 2010
18Contact:	Nitin Gupta <ngupta@vflare.org>
19Description:
20		The disksize file is write-only and allows resetting the
21		device. The reset operation frees all the memory assocaited
22		with this device.
23
24What:		/sys/block/zram<id>/num_reads
25Date:		August 2010
26Contact:	Nitin Gupta <ngupta@vflare.org>
27Description:
28		The num_reads file is read-only and specifies the number of
29		reads (failed or successful) done on this device.
30
31What:		/sys/block/zram<id>/num_writes
32Date:		August 2010
33Contact:	Nitin Gupta <ngupta@vflare.org>
34Description:
35		The num_writes file is read-only and specifies the number of
36		writes (failed or successful) done on this device.
37
38What:		/sys/block/zram<id>/invalid_io
39Date:		August 2010
40Contact:	Nitin Gupta <ngupta@vflare.org>
41Description:
42		The invalid_io file is read-only and specifies the number of
43		non-page-size-aligned I/O requests issued to this device.
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45What:		/sys/block/zram<id>/notify_free
46Date:		August 2010
47Contact:	Nitin Gupta <ngupta@vflare.org>
48Description:
49		The notify_free file is read-only and specifies the number of
50		swap slot free notifications received by this device. These
51		notifications are send to a swap block device when a swap slot
52		is freed. This statistic is applicable only when this disk is
53		being used as a swap disk.
54
55What:		/sys/block/zram<id>/discard
56Date:		August 2010
57Contact:	Nitin Gupta <ngupta@vflare.org>
58Description:
59		The discard file is read-only and specifies the number of
60		discard requests received by this device. These requests
61		provide information to block device regarding blocks which are
62		no longer used by filesystem.
63
64What:		/sys/block/zram<id>/zero_pages
65Date:		August 2010
66Contact:	Nitin Gupta <ngupta@vflare.org>
67Description:
68		The zero_pages file is read-only and specifies number of zero
69		filled pages written to this disk. No memory is allocated for
70		such pages.
71
72What:		/sys/block/zram<id>/orig_data_size
73Date:		August 2010
74Contact:	Nitin Gupta <ngupta@vflare.org>
75Description:
76		The orig_data_size file is read-only and specifies uncompressed
77		size of data stored in this disk. This excludes zero-filled
78		pages (zero_pages) since no memory is allocated for them.
79		Unit: bytes
80
81What:		/sys/block/zram<id>/compr_data_size
82Date:		August 2010
83Contact:	Nitin Gupta <ngupta@vflare.org>
84Description:
85		The compr_data_size file is read-only and specifies compressed
86		size of data stored in this disk. So, compression ratio can be
87		calculated using orig_data_size and this statistic.
88		Unit: bytes
89
90What:		/sys/block/zram<id>/mem_used_total
91Date:		August 2010
92Contact:	Nitin Gupta <ngupta@vflare.org>
93Description:
94		The mem_used_total file is read-only and specifies the amount
95		of memory, including allocator fragmentation and metadata
96		overhead, allocated for this disk. So, allocator space
97		efficiency can be calculated using compr_data_size and this
98		statistic.
99		Unit: bytes
v3.15
  1What:		/sys/block/zram<id>/disksize
  2Date:		August 2010
  3Contact:	Nitin Gupta <ngupta@vflare.org>
  4Description:
  5		The disksize file is read-write and specifies the disk size
  6		which represents the limit on the *uncompressed* worth of data
  7		that can be stored in this disk.
  8		Unit: bytes
  9
 10What:		/sys/block/zram<id>/initstate
 11Date:		August 2010
 12Contact:	Nitin Gupta <ngupta@vflare.org>
 13Description:
 14		The initstate file is read-only and shows the initialization
 15		state of the device.
 16
 17What:		/sys/block/zram<id>/reset
 18Date:		August 2010
 19Contact:	Nitin Gupta <ngupta@vflare.org>
 20Description:
 21		The reset file is write-only and allows resetting the
 22		device. The reset operation frees all the memory associated
 23		with this device.
 24
 25What:		/sys/block/zram<id>/num_reads
 26Date:		August 2010
 27Contact:	Nitin Gupta <ngupta@vflare.org>
 28Description:
 29		The num_reads file is read-only and specifies the number of
 30		reads (failed or successful) done on this device.
 31
 32What:		/sys/block/zram<id>/num_writes
 33Date:		August 2010
 34Contact:	Nitin Gupta <ngupta@vflare.org>
 35Description:
 36		The num_writes file is read-only and specifies the number of
 37		writes (failed or successful) done on this device.
 38
 39What:		/sys/block/zram<id>/invalid_io
 40Date:		August 2010
 41Contact:	Nitin Gupta <ngupta@vflare.org>
 42Description:
 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.
 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
 53What:		/sys/block/zram<id>/failed_writes
 54Date:		February 2014
 55Contact:	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
 56Description:
 57		The failed_writes file is read-only and specifies the number of
 58		failed writes happened on this device.
 59
 60What:		/sys/block/zram<id>/max_comp_streams
 61Date:		February 2014
 62Contact:	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
 63Description:
 64		The max_comp_streams file is read-write and specifies the
 65		number of backend's zcomp_strm compression streams (number of
 66		concurrent compress operations).
 67
 68What:		/sys/block/zram<id>/comp_algorithm
 69Date:		February 2014
 70Contact:	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
 71Description:
 72		The comp_algorithm file is read-write and lets to show
 73		available and selected compression algorithms, change
 74		compression algorithm selection.
 75
 76What:		/sys/block/zram<id>/notify_free
 77Date:		August 2010
 78Contact:	Nitin Gupta <ngupta@vflare.org>
 79Description:
 80		The notify_free file is read-only and specifies the number of
 81		swap slot free notifications received by this device. These
 82		notifications are sent to a swap block device when a swap slot
 83		is freed. This statistic is applicable only when this disk is
 84		being used as a swap disk.
 85
 
 
 
 
 
 
 
 
 
 86What:		/sys/block/zram<id>/zero_pages
 87Date:		August 2010
 88Contact:	Nitin Gupta <ngupta@vflare.org>
 89Description:
 90		The zero_pages file is read-only and specifies number of zero
 91		filled pages written to this disk. No memory is allocated for
 92		such pages.
 93
 94What:		/sys/block/zram<id>/orig_data_size
 95Date:		August 2010
 96Contact:	Nitin Gupta <ngupta@vflare.org>
 97Description:
 98		The orig_data_size file is read-only and specifies uncompressed
 99		size of data stored in this disk. This excludes zero-filled
100		pages (zero_pages) since no memory is allocated for them.
101		Unit: bytes
102
103What:		/sys/block/zram<id>/compr_data_size
104Date:		August 2010
105Contact:	Nitin Gupta <ngupta@vflare.org>
106Description:
107		The compr_data_size file is read-only and specifies compressed
108		size of data stored in this disk. So, compression ratio can be
109		calculated using orig_data_size and this statistic.
110		Unit: bytes
111
112What:		/sys/block/zram<id>/mem_used_total
113Date:		August 2010
114Contact:	Nitin Gupta <ngupta@vflare.org>
115Description:
116		The mem_used_total file is read-only and specifies the amount
117		of memory, including allocator fragmentation and metadata
118		overhead, allocated for this disk. So, allocator space
119		efficiency can be calculated using compr_data_size and this
120		statistic.
121		Unit: bytes