@@ -49,11 +49,23 @@ clone_alignment
49
49
commit_stats
50
50
(RW, since: 6.0)
51
51
52
- The performance statistics for btrfs transaction commit.
53
- Mostly for debug purposes.
52
+ The performance statistics for btrfs transaction commit since the first
53
+ mount. Mostly for debugging purposes.
54
+
55
+ Writing into this file will reset the maximum commit duration
56
+ (*max_commit_ms *) to 0. The file looks like:
57
+
58
+ .. code-block :: none
59
+
60
+ commits 70649
61
+ last_commit_ms 2
62
+ max_commit_ms 131
63
+ total_commit_ms 170840
54
64
55
- Writing into this file will reset the maximum commit duration to
56
- the input value.
65
+ * *commits * - number of transaction commits since the first mount
66
+ * *last_commit_ms * - duration in miliseconds of the last commit
67
+ * *max_commit_ms * - maximum time a transaction commit took since first mount or last reset
68
+ * *total_commit_ms * - sum of all transaction commit times
57
69
58
70
exclusive_operation
59
71
(RO, since: 5.10)
@@ -103,6 +115,12 @@ sectorsize
103
115
Shows the sectorsize of the mounted filesystem.
104
116
105
117
118
+ temp_fsid
119
+ (RO, since 6.7)
120
+
121
+ Indicate that this filesystem got assigned a temporary FSID at mount time,
122
+ making possible to mount devices with the same FSID.
123
+
106
124
Files and directories in :file: `/sys/fs/btrfs/<UUID>/allocations ` directory are:
107
125
108
126
global_rsv_reserved
@@ -130,18 +148,45 @@ bg_reclaim_threshold
130
148
permanently unusable space) to reclaim the block group.
131
149
Can be used on regular or zoned devices.
132
150
151
+ bytes_*
152
+ (RO)
153
+
154
+ Values of the corresponding data structures for the given block group
155
+ type and profile.
156
+
133
157
chunk_size
134
158
(RW, since: 6.0)
135
159
136
160
Shows the chunk size. Can be changed for data and metadata.
137
161
Cannot be set for zoned devices.
138
162
163
+ size_classes
164
+ (RO, since: 6.3)
165
+
166
+ Numbers of block groups of a given classes based on heuristics that
167
+ measure extent length, age and fragmentation.
168
+
169
+ .. code-block :: none
170
+
171
+ none 136
172
+ small 374
173
+ medium 282
174
+ large 93
175
+
139
176
Files in :file: `/sys/fs/btrfs/<UUID>/devinfo/<DEVID> ` directory are:
140
177
141
178
error_stats:
142
179
(RO, since: 5.14)
143
180
144
- Shows all the history error numbers of the device.
181
+ Shows device stats of this device, same as :command: `btrfs device stats ` (:doc: `btrfs-device `).
182
+
183
+ .. code-block :: none
184
+
185
+ write_errs 0
186
+ read_errs 0
187
+ flush_errs 0
188
+ corruption_errs 0
189
+ generation_errs 0
145
190
146
191
fsid:
147
192
(RO, since: 5.17)
@@ -171,7 +216,7 @@ scrub_speed_max
171
216
(RW, since: 5.14)
172
217
173
218
Shows the scrub speed limit for this device. The unit is Bytes/s.
174
- 0 means no limit.
219
+ 0 means no limit. The value can be set but is not persisent.
175
220
176
221
writeable
177
222
(RO, since: 5.6)
0 commit comments