]> git.proxmox.com Git - mirror_zfs.git/blob - man/man5/zfs-module-parameters.5
Implement Redacted Send/Receive
[mirror_zfs.git] / man / man5 / zfs-module-parameters.5
1 '\" te
2 .\" Copyright (c) 2013 by Turbo Fredriksson <turbo@bayour.com>. All rights reserved.
3 .\" Copyright (c) 2019 by Delphix. All rights reserved.
4 .\" Copyright (c) 2019 Datto Inc.
5 .\" The contents of this file are subject to the terms of the Common Development
6 .\" and Distribution License (the "License"). You may not use this file except
7 .\" in compliance with the License. You can obtain a copy of the license at
8 .\" usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
9 .\"
10 .\" See the License for the specific language governing permissions and
11 .\" limitations under the License. When distributing Covered Code, include this
12 .\" CDDL HEADER in each file and include the License file at
13 .\" usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this
14 .\" CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your
15 .\" own identifying information:
16 .\" Portions Copyright [yyyy] [name of copyright owner]
17 .TH ZFS-MODULE-PARAMETERS 5 "Feb 15, 2019"
18 .SH NAME
19 zfs\-module\-parameters \- ZFS module parameters
20 .SH DESCRIPTION
21 .sp
22 .LP
23 Description of the different parameters to the ZFS module.
24
25 .SS "Module parameters"
26 .sp
27 .LP
28
29 .sp
30 .ne 2
31 .na
32 \fBdbuf_cache_max_bytes\fR (ulong)
33 .ad
34 .RS 12n
35 Maximum size in bytes of the dbuf cache. When \fB0\fR this value will default
36 to \fB1/2^dbuf_cache_shift\fR (1/32) of the target ARC size, otherwise the
37 provided value in bytes will be used. The behavior of the dbuf cache and its
38 associated settings can be observed via the \fB/proc/spl/kstat/zfs/dbufstats\fR
39 kstat.
40 .sp
41 Default value: \fB0\fR.
42 .RE
43
44 .sp
45 .ne 2
46 .na
47 \fBdbuf_metadata_cache_max_bytes\fR (ulong)
48 .ad
49 .RS 12n
50 Maximum size in bytes of the metadata dbuf cache. When \fB0\fR this value will
51 default to \fB1/2^dbuf_cache_shift\fR (1/16) of the target ARC size, otherwise
52 the provided value in bytes will be used. The behavior of the metadata dbuf
53 cache and its associated settings can be observed via the
54 \fB/proc/spl/kstat/zfs/dbufstats\fR kstat.
55 .sp
56 Default value: \fB0\fR.
57 .RE
58
59 .sp
60 .ne 2
61 .na
62 \fBdbuf_cache_hiwater_pct\fR (uint)
63 .ad
64 .RS 12n
65 The percentage over \fBdbuf_cache_max_bytes\fR when dbufs must be evicted
66 directly.
67 .sp
68 Default value: \fB10\fR%.
69 .RE
70
71 .sp
72 .ne 2
73 .na
74 \fBdbuf_cache_lowater_pct\fR (uint)
75 .ad
76 .RS 12n
77 The percentage below \fBdbuf_cache_max_bytes\fR when the evict thread stops
78 evicting dbufs.
79 .sp
80 Default value: \fB10\fR%.
81 .RE
82
83 .sp
84 .ne 2
85 .na
86 \fBdbuf_cache_shift\fR (int)
87 .ad
88 .RS 12n
89 Set the size of the dbuf cache, \fBdbuf_cache_max_bytes\fR, to a log2 fraction
90 of the target arc size.
91 .sp
92 Default value: \fB5\fR.
93 .RE
94
95 .sp
96 .ne 2
97 .na
98 \fBdbuf_metadata_cache_shift\fR (int)
99 .ad
100 .RS 12n
101 Set the size of the dbuf metadata cache, \fBdbuf_metadata_cache_max_bytes\fR,
102 to a log2 fraction of the target arc size.
103 .sp
104 Default value: \fB6\fR.
105 .RE
106
107 .sp
108 .ne 2
109 .na
110 \fBdmu_prefetch_max\fR (int)
111 .ad
112 .RS 12n
113 Limit the amount we can prefetch with one call to this amount (in bytes).
114 This helps to limit the amount of memory that can be used by prefetching.
115 .sp
116 Default value: \fB134,217,728\fR (128MB).
117 .RE
118
119 .sp
120 .ne 2
121 .na
122 \fBignore_hole_birth\fR (int)
123 .ad
124 .RS 12n
125 This is an alias for \fBsend_holes_without_birth_time\fR.
126 .RE
127
128 .sp
129 .ne 2
130 .na
131 \fBl2arc_feed_again\fR (int)
132 .ad
133 .RS 12n
134 Turbo L2ARC warm-up. When the L2ARC is cold the fill interval will be set as
135 fast as possible.
136 .sp
137 Use \fB1\fR for yes (default) and \fB0\fR to disable.
138 .RE
139
140 .sp
141 .ne 2
142 .na
143 \fBl2arc_feed_min_ms\fR (ulong)
144 .ad
145 .RS 12n
146 Min feed interval in milliseconds. Requires \fBl2arc_feed_again=1\fR and only
147 applicable in related situations.
148 .sp
149 Default value: \fB200\fR.
150 .RE
151
152 .sp
153 .ne 2
154 .na
155 \fBl2arc_feed_secs\fR (ulong)
156 .ad
157 .RS 12n
158 Seconds between L2ARC writing
159 .sp
160 Default value: \fB1\fR.
161 .RE
162
163 .sp
164 .ne 2
165 .na
166 \fBl2arc_headroom\fR (ulong)
167 .ad
168 .RS 12n
169 How far through the ARC lists to search for L2ARC cacheable content, expressed
170 as a multiplier of \fBl2arc_write_max\fR
171 .sp
172 Default value: \fB2\fR.
173 .RE
174
175 .sp
176 .ne 2
177 .na
178 \fBl2arc_headroom_boost\fR (ulong)
179 .ad
180 .RS 12n
181 Scales \fBl2arc_headroom\fR by this percentage when L2ARC contents are being
182 successfully compressed before writing. A value of 100 disables this feature.
183 .sp
184 Default value: \fB200\fR%.
185 .RE
186
187 .sp
188 .ne 2
189 .na
190 \fBl2arc_noprefetch\fR (int)
191 .ad
192 .RS 12n
193 Do not write buffers to L2ARC if they were prefetched but not used by
194 applications
195 .sp
196 Use \fB1\fR for yes (default) and \fB0\fR to disable.
197 .RE
198
199 .sp
200 .ne 2
201 .na
202 \fBl2arc_norw\fR (int)
203 .ad
204 .RS 12n
205 No reads during writes
206 .sp
207 Use \fB1\fR for yes and \fB0\fR for no (default).
208 .RE
209
210 .sp
211 .ne 2
212 .na
213 \fBl2arc_write_boost\fR (ulong)
214 .ad
215 .RS 12n
216 Cold L2ARC devices will have \fBl2arc_write_max\fR increased by this amount
217 while they remain cold.
218 .sp
219 Default value: \fB8,388,608\fR.
220 .RE
221
222 .sp
223 .ne 2
224 .na
225 \fBl2arc_write_max\fR (ulong)
226 .ad
227 .RS 12n
228 Max write bytes per interval
229 .sp
230 Default value: \fB8,388,608\fR.
231 .RE
232
233 .sp
234 .ne 2
235 .na
236 \fBmetaslab_aliquot\fR (ulong)
237 .ad
238 .RS 12n
239 Metaslab granularity, in bytes. This is roughly similar to what would be
240 referred to as the "stripe size" in traditional RAID arrays. In normal
241 operation, ZFS will try to write this amount of data to a top-level vdev
242 before moving on to the next one.
243 .sp
244 Default value: \fB524,288\fR.
245 .RE
246
247 .sp
248 .ne 2
249 .na
250 \fBmetaslab_bias_enabled\fR (int)
251 .ad
252 .RS 12n
253 Enable metaslab group biasing based on its vdev's over- or under-utilization
254 relative to the pool.
255 .sp
256 Use \fB1\fR for yes (default) and \fB0\fR for no.
257 .RE
258
259 .sp
260 .ne 2
261 .na
262 \fBmetaslab_force_ganging\fR (ulong)
263 .ad
264 .RS 12n
265 Make some blocks above a certain size be gang blocks. This option is used
266 by the test suite to facilitate testing.
267 .sp
268 Default value: \fB16,777,217\fR.
269 .RE
270
271 .sp
272 .ne 2
273 .na
274 \fBzfs_metaslab_segment_weight_enabled\fR (int)
275 .ad
276 .RS 12n
277 Enable/disable segment-based metaslab selection.
278 .sp
279 Use \fB1\fR for yes (default) and \fB0\fR for no.
280 .RE
281
282 .sp
283 .ne 2
284 .na
285 \fBzfs_metaslab_switch_threshold\fR (int)
286 .ad
287 .RS 12n
288 When using segment-based metaslab selection, continue allocating
289 from the active metaslab until \fBzfs_metaslab_switch_threshold\fR
290 worth of buckets have been exhausted.
291 .sp
292 Default value: \fB2\fR.
293 .RE
294
295 .sp
296 .ne 2
297 .na
298 \fBmetaslab_debug_load\fR (int)
299 .ad
300 .RS 12n
301 Load all metaslabs during pool import.
302 .sp
303 Use \fB1\fR for yes and \fB0\fR for no (default).
304 .RE
305
306 .sp
307 .ne 2
308 .na
309 \fBmetaslab_debug_unload\fR (int)
310 .ad
311 .RS 12n
312 Prevent metaslabs from being unloaded.
313 .sp
314 Use \fB1\fR for yes and \fB0\fR for no (default).
315 .RE
316
317 .sp
318 .ne 2
319 .na
320 \fBmetaslab_fragmentation_factor_enabled\fR (int)
321 .ad
322 .RS 12n
323 Enable use of the fragmentation metric in computing metaslab weights.
324 .sp
325 Use \fB1\fR for yes (default) and \fB0\fR for no.
326 .RE
327
328 .sp
329 .ne 2
330 .na
331 \fBmetaslab_df_max_search\fR (int)
332 .ad
333 .RS 12n
334 Maximum distance to search forward from the last offset. Without this limit,
335 fragmented pools can see >100,000 iterations and metaslab_block_picker()
336 becomes the performance limiting factor on high-performance storage.
337
338 With the default setting of 16MB, we typically see less than 500 iterations,
339 even with very fragmented, ashift=9 pools. The maximum number of iterations
340 possible is: \fBmetaslab_df_max_search / (2 * (1<<ashift))\fR.
341 With the default setting of 16MB this is 16*1024 (with ashift=9) or 2048
342 (with ashift=12).
343 .sp
344 Default value: \fB16,777,216\fR (16MB)
345 .RE
346
347 .sp
348 .ne 2
349 .na
350 \fBmetaslab_df_use_largest_segment\fR (int)
351 .ad
352 .RS 12n
353 If we are not searching forward (due to metaslab_df_max_search,
354 metaslab_df_free_pct, or metaslab_df_alloc_threshold), this tunable controls
355 what segment is used. If it is set, we will use the largest free segment.
356 If it is not set, we will use a segment of exactly the requested size (or
357 larger).
358 .sp
359 Use \fB1\fR for yes and \fB0\fR for no (default).
360 .RE
361
362 .sp
363 .ne 2
364 .na
365 \fBzfs_vdev_default_ms_count\fR (int)
366 .ad
367 .RS 12n
368 When a vdev is added target this number of metaslabs per top-level vdev.
369 .sp
370 Default value: \fB200\fR.
371 .RE
372
373 .sp
374 .ne 2
375 .na
376 \fBzfs_vdev_min_ms_count\fR (int)
377 .ad
378 .RS 12n
379 Minimum number of metaslabs to create in a top-level vdev.
380 .sp
381 Default value: \fB16\fR.
382 .RE
383
384 .sp
385 .ne 2
386 .na
387 \fBvdev_ms_count_limit\fR (int)
388 .ad
389 .RS 12n
390 Practical upper limit of total metaslabs per top-level vdev.
391 .sp
392 Default value: \fB131,072\fR.
393 .RE
394
395 .sp
396 .ne 2
397 .na
398 \fBmetaslab_preload_enabled\fR (int)
399 .ad
400 .RS 12n
401 Enable metaslab group preloading.
402 .sp
403 Use \fB1\fR for yes (default) and \fB0\fR for no.
404 .RE
405
406 .sp
407 .ne 2
408 .na
409 \fBmetaslab_lba_weighting_enabled\fR (int)
410 .ad
411 .RS 12n
412 Give more weight to metaslabs with lower LBAs, assuming they have
413 greater bandwidth as is typically the case on a modern constant
414 angular velocity disk drive.
415 .sp
416 Use \fB1\fR for yes (default) and \fB0\fR for no.
417 .RE
418
419 .sp
420 .ne 2
421 .na
422 \fBsend_holes_without_birth_time\fR (int)
423 .ad
424 .RS 12n
425 When set, the hole_birth optimization will not be used, and all holes will
426 always be sent on zfs send. This is useful if you suspect your datasets are
427 affected by a bug in hole_birth.
428 .sp
429 Use \fB1\fR for on (default) and \fB0\fR for off.
430 .RE
431
432 .sp
433 .ne 2
434 .na
435 \fBspa_config_path\fR (charp)
436 .ad
437 .RS 12n
438 SPA config file
439 .sp
440 Default value: \fB/etc/zfs/zpool.cache\fR.
441 .RE
442
443 .sp
444 .ne 2
445 .na
446 \fBspa_asize_inflation\fR (int)
447 .ad
448 .RS 12n
449 Multiplication factor used to estimate actual disk consumption from the
450 size of data being written. The default value is a worst case estimate,
451 but lower values may be valid for a given pool depending on its
452 configuration. Pool administrators who understand the factors involved
453 may wish to specify a more realistic inflation factor, particularly if
454 they operate close to quota or capacity limits.
455 .sp
456 Default value: \fB24\fR.
457 .RE
458
459 .sp
460 .ne 2
461 .na
462 \fBspa_load_print_vdev_tree\fR (int)
463 .ad
464 .RS 12n
465 Whether to print the vdev tree in the debugging message buffer during pool import.
466 Use 0 to disable and 1 to enable.
467 .sp
468 Default value: \fB0\fR.
469 .RE
470
471 .sp
472 .ne 2
473 .na
474 \fBspa_load_verify_data\fR (int)
475 .ad
476 .RS 12n
477 Whether to traverse data blocks during an "extreme rewind" (\fB-X\fR)
478 import. Use 0 to disable and 1 to enable.
479
480 An extreme rewind import normally performs a full traversal of all
481 blocks in the pool for verification. If this parameter is set to 0,
482 the traversal skips non-metadata blocks. It can be toggled once the
483 import has started to stop or start the traversal of non-metadata blocks.
484 .sp
485 Default value: \fB1\fR.
486 .RE
487
488 .sp
489 .ne 2
490 .na
491 \fBspa_load_verify_metadata\fR (int)
492 .ad
493 .RS 12n
494 Whether to traverse blocks during an "extreme rewind" (\fB-X\fR)
495 pool import. Use 0 to disable and 1 to enable.
496
497 An extreme rewind import normally performs a full traversal of all
498 blocks in the pool for verification. If this parameter is set to 0,
499 the traversal is not performed. It can be toggled once the import has
500 started to stop or start the traversal.
501 .sp
502 Default value: \fB1\fR.
503 .RE
504
505 .sp
506 .ne 2
507 .na
508 \fBspa_load_verify_maxinflight\fR (int)
509 .ad
510 .RS 12n
511 Maximum concurrent I/Os during the traversal performed during an "extreme
512 rewind" (\fB-X\fR) pool import.
513 .sp
514 Default value: \fB10000\fR.
515 .RE
516
517 .sp
518 .ne 2
519 .na
520 \fBspa_slop_shift\fR (int)
521 .ad
522 .RS 12n
523 Normally, we don't allow the last 3.2% (1/(2^spa_slop_shift)) of space
524 in the pool to be consumed. This ensures that we don't run the pool
525 completely out of space, due to unaccounted changes (e.g. to the MOS).
526 It also limits the worst-case time to allocate space. If we have
527 less than this amount of free space, most ZPL operations (e.g. write,
528 create) will return ENOSPC.
529 .sp
530 Default value: \fB5\fR.
531 .RE
532
533 .sp
534 .ne 2
535 .na
536 \fBvdev_removal_max_span\fR (int)
537 .ad
538 .RS 12n
539 During top-level vdev removal, chunks of data are copied from the vdev
540 which may include free space in order to trade bandwidth for IOPS.
541 This parameter determines the maximum span of free space (in bytes)
542 which will be included as "unnecessary" data in a chunk of copied data.
543
544 The default value here was chosen to align with
545 \fBzfs_vdev_read_gap_limit\fR, which is a similar concept when doing
546 regular reads (but there's no reason it has to be the same).
547 .sp
548 Default value: \fB32,768\fR.
549 .RE
550
551 .sp
552 .ne 2
553 .na
554 \fBzap_iterate_prefetch\fR (int)
555 .ad
556 .RS 12n
557 If this is set, when we start iterating over a ZAP object, zfs will prefetch
558 the entire object (all leaf blocks). However, this is limited by
559 \fBdmu_prefetch_max\fR.
560 .sp
561 Use \fB1\fR for on (default) and \fB0\fR for off.
562 .RE
563
564 .sp
565 .ne 2
566 .na
567 \fBzfetch_array_rd_sz\fR (ulong)
568 .ad
569 .RS 12n
570 If prefetching is enabled, disable prefetching for reads larger than this size.
571 .sp
572 Default value: \fB1,048,576\fR.
573 .RE
574
575 .sp
576 .ne 2
577 .na
578 \fBzfetch_max_distance\fR (uint)
579 .ad
580 .RS 12n
581 Max bytes to prefetch per stream (default 8MB).
582 .sp
583 Default value: \fB8,388,608\fR.
584 .RE
585
586 .sp
587 .ne 2
588 .na
589 \fBzfetch_max_streams\fR (uint)
590 .ad
591 .RS 12n
592 Max number of streams per zfetch (prefetch streams per file).
593 .sp
594 Default value: \fB8\fR.
595 .RE
596
597 .sp
598 .ne 2
599 .na
600 \fBzfetch_min_sec_reap\fR (uint)
601 .ad
602 .RS 12n
603 Min time before an active prefetch stream can be reclaimed
604 .sp
605 Default value: \fB2\fR.
606 .RE
607
608 .sp
609 .ne 2
610 .na
611 \fBzfs_abd_scatter_min_size\fR (uint)
612 .ad
613 .RS 12n
614 This is the minimum allocation size that will use scatter (page-based)
615 ABD's. Smaller allocations will use linear ABD's.
616 .sp
617 Default value: \fB1536\fR (512B and 1KB allocations will be linear).
618 .RE
619
620 .sp
621 .ne 2
622 .na
623 \fBzfs_arc_dnode_limit\fR (ulong)
624 .ad
625 .RS 12n
626 When the number of bytes consumed by dnodes in the ARC exceeds this number of
627 bytes, try to unpin some of it in response to demand for non-metadata. This
628 value acts as a ceiling to the amount of dnode metadata, and defaults to 0 which
629 indicates that a percent which is based on \fBzfs_arc_dnode_limit_percent\fR of
630 the ARC meta buffers that may be used for dnodes.
631
632 See also \fBzfs_arc_meta_prune\fR which serves a similar purpose but is used
633 when the amount of metadata in the ARC exceeds \fBzfs_arc_meta_limit\fR rather
634 than in response to overall demand for non-metadata.
635
636 .sp
637 Default value: \fB0\fR.
638 .RE
639
640 .sp
641 .ne 2
642 .na
643 \fBzfs_arc_dnode_limit_percent\fR (ulong)
644 .ad
645 .RS 12n
646 Percentage that can be consumed by dnodes of ARC meta buffers.
647 .sp
648 See also \fBzfs_arc_dnode_limit\fR which serves a similar purpose but has a
649 higher priority if set to nonzero value.
650 .sp
651 Default value: \fB10\fR%.
652 .RE
653
654 .sp
655 .ne 2
656 .na
657 \fBzfs_arc_dnode_reduce_percent\fR (ulong)
658 .ad
659 .RS 12n
660 Percentage of ARC dnodes to try to scan in response to demand for non-metadata
661 when the number of bytes consumed by dnodes exceeds \fBzfs_arc_dnode_limit\fR.
662
663 .sp
664 Default value: \fB10\fR% of the number of dnodes in the ARC.
665 .RE
666
667 .sp
668 .ne 2
669 .na
670 \fBzfs_arc_average_blocksize\fR (int)
671 .ad
672 .RS 12n
673 The ARC's buffer hash table is sized based on the assumption of an average
674 block size of \fBzfs_arc_average_blocksize\fR (default 8K). This works out
675 to roughly 1MB of hash table per 1GB of physical memory with 8-byte pointers.
676 For configurations with a known larger average block size this value can be
677 increased to reduce the memory footprint.
678
679 .sp
680 Default value: \fB8192\fR.
681 .RE
682
683 .sp
684 .ne 2
685 .na
686 \fBzfs_arc_evict_batch_limit\fR (int)
687 .ad
688 .RS 12n
689 Number ARC headers to evict per sub-list before proceeding to another sub-list.
690 This batch-style operation prevents entire sub-lists from being evicted at once
691 but comes at a cost of additional unlocking and locking.
692 .sp
693 Default value: \fB10\fR.
694 .RE
695
696 .sp
697 .ne 2
698 .na
699 \fBzfs_arc_grow_retry\fR (int)
700 .ad
701 .RS 12n
702 If set to a non zero value, it will replace the arc_grow_retry value with this value.
703 The arc_grow_retry value (default 5) is the number of seconds the ARC will wait before
704 trying to resume growth after a memory pressure event.
705 .sp
706 Default value: \fB0\fR.
707 .RE
708
709 .sp
710 .ne 2
711 .na
712 \fBzfs_arc_lotsfree_percent\fR (int)
713 .ad
714 .RS 12n
715 Throttle I/O when free system memory drops below this percentage of total
716 system memory. Setting this value to 0 will disable the throttle.
717 .sp
718 Default value: \fB10\fR%.
719 .RE
720
721 .sp
722 .ne 2
723 .na
724 \fBzfs_arc_max\fR (ulong)
725 .ad
726 .RS 12n
727 Max arc size of ARC in bytes. If set to 0 then it will consume 1/2 of system
728 RAM. This value must be at least 67108864 (64 megabytes).
729 .sp
730 This value can be changed dynamically with some caveats. It cannot be set back
731 to 0 while running and reducing it below the current ARC size will not cause
732 the ARC to shrink without memory pressure to induce shrinking.
733 .sp
734 Default value: \fB0\fR.
735 .RE
736
737 .sp
738 .ne 2
739 .na
740 \fBzfs_arc_meta_adjust_restarts\fR (ulong)
741 .ad
742 .RS 12n
743 The number of restart passes to make while scanning the ARC attempting
744 the free buffers in order to stay below the \fBzfs_arc_meta_limit\fR.
745 This value should not need to be tuned but is available to facilitate
746 performance analysis.
747 .sp
748 Default value: \fB4096\fR.
749 .RE
750
751 .sp
752 .ne 2
753 .na
754 \fBzfs_arc_meta_limit\fR (ulong)
755 .ad
756 .RS 12n
757 The maximum allowed size in bytes that meta data buffers are allowed to
758 consume in the ARC. When this limit is reached meta data buffers will
759 be reclaimed even if the overall arc_c_max has not been reached. This
760 value defaults to 0 which indicates that a percent which is based on
761 \fBzfs_arc_meta_limit_percent\fR of the ARC may be used for meta data.
762 .sp
763 This value my be changed dynamically except that it cannot be set back to 0
764 for a specific percent of the ARC; it must be set to an explicit value.
765 .sp
766 Default value: \fB0\fR.
767 .RE
768
769 .sp
770 .ne 2
771 .na
772 \fBzfs_arc_meta_limit_percent\fR (ulong)
773 .ad
774 .RS 12n
775 Percentage of ARC buffers that can be used for meta data.
776
777 See also \fBzfs_arc_meta_limit\fR which serves a similar purpose but has a
778 higher priority if set to nonzero value.
779
780 .sp
781 Default value: \fB75\fR%.
782 .RE
783
784 .sp
785 .ne 2
786 .na
787 \fBzfs_arc_meta_min\fR (ulong)
788 .ad
789 .RS 12n
790 The minimum allowed size in bytes that meta data buffers may consume in
791 the ARC. This value defaults to 0 which disables a floor on the amount
792 of the ARC devoted meta data.
793 .sp
794 Default value: \fB0\fR.
795 .RE
796
797 .sp
798 .ne 2
799 .na
800 \fBzfs_arc_meta_prune\fR (int)
801 .ad
802 .RS 12n
803 The number of dentries and inodes to be scanned looking for entries
804 which can be dropped. This may be required when the ARC reaches the
805 \fBzfs_arc_meta_limit\fR because dentries and inodes can pin buffers
806 in the ARC. Increasing this value will cause to dentry and inode caches
807 to be pruned more aggressively. Setting this value to 0 will disable
808 pruning the inode and dentry caches.
809 .sp
810 Default value: \fB10,000\fR.
811 .RE
812
813 .sp
814 .ne 2
815 .na
816 \fBzfs_arc_meta_strategy\fR (int)
817 .ad
818 .RS 12n
819 Define the strategy for ARC meta data buffer eviction (meta reclaim strategy).
820 A value of 0 (META_ONLY) will evict only the ARC meta data buffers.
821 A value of 1 (BALANCED) indicates that additional data buffers may be evicted if
822 that is required to in order to evict the required number of meta data buffers.
823 .sp
824 Default value: \fB1\fR.
825 .RE
826
827 .sp
828 .ne 2
829 .na
830 \fBzfs_arc_min\fR (ulong)
831 .ad
832 .RS 12n
833 Min arc size of ARC in bytes. If set to 0 then arc_c_min will default to
834 consuming the larger of 32M or 1/32 of total system memory.
835 .sp
836 Default value: \fB0\fR.
837 .RE
838
839 .sp
840 .ne 2
841 .na
842 \fBzfs_arc_min_prefetch_ms\fR (int)
843 .ad
844 .RS 12n
845 Minimum time prefetched blocks are locked in the ARC, specified in ms.
846 A value of \fB0\fR will default to 1000 ms.
847 .sp
848 Default value: \fB0\fR.
849 .RE
850
851 .sp
852 .ne 2
853 .na
854 \fBzfs_arc_min_prescient_prefetch_ms\fR (int)
855 .ad
856 .RS 12n
857 Minimum time "prescient prefetched" blocks are locked in the ARC, specified
858 in ms. These blocks are meant to be prefetched fairly aggresively ahead of
859 the code that may use them. A value of \fB0\fR will default to 6000 ms.
860 .sp
861 Default value: \fB0\fR.
862 .RE
863
864 .sp
865 .ne 2
866 .na
867 \fBzfs_max_missing_tvds\fR (int)
868 .ad
869 .RS 12n
870 Number of missing top-level vdevs which will be allowed during
871 pool import (only in read-only mode).
872 .sp
873 Default value: \fB0\fR
874 .RE
875
876 .sp
877 .ne 2
878 .na
879 \fBzfs_multilist_num_sublists\fR (int)
880 .ad
881 .RS 12n
882 To allow more fine-grained locking, each ARC state contains a series
883 of lists for both data and meta data objects. Locking is performed at
884 the level of these "sub-lists". This parameters controls the number of
885 sub-lists per ARC state, and also applies to other uses of the
886 multilist data structure.
887 .sp
888 Default value: \fB4\fR or the number of online CPUs, whichever is greater
889 .RE
890
891 .sp
892 .ne 2
893 .na
894 \fBzfs_arc_overflow_shift\fR (int)
895 .ad
896 .RS 12n
897 The ARC size is considered to be overflowing if it exceeds the current
898 ARC target size (arc_c) by a threshold determined by this parameter.
899 The threshold is calculated as a fraction of arc_c using the formula
900 "arc_c >> \fBzfs_arc_overflow_shift\fR".
901
902 The default value of 8 causes the ARC to be considered to be overflowing
903 if it exceeds the target size by 1/256th (0.3%) of the target size.
904
905 When the ARC is overflowing, new buffer allocations are stalled until
906 the reclaim thread catches up and the overflow condition no longer exists.
907 .sp
908 Default value: \fB8\fR.
909 .RE
910
911 .sp
912 .ne 2
913 .na
914
915 \fBzfs_arc_p_min_shift\fR (int)
916 .ad
917 .RS 12n
918 If set to a non zero value, this will update arc_p_min_shift (default 4)
919 with the new value.
920 arc_p_min_shift is used to shift of arc_c for calculating both min and max
921 max arc_p
922 .sp
923 Default value: \fB0\fR.
924 .RE
925
926 .sp
927 .ne 2
928 .na
929 \fBzfs_arc_p_dampener_disable\fR (int)
930 .ad
931 .RS 12n
932 Disable arc_p adapt dampener
933 .sp
934 Use \fB1\fR for yes (default) and \fB0\fR to disable.
935 .RE
936
937 .sp
938 .ne 2
939 .na
940 \fBzfs_arc_shrink_shift\fR (int)
941 .ad
942 .RS 12n
943 If set to a non zero value, this will update arc_shrink_shift (default 7)
944 with the new value.
945 .sp
946 Default value: \fB0\fR.
947 .RE
948
949 .sp
950 .ne 2
951 .na
952 \fBzfs_arc_pc_percent\fR (uint)
953 .ad
954 .RS 12n
955 Percent of pagecache to reclaim arc to
956
957 This tunable allows ZFS arc to play more nicely with the kernel's LRU
958 pagecache. It can guarantee that the arc size won't collapse under scanning
959 pressure on the pagecache, yet still allows arc to be reclaimed down to
960 zfs_arc_min if necessary. This value is specified as percent of pagecache
961 size (as measured by NR_FILE_PAGES) where that percent may exceed 100. This
962 only operates during memory pressure/reclaim.
963 .sp
964 Default value: \fB0\fR% (disabled).
965 .RE
966
967 .sp
968 .ne 2
969 .na
970 \fBzfs_arc_sys_free\fR (ulong)
971 .ad
972 .RS 12n
973 The target number of bytes the ARC should leave as free memory on the system.
974 Defaults to the larger of 1/64 of physical memory or 512K. Setting this
975 option to a non-zero value will override the default.
976 .sp
977 Default value: \fB0\fR.
978 .RE
979
980 .sp
981 .ne 2
982 .na
983 \fBzfs_autoimport_disable\fR (int)
984 .ad
985 .RS 12n
986 Disable pool import at module load by ignoring the cache file (typically \fB/etc/zfs/zpool.cache\fR).
987 .sp
988 Use \fB1\fR for yes (default) and \fB0\fR for no.
989 .RE
990
991 .sp
992 .ne 2
993 .na
994 \fBzfs_checksums_per_second\fR (int)
995 .ad
996 .RS 12n
997 Rate limit checksum events to this many per second. Note that this should
998 not be set below the zed thresholds (currently 10 checksums over 10 sec)
999 or else zed may not trigger any action.
1000 .sp
1001 Default value: 20
1002 .RE
1003
1004 .sp
1005 .ne 2
1006 .na
1007 \fBzfs_commit_timeout_pct\fR (int)
1008 .ad
1009 .RS 12n
1010 This controls the amount of time that a ZIL block (lwb) will remain "open"
1011 when it isn't "full", and it has a thread waiting for it to be committed to
1012 stable storage. The timeout is scaled based on a percentage of the last lwb
1013 latency to avoid significantly impacting the latency of each individual
1014 transaction record (itx).
1015 .sp
1016 Default value: \fB5\fR%.
1017 .RE
1018
1019 .sp
1020 .ne 2
1021 .na
1022 \fBzfs_condense_indirect_vdevs_enable\fR (int)
1023 .ad
1024 .RS 12n
1025 Enable condensing indirect vdev mappings. When set to a non-zero value,
1026 attempt to condense indirect vdev mappings if the mapping uses more than
1027 \fBzfs_condense_min_mapping_bytes\fR bytes of memory and if the obsolete
1028 space map object uses more than \fBzfs_condense_max_obsolete_bytes\fR
1029 bytes on-disk. The condensing process is an attempt to save memory by
1030 removing obsolete mappings.
1031 .sp
1032 Default value: \fB1\fR.
1033 .RE
1034
1035 .sp
1036 .ne 2
1037 .na
1038 \fBzfs_condense_max_obsolete_bytes\fR (ulong)
1039 .ad
1040 .RS 12n
1041 Only attempt to condense indirect vdev mappings if the on-disk size
1042 of the obsolete space map object is greater than this number of bytes
1043 (see \fBfBzfs_condense_indirect_vdevs_enable\fR).
1044 .sp
1045 Default value: \fB1,073,741,824\fR.
1046 .RE
1047
1048 .sp
1049 .ne 2
1050 .na
1051 \fBzfs_condense_min_mapping_bytes\fR (ulong)
1052 .ad
1053 .RS 12n
1054 Minimum size vdev mapping to attempt to condense (see
1055 \fBzfs_condense_indirect_vdevs_enable\fR).
1056 .sp
1057 Default value: \fB131,072\fR.
1058 .RE
1059
1060 .sp
1061 .ne 2
1062 .na
1063 \fBzfs_dbgmsg_enable\fR (int)
1064 .ad
1065 .RS 12n
1066 Internally ZFS keeps a small log to facilitate debugging. By default the log
1067 is disabled, to enable it set this option to 1. The contents of the log can
1068 be accessed by reading the /proc/spl/kstat/zfs/dbgmsg file. Writing 0 to
1069 this proc file clears the log.
1070 .sp
1071 Default value: \fB0\fR.
1072 .RE
1073
1074 .sp
1075 .ne 2
1076 .na
1077 \fBzfs_dbgmsg_maxsize\fR (int)
1078 .ad
1079 .RS 12n
1080 The maximum size in bytes of the internal ZFS debug log.
1081 .sp
1082 Default value: \fB4M\fR.
1083 .RE
1084
1085 .sp
1086 .ne 2
1087 .na
1088 \fBzfs_dbuf_state_index\fR (int)
1089 .ad
1090 .RS 12n
1091 This feature is currently unused. It is normally used for controlling what
1092 reporting is available under /proc/spl/kstat/zfs.
1093 .sp
1094 Default value: \fB0\fR.
1095 .RE
1096
1097 .sp
1098 .ne 2
1099 .na
1100 \fBzfs_deadman_enabled\fR (int)
1101 .ad
1102 .RS 12n
1103 When a pool sync operation takes longer than \fBzfs_deadman_synctime_ms\fR
1104 milliseconds, or when an individual I/O takes longer than
1105 \fBzfs_deadman_ziotime_ms\fR milliseconds, then the operation is considered to
1106 be "hung". If \fBzfs_deadman_enabled\fR is set then the deadman behavior is
1107 invoked as described by the \fBzfs_deadman_failmode\fR module option.
1108 By default the deadman is enabled and configured to \fBwait\fR which results
1109 in "hung" I/Os only being logged. The deadman is automatically disabled
1110 when a pool gets suspended.
1111 .sp
1112 Default value: \fB1\fR.
1113 .RE
1114
1115 .sp
1116 .ne 2
1117 .na
1118 \fBzfs_deadman_failmode\fR (charp)
1119 .ad
1120 .RS 12n
1121 Controls the failure behavior when the deadman detects a "hung" I/O. Valid
1122 values are \fBwait\fR, \fBcontinue\fR, and \fBpanic\fR.
1123 .sp
1124 \fBwait\fR - Wait for a "hung" I/O to complete. For each "hung" I/O a
1125 "deadman" event will be posted describing that I/O.
1126 .sp
1127 \fBcontinue\fR - Attempt to recover from a "hung" I/O by re-dispatching it
1128 to the I/O pipeline if possible.
1129 .sp
1130 \fBpanic\fR - Panic the system. This can be used to facilitate an automatic
1131 fail-over to a properly configured fail-over partner.
1132 .sp
1133 Default value: \fBwait\fR.
1134 .RE
1135
1136 .sp
1137 .ne 2
1138 .na
1139 \fBzfs_deadman_checktime_ms\fR (int)
1140 .ad
1141 .RS 12n
1142 Check time in milliseconds. This defines the frequency at which we check
1143 for hung I/O and potentially invoke the \fBzfs_deadman_failmode\fR behavior.
1144 .sp
1145 Default value: \fB60,000\fR.
1146 .RE
1147
1148 .sp
1149 .ne 2
1150 .na
1151 \fBzfs_deadman_synctime_ms\fR (ulong)
1152 .ad
1153 .RS 12n
1154 Interval in milliseconds after which the deadman is triggered and also
1155 the interval after which a pool sync operation is considered to be "hung".
1156 Once this limit is exceeded the deadman will be invoked every
1157 \fBzfs_deadman_checktime_ms\fR milliseconds until the pool sync completes.
1158 .sp
1159 Default value: \fB600,000\fR.
1160 .RE
1161
1162 .sp
1163 .ne 2
1164 .na
1165 \fBzfs_deadman_ziotime_ms\fR (ulong)
1166 .ad
1167 .RS 12n
1168 Interval in milliseconds after which the deadman is triggered and an
1169 individual I/O operation is considered to be "hung". As long as the I/O
1170 remains "hung" the deadman will be invoked every \fBzfs_deadman_checktime_ms\fR
1171 milliseconds until the I/O completes.
1172 .sp
1173 Default value: \fB300,000\fR.
1174 .RE
1175
1176 .sp
1177 .ne 2
1178 .na
1179 \fBzfs_dedup_prefetch\fR (int)
1180 .ad
1181 .RS 12n
1182 Enable prefetching dedup-ed blks
1183 .sp
1184 Use \fB1\fR for yes and \fB0\fR to disable (default).
1185 .RE
1186
1187 .sp
1188 .ne 2
1189 .na
1190 \fBzfs_delay_min_dirty_percent\fR (int)
1191 .ad
1192 .RS 12n
1193 Start to delay each transaction once there is this amount of dirty data,
1194 expressed as a percentage of \fBzfs_dirty_data_max\fR.
1195 This value should be >= zfs_vdev_async_write_active_max_dirty_percent.
1196 See the section "ZFS TRANSACTION DELAY".
1197 .sp
1198 Default value: \fB60\fR%.
1199 .RE
1200
1201 .sp
1202 .ne 2
1203 .na
1204 \fBzfs_delay_scale\fR (int)
1205 .ad
1206 .RS 12n
1207 This controls how quickly the transaction delay approaches infinity.
1208 Larger values cause longer delays for a given amount of dirty data.
1209 .sp
1210 For the smoothest delay, this value should be about 1 billion divided
1211 by the maximum number of operations per second. This will smoothly
1212 handle between 10x and 1/10th this number.
1213 .sp
1214 See the section "ZFS TRANSACTION DELAY".
1215 .sp
1216 Note: \fBzfs_delay_scale\fR * \fBzfs_dirty_data_max\fR must be < 2^64.
1217 .sp
1218 Default value: \fB500,000\fR.
1219 .RE
1220
1221 .sp
1222 .ne 2
1223 .na
1224 \fBzfs_slow_io_events_per_second\fR (int)
1225 .ad
1226 .RS 12n
1227 Rate limit delay zevents (which report slow I/Os) to this many per second.
1228 .sp
1229 Default value: 20
1230 .RE
1231
1232 .sp
1233 .ne 2
1234 .na
1235 \fBzfs_unlink_suspend_progress\fR (uint)
1236 .ad
1237 .RS 12n
1238 When enabled, files will not be asynchronously removed from the list of pending
1239 unlinks and the space they consume will be leaked. Once this option has been
1240 disabled and the dataset is remounted, the pending unlinks will be processed
1241 and the freed space returned to the pool.
1242 This option is used by the test suite to facilitate testing.
1243 .sp
1244 Uses \fB0\fR (default) to allow progress and \fB1\fR to pause progress.
1245 .RE
1246
1247 .sp
1248 .ne 2
1249 .na
1250 \fBzfs_delete_blocks\fR (ulong)
1251 .ad
1252 .RS 12n
1253 This is the used to define a large file for the purposes of delete. Files
1254 containing more than \fBzfs_delete_blocks\fR will be deleted asynchronously
1255 while smaller files are deleted synchronously. Decreasing this value will
1256 reduce the time spent in an unlink(2) system call at the expense of a longer
1257 delay before the freed space is available.
1258 .sp
1259 Default value: \fB20,480\fR.
1260 .RE
1261
1262 .sp
1263 .ne 2
1264 .na
1265 \fBzfs_dirty_data_max\fR (int)
1266 .ad
1267 .RS 12n
1268 Determines the dirty space limit in bytes. Once this limit is exceeded, new
1269 writes are halted until space frees up. This parameter takes precedence
1270 over \fBzfs_dirty_data_max_percent\fR.
1271 See the section "ZFS TRANSACTION DELAY".
1272 .sp
1273 Default value: \fB10\fR% of physical RAM, capped at \fBzfs_dirty_data_max_max\fR.
1274 .RE
1275
1276 .sp
1277 .ne 2
1278 .na
1279 \fBzfs_dirty_data_max_max\fR (int)
1280 .ad
1281 .RS 12n
1282 Maximum allowable value of \fBzfs_dirty_data_max\fR, expressed in bytes.
1283 This limit is only enforced at module load time, and will be ignored if
1284 \fBzfs_dirty_data_max\fR is later changed. This parameter takes
1285 precedence over \fBzfs_dirty_data_max_max_percent\fR. See the section
1286 "ZFS TRANSACTION DELAY".
1287 .sp
1288 Default value: \fB25\fR% of physical RAM.
1289 .RE
1290
1291 .sp
1292 .ne 2
1293 .na
1294 \fBzfs_dirty_data_max_max_percent\fR (int)
1295 .ad
1296 .RS 12n
1297 Maximum allowable value of \fBzfs_dirty_data_max\fR, expressed as a
1298 percentage of physical RAM. This limit is only enforced at module load
1299 time, and will be ignored if \fBzfs_dirty_data_max\fR is later changed.
1300 The parameter \fBzfs_dirty_data_max_max\fR takes precedence over this
1301 one. See the section "ZFS TRANSACTION DELAY".
1302 .sp
1303 Default value: \fB25\fR%.
1304 .RE
1305
1306 .sp
1307 .ne 2
1308 .na
1309 \fBzfs_dirty_data_max_percent\fR (int)
1310 .ad
1311 .RS 12n
1312 Determines the dirty space limit, expressed as a percentage of all
1313 memory. Once this limit is exceeded, new writes are halted until space frees
1314 up. The parameter \fBzfs_dirty_data_max\fR takes precedence over this
1315 one. See the section "ZFS TRANSACTION DELAY".
1316 .sp
1317 Default value: \fB10\fR%, subject to \fBzfs_dirty_data_max_max\fR.
1318 .RE
1319
1320 .sp
1321 .ne 2
1322 .na
1323 \fBzfs_dirty_data_sync_percent\fR (int)
1324 .ad
1325 .RS 12n
1326 Start syncing out a transaction group if there's at least this much dirty data
1327 as a percentage of \fBzfs_dirty_data_max\fR. This should be less than
1328 \fBzfs_vdev_async_write_active_min_dirty_percent\fR.
1329 .sp
1330 Default value: \fB20\fR% of \fBzfs_dirty_data_max\fR.
1331 .RE
1332
1333 .sp
1334 .ne 2
1335 .na
1336 \fBzfs_fletcher_4_impl\fR (string)
1337 .ad
1338 .RS 12n
1339 Select a fletcher 4 implementation.
1340 .sp
1341 Supported selectors are: \fBfastest\fR, \fBscalar\fR, \fBsse2\fR, \fBssse3\fR,
1342 \fBavx2\fR, \fBavx512f\fR, and \fBaarch64_neon\fR.
1343 All of the selectors except \fBfastest\fR and \fBscalar\fR require instruction
1344 set extensions to be available and will only appear if ZFS detects that they are
1345 present at runtime. If multiple implementations of fletcher 4 are available,
1346 the \fBfastest\fR will be chosen using a micro benchmark. Selecting \fBscalar\fR
1347 results in the original, CPU based calculation, being used. Selecting any option
1348 other than \fBfastest\fR and \fBscalar\fR results in vector instructions from
1349 the respective CPU instruction set being used.
1350 .sp
1351 Default value: \fBfastest\fR.
1352 .RE
1353
1354 .sp
1355 .ne 2
1356 .na
1357 \fBzfs_free_bpobj_enabled\fR (int)
1358 .ad
1359 .RS 12n
1360 Enable/disable the processing of the free_bpobj object.
1361 .sp
1362 Default value: \fB1\fR.
1363 .RE
1364
1365 .sp
1366 .ne 2
1367 .na
1368 \fBzfs_async_block_max_blocks\fR (ulong)
1369 .ad
1370 .RS 12n
1371 Maximum number of blocks freed in a single txg.
1372 .sp
1373 Default value: \fB100,000\fR.
1374 .RE
1375
1376 .sp
1377 .ne 2
1378 .na
1379 \fBzfs_override_estimate_recordsize\fR (ulong)
1380 .ad
1381 .RS 12n
1382 Record size calculation override for zfs send estimates.
1383 .sp
1384 Default value: \fB0\fR.
1385 .RE
1386
1387 .sp
1388 .ne 2
1389 .na
1390 \fBzfs_vdev_async_read_max_active\fR (int)
1391 .ad
1392 .RS 12n
1393 Maximum asynchronous read I/Os active to each device.
1394 See the section "ZFS I/O SCHEDULER".
1395 .sp
1396 Default value: \fB3\fR.
1397 .RE
1398
1399 .sp
1400 .ne 2
1401 .na
1402 \fBzfs_vdev_async_read_min_active\fR (int)
1403 .ad
1404 .RS 12n
1405 Minimum asynchronous read I/Os active to each device.
1406 See the section "ZFS I/O SCHEDULER".
1407 .sp
1408 Default value: \fB1\fR.
1409 .RE
1410
1411 .sp
1412 .ne 2
1413 .na
1414 \fBzfs_vdev_async_write_active_max_dirty_percent\fR (int)
1415 .ad
1416 .RS 12n
1417 When the pool has more than
1418 \fBzfs_vdev_async_write_active_max_dirty_percent\fR dirty data, use
1419 \fBzfs_vdev_async_write_max_active\fR to limit active async writes. If
1420 the dirty data is between min and max, the active I/O limit is linearly
1421 interpolated. See the section "ZFS I/O SCHEDULER".
1422 .sp
1423 Default value: \fB60\fR%.
1424 .RE
1425
1426 .sp
1427 .ne 2
1428 .na
1429 \fBzfs_vdev_async_write_active_min_dirty_percent\fR (int)
1430 .ad
1431 .RS 12n
1432 When the pool has less than
1433 \fBzfs_vdev_async_write_active_min_dirty_percent\fR dirty data, use
1434 \fBzfs_vdev_async_write_min_active\fR to limit active async writes. If
1435 the dirty data is between min and max, the active I/O limit is linearly
1436 interpolated. See the section "ZFS I/O SCHEDULER".
1437 .sp
1438 Default value: \fB30\fR%.
1439 .RE
1440
1441 .sp
1442 .ne 2
1443 .na
1444 \fBzfs_vdev_async_write_max_active\fR (int)
1445 .ad
1446 .RS 12n
1447 Maximum asynchronous write I/Os active to each device.
1448 See the section "ZFS I/O SCHEDULER".
1449 .sp
1450 Default value: \fB10\fR.
1451 .RE
1452
1453 .sp
1454 .ne 2
1455 .na
1456 \fBzfs_vdev_async_write_min_active\fR (int)
1457 .ad
1458 .RS 12n
1459 Minimum asynchronous write I/Os active to each device.
1460 See the section "ZFS I/O SCHEDULER".
1461 .sp
1462 Lower values are associated with better latency on rotational media but poorer
1463 resilver performance. The default value of 2 was chosen as a compromise. A
1464 value of 3 has been shown to improve resilver performance further at a cost of
1465 further increasing latency.
1466 .sp
1467 Default value: \fB2\fR.
1468 .RE
1469
1470 .sp
1471 .ne 2
1472 .na
1473 \fBzfs_vdev_initializing_max_active\fR (int)
1474 .ad
1475 .RS 12n
1476 Maximum initializing I/Os active to each device.
1477 See the section "ZFS I/O SCHEDULER".
1478 .sp
1479 Default value: \fB1\fR.
1480 .RE
1481
1482 .sp
1483 .ne 2
1484 .na
1485 \fBzfs_vdev_initializing_min_active\fR (int)
1486 .ad
1487 .RS 12n
1488 Minimum initializing I/Os active to each device.
1489 See the section "ZFS I/O SCHEDULER".
1490 .sp
1491 Default value: \fB1\fR.
1492 .RE
1493
1494 .sp
1495 .ne 2
1496 .na
1497 \fBzfs_vdev_max_active\fR (int)
1498 .ad
1499 .RS 12n
1500 The maximum number of I/Os active to each device. Ideally, this will be >=
1501 the sum of each queue's max_active. It must be at least the sum of each
1502 queue's min_active. See the section "ZFS I/O SCHEDULER".
1503 .sp
1504 Default value: \fB1,000\fR.
1505 .RE
1506
1507 .sp
1508 .ne 2
1509 .na
1510 \fBzfs_vdev_removal_max_active\fR (int)
1511 .ad
1512 .RS 12n
1513 Maximum removal I/Os active to each device.
1514 See the section "ZFS I/O SCHEDULER".
1515 .sp
1516 Default value: \fB2\fR.
1517 .RE
1518
1519 .sp
1520 .ne 2
1521 .na
1522 \fBzfs_vdev_removal_min_active\fR (int)
1523 .ad
1524 .RS 12n
1525 Minimum removal I/Os active to each device.
1526 See the section "ZFS I/O SCHEDULER".
1527 .sp
1528 Default value: \fB1\fR.
1529 .RE
1530
1531 .sp
1532 .ne 2
1533 .na
1534 \fBzfs_vdev_scrub_max_active\fR (int)
1535 .ad
1536 .RS 12n
1537 Maximum scrub I/Os active to each device.
1538 See the section "ZFS I/O SCHEDULER".
1539 .sp
1540 Default value: \fB2\fR.
1541 .RE
1542
1543 .sp
1544 .ne 2
1545 .na
1546 \fBzfs_vdev_scrub_min_active\fR (int)
1547 .ad
1548 .RS 12n
1549 Minimum scrub I/Os active to each device.
1550 See the section "ZFS I/O SCHEDULER".
1551 .sp
1552 Default value: \fB1\fR.
1553 .RE
1554
1555 .sp
1556 .ne 2
1557 .na
1558 \fBzfs_vdev_sync_read_max_active\fR (int)
1559 .ad
1560 .RS 12n
1561 Maximum synchronous read I/Os active to each device.
1562 See the section "ZFS I/O SCHEDULER".
1563 .sp
1564 Default value: \fB10\fR.
1565 .RE
1566
1567 .sp
1568 .ne 2
1569 .na
1570 \fBzfs_vdev_sync_read_min_active\fR (int)
1571 .ad
1572 .RS 12n
1573 Minimum synchronous read I/Os active to each device.
1574 See the section "ZFS I/O SCHEDULER".
1575 .sp
1576 Default value: \fB10\fR.
1577 .RE
1578
1579 .sp
1580 .ne 2
1581 .na
1582 \fBzfs_vdev_sync_write_max_active\fR (int)
1583 .ad
1584 .RS 12n
1585 Maximum synchronous write I/Os active to each device.
1586 See the section "ZFS I/O SCHEDULER".
1587 .sp
1588 Default value: \fB10\fR.
1589 .RE
1590
1591 .sp
1592 .ne 2
1593 .na
1594 \fBzfs_vdev_sync_write_min_active\fR (int)
1595 .ad
1596 .RS 12n
1597 Minimum synchronous write I/Os active to each device.
1598 See the section "ZFS I/O SCHEDULER".
1599 .sp
1600 Default value: \fB10\fR.
1601 .RE
1602
1603 .sp
1604 .ne 2
1605 .na
1606 \fBzfs_vdev_trim_max_active\fR (int)
1607 .ad
1608 .RS 12n
1609 Maximum trim/discard I/Os active to each device.
1610 See the section "ZFS I/O SCHEDULER".
1611 .sp
1612 Default value: \fB2\fR.
1613 .RE
1614
1615 .sp
1616 .ne 2
1617 .na
1618 \fBzfs_vdev_trim_min_active\fR (int)
1619 .ad
1620 .RS 12n
1621 Minimum trim/discard I/Os active to each device.
1622 See the section "ZFS I/O SCHEDULER".
1623 .sp
1624 Default value: \fB1\fR.
1625 .RE
1626
1627 .sp
1628 .ne 2
1629 .na
1630 \fBzfs_vdev_queue_depth_pct\fR (int)
1631 .ad
1632 .RS 12n
1633 Maximum number of queued allocations per top-level vdev expressed as
1634 a percentage of \fBzfs_vdev_async_write_max_active\fR which allows the
1635 system to detect devices that are more capable of handling allocations
1636 and to allocate more blocks to those devices. It allows for dynamic
1637 allocation distribution when devices are imbalanced as fuller devices
1638 will tend to be slower than empty devices.
1639
1640 See also \fBzio_dva_throttle_enabled\fR.
1641 .sp
1642 Default value: \fB1000\fR%.
1643 .RE
1644
1645 .sp
1646 .ne 2
1647 .na
1648 \fBzfs_expire_snapshot\fR (int)
1649 .ad
1650 .RS 12n
1651 Seconds to expire .zfs/snapshot
1652 .sp
1653 Default value: \fB300\fR.
1654 .RE
1655
1656 .sp
1657 .ne 2
1658 .na
1659 \fBzfs_admin_snapshot\fR (int)
1660 .ad
1661 .RS 12n
1662 Allow the creation, removal, or renaming of entries in the .zfs/snapshot
1663 directory to cause the creation, destruction, or renaming of snapshots.
1664 When enabled this functionality works both locally and over NFS exports
1665 which have the 'no_root_squash' option set. This functionality is disabled
1666 by default.
1667 .sp
1668 Use \fB1\fR for yes and \fB0\fR for no (default).
1669 .RE
1670
1671 .sp
1672 .ne 2
1673 .na
1674 \fBzfs_flags\fR (int)
1675 .ad
1676 .RS 12n
1677 Set additional debugging flags. The following flags may be bitwise-or'd
1678 together.
1679 .sp
1680 .TS
1681 box;
1682 rB lB
1683 lB lB
1684 r l.
1685 Value Symbolic Name
1686 Description
1687 _
1688 1 ZFS_DEBUG_DPRINTF
1689 Enable dprintf entries in the debug log.
1690 _
1691 2 ZFS_DEBUG_DBUF_VERIFY *
1692 Enable extra dbuf verifications.
1693 _
1694 4 ZFS_DEBUG_DNODE_VERIFY *
1695 Enable extra dnode verifications.
1696 _
1697 8 ZFS_DEBUG_SNAPNAMES
1698 Enable snapshot name verification.
1699 _
1700 16 ZFS_DEBUG_MODIFY
1701 Check for illegally modified ARC buffers.
1702 _
1703 64 ZFS_DEBUG_ZIO_FREE
1704 Enable verification of block frees.
1705 _
1706 128 ZFS_DEBUG_HISTOGRAM_VERIFY
1707 Enable extra spacemap histogram verifications.
1708 _
1709 256 ZFS_DEBUG_METASLAB_VERIFY
1710 Verify space accounting on disk matches in-core range_trees.
1711 _
1712 512 ZFS_DEBUG_SET_ERROR
1713 Enable SET_ERROR and dprintf entries in the debug log.
1714 _
1715 1024 ZFS_DEBUG_INDIRECT_REMAP
1716 Verify split blocks created by device removal.
1717 _
1718 2048 ZFS_DEBUG_TRIM
1719 Verify TRIM ranges are always within the allocatable range tree.
1720 .TE
1721 .sp
1722 * Requires debug build.
1723 .sp
1724 Default value: \fB0\fR.
1725 .RE
1726
1727 .sp
1728 .ne 2
1729 .na
1730 \fBzfs_free_leak_on_eio\fR (int)
1731 .ad
1732 .RS 12n
1733 If destroy encounters an EIO while reading metadata (e.g. indirect
1734 blocks), space referenced by the missing metadata can not be freed.
1735 Normally this causes the background destroy to become "stalled", as
1736 it is unable to make forward progress. While in this stalled state,
1737 all remaining space to free from the error-encountering filesystem is
1738 "temporarily leaked". Set this flag to cause it to ignore the EIO,
1739 permanently leak the space from indirect blocks that can not be read,
1740 and continue to free everything else that it can.
1741
1742 The default, "stalling" behavior is useful if the storage partially
1743 fails (i.e. some but not all i/os fail), and then later recovers. In
1744 this case, we will be able to continue pool operations while it is
1745 partially failed, and when it recovers, we can continue to free the
1746 space, with no leaks. However, note that this case is actually
1747 fairly rare.
1748
1749 Typically pools either (a) fail completely (but perhaps temporarily,
1750 e.g. a top-level vdev going offline), or (b) have localized,
1751 permanent errors (e.g. disk returns the wrong data due to bit flip or
1752 firmware bug). In case (a), this setting does not matter because the
1753 pool will be suspended and the sync thread will not be able to make
1754 forward progress regardless. In case (b), because the error is
1755 permanent, the best we can do is leak the minimum amount of space,
1756 which is what setting this flag will do. Therefore, it is reasonable
1757 for this flag to normally be set, but we chose the more conservative
1758 approach of not setting it, so that there is no possibility of
1759 leaking space in the "partial temporary" failure case.
1760 .sp
1761 Default value: \fB0\fR.
1762 .RE
1763
1764 .sp
1765 .ne 2
1766 .na
1767 \fBzfs_free_min_time_ms\fR (int)
1768 .ad
1769 .RS 12n
1770 During a \fBzfs destroy\fR operation using \fBfeature@async_destroy\fR a minimum
1771 of this much time will be spent working on freeing blocks per txg.
1772 .sp
1773 Default value: \fB1,000\fR.
1774 .RE
1775
1776 .sp
1777 .ne 2
1778 .na
1779 \fBzfs_immediate_write_sz\fR (long)
1780 .ad
1781 .RS 12n
1782 Largest data block to write to zil. Larger blocks will be treated as if the
1783 dataset being written to had the property setting \fBlogbias=throughput\fR.
1784 .sp
1785 Default value: \fB32,768\fR.
1786 .RE
1787
1788 .sp
1789 .ne 2
1790 .na
1791 \fBzfs_initialize_value\fR (ulong)
1792 .ad
1793 .RS 12n
1794 Pattern written to vdev free space by \fBzpool initialize\fR.
1795 .sp
1796 Default value: \fB16,045,690,984,833,335,022\fR (0xdeadbeefdeadbeee).
1797 .RE
1798
1799 .sp
1800 .ne 2
1801 .na
1802 \fBzfs_lua_max_instrlimit\fR (ulong)
1803 .ad
1804 .RS 12n
1805 The maximum execution time limit that can be set for a ZFS channel program,
1806 specified as a number of Lua instructions.
1807 .sp
1808 Default value: \fB100,000,000\fR.
1809 .RE
1810
1811 .sp
1812 .ne 2
1813 .na
1814 \fBzfs_lua_max_memlimit\fR (ulong)
1815 .ad
1816 .RS 12n
1817 The maximum memory limit that can be set for a ZFS channel program, specified
1818 in bytes.
1819 .sp
1820 Default value: \fB104,857,600\fR.
1821 .RE
1822
1823 .sp
1824 .ne 2
1825 .na
1826 \fBzfs_max_dataset_nesting\fR (int)
1827 .ad
1828 .RS 12n
1829 The maximum depth of nested datasets. This value can be tuned temporarily to
1830 fix existing datasets that exceed the predefined limit.
1831 .sp
1832 Default value: \fB50\fR.
1833 .RE
1834
1835 .sp
1836 .ne 2
1837 .na
1838 \fBzfs_max_recordsize\fR (int)
1839 .ad
1840 .RS 12n
1841 We currently support block sizes from 512 bytes to 16MB. The benefits of
1842 larger blocks, and thus larger I/O, need to be weighed against the cost of
1843 COWing a giant block to modify one byte. Additionally, very large blocks
1844 can have an impact on i/o latency, and also potentially on the memory
1845 allocator. Therefore, we do not allow the recordsize to be set larger than
1846 zfs_max_recordsize (default 1MB). Larger blocks can be created by changing
1847 this tunable, and pools with larger blocks can always be imported and used,
1848 regardless of this setting.
1849 .sp
1850 Default value: \fB1,048,576\fR.
1851 .RE
1852
1853 .sp
1854 .ne 2
1855 .na
1856 \fBzfs_allow_redacted_dataset_mount\fR (int)
1857 .ad
1858 .RS 12n
1859 Allow datasets received with redacted send/receive to be mounted. Normally
1860 disabled because these datasets may be missing key data.
1861 .sp
1862 Default value: \fB0\fR.
1863 .RE
1864
1865 .sp
1866 .ne 2
1867 .na
1868 \fBzfs_metaslab_fragmentation_threshold\fR (int)
1869 .ad
1870 .RS 12n
1871 Allow metaslabs to keep their active state as long as their fragmentation
1872 percentage is less than or equal to this value. An active metaslab that
1873 exceeds this threshold will no longer keep its active status allowing
1874 better metaslabs to be selected.
1875 .sp
1876 Default value: \fB70\fR.
1877 .RE
1878
1879 .sp
1880 .ne 2
1881 .na
1882 \fBzfs_mg_fragmentation_threshold\fR (int)
1883 .ad
1884 .RS 12n
1885 Metaslab groups are considered eligible for allocations if their
1886 fragmentation metric (measured as a percentage) is less than or equal to
1887 this value. If a metaslab group exceeds this threshold then it will be
1888 skipped unless all metaslab groups within the metaslab class have also
1889 crossed this threshold.
1890 .sp
1891 Default value: \fB95\fR.
1892 .RE
1893
1894 .sp
1895 .ne 2
1896 .na
1897 \fBzfs_mg_noalloc_threshold\fR (int)
1898 .ad
1899 .RS 12n
1900 Defines a threshold at which metaslab groups should be eligible for
1901 allocations. The value is expressed as a percentage of free space
1902 beyond which a metaslab group is always eligible for allocations.
1903 If a metaslab group's free space is less than or equal to the
1904 threshold, the allocator will avoid allocating to that group
1905 unless all groups in the pool have reached the threshold. Once all
1906 groups have reached the threshold, all groups are allowed to accept
1907 allocations. The default value of 0 disables the feature and causes
1908 all metaslab groups to be eligible for allocations.
1909
1910 This parameter allows one to deal with pools having heavily imbalanced
1911 vdevs such as would be the case when a new vdev has been added.
1912 Setting the threshold to a non-zero percentage will stop allocations
1913 from being made to vdevs that aren't filled to the specified percentage
1914 and allow lesser filled vdevs to acquire more allocations than they
1915 otherwise would under the old \fBzfs_mg_alloc_failures\fR facility.
1916 .sp
1917 Default value: \fB0\fR.
1918 .RE
1919
1920 .sp
1921 .ne 2
1922 .na
1923 \fBzfs_ddt_data_is_special\fR (int)
1924 .ad
1925 .RS 12n
1926 If enabled, ZFS will place DDT data into the special allocation class.
1927 .sp
1928 Default value: \fB1\fR.
1929 .RE
1930
1931 .sp
1932 .ne 2
1933 .na
1934 \fBzfs_user_indirect_is_special\fR (int)
1935 .ad
1936 .RS 12n
1937 If enabled, ZFS will place user data (both file and zvol) indirect blocks
1938 into the special allocation class.
1939 .sp
1940 Default value: \fB1\fR.
1941 .RE
1942
1943 .sp
1944 .ne 2
1945 .na
1946 \fBzfs_multihost_history\fR (int)
1947 .ad
1948 .RS 12n
1949 Historical statistics for the last N multihost updates will be available in
1950 \fB/proc/spl/kstat/zfs/<pool>/multihost\fR
1951 .sp
1952 Default value: \fB0\fR.
1953 .RE
1954
1955 .sp
1956 .ne 2
1957 .na
1958 \fBzfs_multihost_interval\fR (ulong)
1959 .ad
1960 .RS 12n
1961 Used to control the frequency of multihost writes which are performed when the
1962 \fBmultihost\fR pool property is on. This is one factor used to determine the
1963 length of the activity check during import.
1964 .sp
1965 The multihost write period is \fBzfs_multihost_interval / leaf-vdevs\fR
1966 milliseconds. On average a multihost write will be issued for each leaf vdev
1967 every \fBzfs_multihost_interval\fR milliseconds. In practice, the observed
1968 period can vary with the I/O load and this observed value is the delay which is
1969 stored in the uberblock.
1970 .sp
1971 Default value: \fB1000\fR.
1972 .RE
1973
1974 .sp
1975 .ne 2
1976 .na
1977 \fBzfs_multihost_import_intervals\fR (uint)
1978 .ad
1979 .RS 12n
1980 Used to control the duration of the activity test on import. Smaller values of
1981 \fBzfs_multihost_import_intervals\fR will reduce the import time but increase
1982 the risk of failing to detect an active pool. The total activity check time is
1983 never allowed to drop below one second.
1984 .sp
1985 On import the activity check waits a minimum amount of time determined by
1986 \fBzfs_multihost_interval * zfs_multihost_import_intervals\fR, or the same
1987 product computed on the host which last had the pool imported (whichever is
1988 greater). The activity check time may be further extended if the value of mmp
1989 delay found in the best uberblock indicates actual multihost updates happened
1990 at longer intervals than \fBzfs_multihost_interval\fR. A minimum value of
1991 \fB100ms\fR is enforced.
1992 .sp
1993 A value of 0 is ignored and treated as if it was set to 1.
1994 .sp
1995 Default value: \fB20\fR.
1996 .RE
1997
1998 .sp
1999 .ne 2
2000 .na
2001 \fBzfs_multihost_fail_intervals\fR (uint)
2002 .ad
2003 .RS 12n
2004 Controls the behavior of the pool when multihost write failures or delays are
2005 detected.
2006 .sp
2007 When \fBzfs_multihost_fail_intervals = 0\fR, multihost write failures or delays
2008 are ignored. The failures will still be reported to the ZED which depending on
2009 its configuration may take action such as suspending the pool or offlining a
2010 device.
2011
2012 .sp
2013 When \fBzfs_multihost_fail_intervals > 0\fR, the pool will be suspended if
2014 \fBzfs_multihost_fail_intervals * zfs_multihost_interval\fR milliseconds pass
2015 without a successful mmp write. This guarantees the activity test will see
2016 mmp writes if the pool is imported. A value of 1 is ignored and treated as
2017 if it was set to 2. This is necessary to prevent the pool from being suspended
2018 due to normal, small I/O latency variations.
2019
2020 .sp
2021 Default value: \fB10\fR.
2022 .RE
2023
2024 .sp
2025 .ne 2
2026 .na
2027 \fBzfs_no_scrub_io\fR (int)
2028 .ad
2029 .RS 12n
2030 Set for no scrub I/O. This results in scrubs not actually scrubbing data and
2031 simply doing a metadata crawl of the pool instead.
2032 .sp
2033 Use \fB1\fR for yes and \fB0\fR for no (default).
2034 .RE
2035
2036 .sp
2037 .ne 2
2038 .na
2039 \fBzfs_no_scrub_prefetch\fR (int)
2040 .ad
2041 .RS 12n
2042 Set to disable block prefetching for scrubs.
2043 .sp
2044 Use \fB1\fR for yes and \fB0\fR for no (default).
2045 .RE
2046
2047 .sp
2048 .ne 2
2049 .na
2050 \fBzfs_nocacheflush\fR (int)
2051 .ad
2052 .RS 12n
2053 Disable cache flush operations on disks when writing. Setting this will
2054 cause pool corruption on power loss if a volatile out-of-order write cache
2055 is enabled.
2056 .sp
2057 Use \fB1\fR for yes and \fB0\fR for no (default).
2058 .RE
2059
2060 .sp
2061 .ne 2
2062 .na
2063 \fBzfs_nopwrite_enabled\fR (int)
2064 .ad
2065 .RS 12n
2066 Enable NOP writes
2067 .sp
2068 Use \fB1\fR for yes (default) and \fB0\fR to disable.
2069 .RE
2070
2071 .sp
2072 .ne 2
2073 .na
2074 \fBzfs_dmu_offset_next_sync\fR (int)
2075 .ad
2076 .RS 12n
2077 Enable forcing txg sync to find holes. When enabled forces ZFS to act
2078 like prior versions when SEEK_HOLE or SEEK_DATA flags are used, which
2079 when a dnode is dirty causes txg's to be synced so that this data can be
2080 found.
2081 .sp
2082 Use \fB1\fR for yes and \fB0\fR to disable (default).
2083 .RE
2084
2085 .sp
2086 .ne 2
2087 .na
2088 \fBzfs_pd_bytes_max\fR (int)
2089 .ad
2090 .RS 12n
2091 The number of bytes which should be prefetched during a pool traversal
2092 (eg: \fBzfs send\fR or other data crawling operations)
2093 .sp
2094 Default value: \fB52,428,800\fR.
2095 .RE
2096
2097 .sp
2098 .ne 2
2099 .na
2100 \fBzfs_per_txg_dirty_frees_percent \fR (ulong)
2101 .ad
2102 .RS 12n
2103 Tunable to control percentage of dirtied indirect blocks from frees allowed
2104 into one TXG. After this threshold is crossed, additional frees will wait until
2105 the next TXG.
2106 A value of zero will disable this throttle.
2107 .sp
2108 Default value: \fB5\fR, set to \fB0\fR to disable.
2109 .RE
2110
2111 .sp
2112 .ne 2
2113 .na
2114 \fBzfs_prefetch_disable\fR (int)
2115 .ad
2116 .RS 12n
2117 This tunable disables predictive prefetch. Note that it leaves "prescient"
2118 prefetch (e.g. prefetch for zfs send) intact. Unlike predictive prefetch,
2119 prescient prefetch never issues i/os that end up not being needed, so it
2120 can't hurt performance.
2121 .sp
2122 Use \fB1\fR for yes and \fB0\fR for no (default).
2123 .RE
2124
2125 .sp
2126 .ne 2
2127 .na
2128 \fBzfs_qat_checksum_disable\fR (int)
2129 .ad
2130 .RS 12n
2131 This tunable disables qat hardware acceleration for sha256 checksums. It
2132 may be set after the zfs modules have been loaded to initialize the qat
2133 hardware as long as support is compiled in and the qat driver is present.
2134 .sp
2135 Use \fB1\fR for yes and \fB0\fR for no (default).
2136 .RE
2137
2138 .sp
2139 .ne 2
2140 .na
2141 \fBzfs_qat_compress_disable\fR (int)
2142 .ad
2143 .RS 12n
2144 This tunable disables qat hardware acceleration for gzip compression. It
2145 may be set after the zfs modules have been loaded to initialize the qat
2146 hardware as long as support is compiled in and the qat driver is present.
2147 .sp
2148 Use \fB1\fR for yes and \fB0\fR for no (default).
2149 .RE
2150
2151 .sp
2152 .ne 2
2153 .na
2154 \fBzfs_qat_encrypt_disable\fR (int)
2155 .ad
2156 .RS 12n
2157 This tunable disables qat hardware acceleration for AES-GCM encryption. It
2158 may be set after the zfs modules have been loaded to initialize the qat
2159 hardware as long as support is compiled in and the qat driver is present.
2160 .sp
2161 Use \fB1\fR for yes and \fB0\fR for no (default).
2162 .RE
2163
2164 .sp
2165 .ne 2
2166 .na
2167 \fBzfs_read_chunk_size\fR (long)
2168 .ad
2169 .RS 12n
2170 Bytes to read per chunk
2171 .sp
2172 Default value: \fB1,048,576\fR.
2173 .RE
2174
2175 .sp
2176 .ne 2
2177 .na
2178 \fBzfs_read_history\fR (int)
2179 .ad
2180 .RS 12n
2181 Historical statistics for the last N reads will be available in
2182 \fB/proc/spl/kstat/zfs/<pool>/reads\fR
2183 .sp
2184 Default value: \fB0\fR (no data is kept).
2185 .RE
2186
2187 .sp
2188 .ne 2
2189 .na
2190 \fBzfs_read_history_hits\fR (int)
2191 .ad
2192 .RS 12n
2193 Include cache hits in read history
2194 .sp
2195 Use \fB1\fR for yes and \fB0\fR for no (default).
2196 .RE
2197
2198 .sp
2199 .ne 2
2200 .na
2201 \fBzfs_reconstruct_indirect_combinations_max\fR (int)
2202 .ad
2203 .RS 12na
2204 If an indirect split block contains more than this many possible unique
2205 combinations when being reconstructed, consider it too computationally
2206 expensive to check them all. Instead, try at most
2207 \fBzfs_reconstruct_indirect_combinations_max\fR randomly-selected
2208 combinations each time the block is accessed. This allows all segment
2209 copies to participate fairly in the reconstruction when all combinations
2210 cannot be checked and prevents repeated use of one bad copy.
2211 .sp
2212 Default value: \fB4096\fR.
2213 .RE
2214
2215 .sp
2216 .ne 2
2217 .na
2218 \fBzfs_recover\fR (int)
2219 .ad
2220 .RS 12n
2221 Set to attempt to recover from fatal errors. This should only be used as a
2222 last resort, as it typically results in leaked space, or worse.
2223 .sp
2224 Use \fB1\fR for yes and \fB0\fR for no (default).
2225 .RE
2226
2227 .sp
2228 .ne 2
2229 .na
2230 \fBzfs_removal_ignore_errors\fR (int)
2231 .ad
2232 .RS 12n
2233 .sp
2234 Ignore hard IO errors during device removal. When set, if a device encounters
2235 a hard IO error during the removal process the removal will not be cancelled.
2236 This can result in a normally recoverable block becoming permanently damaged
2237 and is not recommended. This should only be used as a last resort when the
2238 pool cannot be returned to a healthy state prior to removing the device.
2239 .sp
2240 Default value: \fB0\fR.
2241 .RE
2242
2243 .sp
2244 .ne 2
2245 .na
2246 \fBzfs_removal_suspend_progress\fR (int)
2247 .ad
2248 .RS 12n
2249 .sp
2250 This is used by the test suite so that it can ensure that certain actions
2251 happen while in the middle of a removal.
2252 .sp
2253 Default value: \fB0\fR.
2254 .RE
2255
2256 .sp
2257 .ne 2
2258 .na
2259 \fBzfs_remove_max_segment\fR (int)
2260 .ad
2261 .RS 12n
2262 .sp
2263 The largest contiguous segment that we will attempt to allocate when removing
2264 a device. This can be no larger than 16MB. If there is a performance
2265 problem with attempting to allocate large blocks, consider decreasing this.
2266 .sp
2267 Default value: \fB16,777,216\fR (16MB).
2268 .RE
2269
2270 .sp
2271 .ne 2
2272 .na
2273 \fBzfs_resilver_min_time_ms\fR (int)
2274 .ad
2275 .RS 12n
2276 Resilvers are processed by the sync thread. While resilvering it will spend
2277 at least this much time working on a resilver between txg flushes.
2278 .sp
2279 Default value: \fB3,000\fR.
2280 .RE
2281
2282 .sp
2283 .ne 2
2284 .na
2285 \fBzfs_scan_ignore_errors\fR (int)
2286 .ad
2287 .RS 12n
2288 If set to a nonzero value, remove the DTL (dirty time list) upon
2289 completion of a pool scan (scrub) even if there were unrepairable
2290 errors. It is intended to be used during pool repair or recovery to
2291 stop resilvering when the pool is next imported.
2292 .sp
2293 Default value: \fB0\fR.
2294 .RE
2295
2296 .sp
2297 .ne 2
2298 .na
2299 \fBzfs_scrub_min_time_ms\fR (int)
2300 .ad
2301 .RS 12n
2302 Scrubs are processed by the sync thread. While scrubbing it will spend
2303 at least this much time working on a scrub between txg flushes.
2304 .sp
2305 Default value: \fB1,000\fR.
2306 .RE
2307
2308 .sp
2309 .ne 2
2310 .na
2311 \fBzfs_scan_checkpoint_intval\fR (int)
2312 .ad
2313 .RS 12n
2314 To preserve progress across reboots the sequential scan algorithm periodically
2315 needs to stop metadata scanning and issue all the verifications I/Os to disk.
2316 The frequency of this flushing is determined by the
2317 \fBzfs_scan_checkpoint_intval\fR tunable.
2318 .sp
2319 Default value: \fB7200\fR seconds (every 2 hours).
2320 .RE
2321
2322 .sp
2323 .ne 2
2324 .na
2325 \fBzfs_scan_fill_weight\fR (int)
2326 .ad
2327 .RS 12n
2328 This tunable affects how scrub and resilver I/O segments are ordered. A higher
2329 number indicates that we care more about how filled in a segment is, while a
2330 lower number indicates we care more about the size of the extent without
2331 considering the gaps within a segment. This value is only tunable upon module
2332 insertion. Changing the value afterwards will have no affect on scrub or
2333 resilver performance.
2334 .sp
2335 Default value: \fB3\fR.
2336 .RE
2337
2338 .sp
2339 .ne 2
2340 .na
2341 \fBzfs_scan_issue_strategy\fR (int)
2342 .ad
2343 .RS 12n
2344 Determines the order that data will be verified while scrubbing or resilvering.
2345 If set to \fB1\fR, data will be verified as sequentially as possible, given the
2346 amount of memory reserved for scrubbing (see \fBzfs_scan_mem_lim_fact\fR). This
2347 may improve scrub performance if the pool's data is very fragmented. If set to
2348 \fB2\fR, the largest mostly-contiguous chunk of found data will be verified
2349 first. By deferring scrubbing of small segments, we may later find adjacent data
2350 to coalesce and increase the segment size. If set to \fB0\fR, zfs will use
2351 strategy \fB1\fR during normal verification and strategy \fB2\fR while taking a
2352 checkpoint.
2353 .sp
2354 Default value: \fB0\fR.
2355 .RE
2356
2357 .sp
2358 .ne 2
2359 .na
2360 \fBzfs_scan_legacy\fR (int)
2361 .ad
2362 .RS 12n
2363 A value of 0 indicates that scrubs and resilvers will gather metadata in
2364 memory before issuing sequential I/O. A value of 1 indicates that the legacy
2365 algorithm will be used where I/O is initiated as soon as it is discovered.
2366 Changing this value to 0 will not affect scrubs or resilvers that are already
2367 in progress.
2368 .sp
2369 Default value: \fB0\fR.
2370 .RE
2371
2372 .sp
2373 .ne 2
2374 .na
2375 \fBzfs_scan_max_ext_gap\fR (int)
2376 .ad
2377 .RS 12n
2378 Indicates the largest gap in bytes between scrub / resilver I/Os that will still
2379 be considered sequential for sorting purposes. Changing this value will not
2380 affect scrubs or resilvers that are already in progress.
2381 .sp
2382 Default value: \fB2097152 (2 MB)\fR.
2383 .RE
2384
2385 .sp
2386 .ne 2
2387 .na
2388 \fBzfs_scan_mem_lim_fact\fR (int)
2389 .ad
2390 .RS 12n
2391 Maximum fraction of RAM used for I/O sorting by sequential scan algorithm.
2392 This tunable determines the hard limit for I/O sorting memory usage.
2393 When the hard limit is reached we stop scanning metadata and start issuing
2394 data verification I/O. This is done until we get below the soft limit.
2395 .sp
2396 Default value: \fB20\fR which is 5% of RAM (1/20).
2397 .RE
2398
2399 .sp
2400 .ne 2
2401 .na
2402 \fBzfs_scan_mem_lim_soft_fact\fR (int)
2403 .ad
2404 .RS 12n
2405 The fraction of the hard limit used to determined the soft limit for I/O sorting
2406 by the sequential scan algorithm. When we cross this limit from bellow no action
2407 is taken. When we cross this limit from above it is because we are issuing
2408 verification I/O. In this case (unless the metadata scan is done) we stop
2409 issuing verification I/O and start scanning metadata again until we get to the
2410 hard limit.
2411 .sp
2412 Default value: \fB20\fR which is 5% of the hard limit (1/20).
2413 .RE
2414
2415 .sp
2416 .ne 2
2417 .na
2418 \fBzfs_scan_vdev_limit\fR (int)
2419 .ad
2420 .RS 12n
2421 Maximum amount of data that can be concurrently issued at once for scrubs and
2422 resilvers per leaf device, given in bytes.
2423 .sp
2424 Default value: \fB41943040\fR.
2425 .RE
2426
2427 .sp
2428 .ne 2
2429 .na
2430 \fBzfs_send_corrupt_data\fR (int)
2431 .ad
2432 .RS 12n
2433 Allow sending of corrupt data (ignore read/checksum errors when sending data)
2434 .sp
2435 Use \fB1\fR for yes and \fB0\fR for no (default).
2436 .RE
2437
2438 .sp
2439 .ne 2
2440 .na
2441 \fBzfs_send_unmodified_spill_blocks\fR (int)
2442 .ad
2443 .RS 12n
2444 Include unmodified spill blocks in the send stream. Under certain circumstances
2445 previous versions of ZFS could incorrectly remove the spill block from an
2446 existing object. Including unmodified copies of the spill blocks creates a
2447 backwards compatible stream which will recreate a spill block if it was
2448 incorrectly removed.
2449 .sp
2450 Use \fB1\fR for yes (default) and \fB0\fR for no.
2451 .RE
2452
2453 .sp
2454 .ne 2
2455 .na
2456 \fBzfs_send_no_prefetch_queue_ff\fR (int)
2457 .ad
2458 .RS 12n
2459 The fill fraction of the \fBzfs send\fR internal queues. The fill fraction
2460 controls the timing with which internal threads are woken up.
2461 .sp
2462 Default value: \fB20\fR.
2463 .RE
2464
2465 .sp
2466 .ne 2
2467 .na
2468 \fBzfs_send_no_prefetch_queue_length\fR (int)
2469 .ad
2470 .RS 12n
2471 The maximum number of bytes allowed in \fBzfs send\fR's internal queues.
2472 .sp
2473 Default value: \fB1,048,576\fR.
2474 .RE
2475
2476 .sp
2477 .ne 2
2478 .na
2479 \fBzfs_send_queue_ff\fR (int)
2480 .ad
2481 .RS 12n
2482 The fill fraction of the \fBzfs send\fR prefetch queue. The fill fraction
2483 controls the timing with which internal threads are woken up.
2484 .sp
2485 Default value: \fB20\fR.
2486 .RE
2487
2488 .sp
2489 .ne 2
2490 .na
2491 \fBzfs_send_queue_length\fR (int)
2492 .ad
2493 .RS 12n
2494 The maximum number of bytes allowed that will be prefetched by \fBzfs send\fR.
2495 This value must be at least twice the maximum block size in use.
2496 .sp
2497 Default value: \fB16,777,216\fR.
2498 .RE
2499
2500 .sp
2501 .ne 2
2502 .na
2503 \fBzfs_recv_queue_ff\fR (int)
2504 .ad
2505 .RS 12n
2506 The fill fraction of the \fBzfs receive\fR queue. The fill fraction
2507 controls the timing with which internal threads are woken up.
2508 .sp
2509 Default value: \fB20\fR.
2510 .RE
2511
2512 .sp
2513 .ne 2
2514 .na
2515 \fBzfs_recv_queue_length\fR (int)
2516 .ad
2517 .RS 12n
2518 The maximum number of bytes allowed in the \fBzfs receive\fR queue. This value
2519 must be at least twice the maximum block size in use.
2520 .sp
2521 Default value: \fB16,777,216\fR.
2522 .RE
2523
2524 .sp
2525 .ne 2
2526 .na
2527 \fBzfs_override_estimate_recordsize\fR (ulong)
2528 .ad
2529 .RS 12n
2530 Setting this variable overrides the default logic for estimating block
2531 sizes when doing a zfs send. The default heuristic is that the average
2532 block size will be the current recordsize. Override this value if most data
2533 in your dataset is not of that size and you require accurate zfs send size
2534 estimates.
2535 .sp
2536 Default value: \fB0\fR.
2537 .RE
2538
2539 .sp
2540 .ne 2
2541 .na
2542 \fBzfs_sync_pass_deferred_free\fR (int)
2543 .ad
2544 .RS 12n
2545 Flushing of data to disk is done in passes. Defer frees starting in this pass
2546 .sp
2547 Default value: \fB2\fR.
2548 .RE
2549
2550 .sp
2551 .ne 2
2552 .na
2553 \fBzfs_spa_discard_memory_limit\fR (int)
2554 .ad
2555 .RS 12n
2556 Maximum memory used for prefetching a checkpoint's space map on each
2557 vdev while discarding the checkpoint.
2558 .sp
2559 Default value: \fB16,777,216\fR.
2560 .RE
2561
2562 .sp
2563 .ne 2
2564 .na
2565 \fBzfs_special_class_metadata_reserve_pct\fR (int)
2566 .ad
2567 .RS 12n
2568 Only allow small data blocks to be allocated on the special and dedup vdev
2569 types when the available free space percentage on these vdevs exceeds this
2570 value. This ensures reserved space is available for pool meta data as the
2571 special vdevs approach capacity.
2572 .sp
2573 Default value: \fB25\fR.
2574 .RE
2575
2576 .sp
2577 .ne 2
2578 .na
2579 \fBzfs_sync_pass_dont_compress\fR (int)
2580 .ad
2581 .RS 12n
2582 Starting in this sync pass, we disable compression (including of metadata).
2583 With the default setting, in practice, we don't have this many sync passes,
2584 so this has no effect.
2585 .sp
2586 The original intent was that disabling compression would help the sync passes
2587 to converge. However, in practice disabling compression increases the average
2588 number of sync passes, because when we turn compression off, a lot of block's
2589 size will change and thus we have to re-allocate (not overwrite) them. It
2590 also increases the number of 128KB allocations (e.g. for indirect blocks and
2591 spacemaps) because these will not be compressed. The 128K allocations are
2592 especially detrimental to performance on highly fragmented systems, which may
2593 have very few free segments of this size, and may need to load new metaslabs
2594 to satisfy 128K allocations.
2595 .sp
2596 Default value: \fB8\fR.
2597 .RE
2598
2599 .sp
2600 .ne 2
2601 .na
2602 \fBzfs_sync_pass_rewrite\fR (int)
2603 .ad
2604 .RS 12n
2605 Rewrite new block pointers starting in this pass
2606 .sp
2607 Default value: \fB2\fR.
2608 .RE
2609
2610 .sp
2611 .ne 2
2612 .na
2613 \fBzfs_sync_taskq_batch_pct\fR (int)
2614 .ad
2615 .RS 12n
2616 This controls the number of threads used by the dp_sync_taskq. The default
2617 value of 75% will create a maximum of one thread per cpu.
2618 .sp
2619 Default value: \fB75\fR%.
2620 .RE
2621
2622 .sp
2623 .ne 2
2624 .na
2625 \fBzfs_trim_extent_bytes_max\fR (unsigned int)
2626 .ad
2627 .RS 12n
2628 Maximum size of TRIM command. Ranges larger than this will be split in to
2629 chunks no larger than \fBzfs_trim_extent_bytes_max\fR bytes before being
2630 issued to the device.
2631 .sp
2632 Default value: \fB134,217,728\fR.
2633 .RE
2634
2635 .sp
2636 .ne 2
2637 .na
2638 \fBzfs_trim_extent_bytes_min\fR (unsigned int)
2639 .ad
2640 .RS 12n
2641 Minimum size of TRIM commands. TRIM ranges smaller than this will be skipped
2642 unless they're part of a larger range which was broken in to chunks. This is
2643 done because it's common for these small TRIMs to negatively impact overall
2644 performance. This value can be set to 0 to TRIM all unallocated space.
2645 .sp
2646 Default value: \fB32,768\fR.
2647 .RE
2648
2649 .sp
2650 .ne 2
2651 .na
2652 \fBzfs_trim_metaslab_skip\fR (unsigned int)
2653 .ad
2654 .RS 12n
2655 Skip uninitialized metaslabs during the TRIM process. This option is useful
2656 for pools constructed from large thinly-provisioned devices where TRIM
2657 operations are slow. As a pool ages an increasing fraction of the pools
2658 metaslabs will be initialized progressively degrading the usefulness of
2659 this option. This setting is stored when starting a manual TRIM and will
2660 persist for the duration of the requested TRIM.
2661 .sp
2662 Default value: \fB0\fR.
2663 .RE
2664
2665 .sp
2666 .ne 2
2667 .na
2668 \fBzfs_trim_queue_limit\fR (unsigned int)
2669 .ad
2670 .RS 12n
2671 Maximum number of queued TRIMs outstanding per leaf vdev. The number of
2672 concurrent TRIM commands issued to the device is controlled by the
2673 \fBzfs_vdev_trim_min_active\fR and \fBzfs_vdev_trim_max_active\fR module
2674 options.
2675 .sp
2676 Default value: \fB10\fR.
2677 .RE
2678
2679 .sp
2680 .ne 2
2681 .na
2682 \fBzfs_trim_txg_batch\fR (unsigned int)
2683 .ad
2684 .RS 12n
2685 The number of transaction groups worth of frees which should be aggregated
2686 before TRIM operations are issued to the device. This setting represents a
2687 trade-off between issuing larger, more efficient TRIM operations and the
2688 delay before the recently trimmed space is available for use by the device.
2689 .sp
2690 Increasing this value will allow frees to be aggregated for a longer time.
2691 This will result is larger TRIM operations and potentially increased memory
2692 usage. Decreasing this value will have the opposite effect. The default
2693 value of 32 was determined to be a reasonable compromise.
2694 .sp
2695 Default value: \fB32\fR.
2696 .RE
2697
2698 .sp
2699 .ne 2
2700 .na
2701 \fBzfs_txg_history\fR (int)
2702 .ad
2703 .RS 12n
2704 Historical statistics for the last N txgs will be available in
2705 \fB/proc/spl/kstat/zfs/<pool>/txgs\fR
2706 .sp
2707 Default value: \fB0\fR.
2708 .RE
2709
2710 .sp
2711 .ne 2
2712 .na
2713 \fBzfs_txg_timeout\fR (int)
2714 .ad
2715 .RS 12n
2716 Flush dirty data to disk at least every N seconds (maximum txg duration)
2717 .sp
2718 Default value: \fB5\fR.
2719 .RE
2720
2721 .sp
2722 .ne 2
2723 .na
2724 \fBzfs_vdev_aggregate_trim\fR (int)
2725 .ad
2726 .RS 12n
2727 Allow TRIM I/Os to be aggregated. This is normally not helpful because
2728 the extents to be trimmed will have been already been aggregated by the
2729 metaslab. This option is provided for debugging and performance analysis.
2730 .sp
2731 Default value: \fB0\fR.
2732 .RE
2733
2734 .sp
2735 .ne 2
2736 .na
2737 \fBzfs_vdev_aggregation_limit\fR (int)
2738 .ad
2739 .RS 12n
2740 Max vdev I/O aggregation size
2741 .sp
2742 Default value: \fB1,048,576\fR.
2743 .RE
2744
2745 .sp
2746 .ne 2
2747 .na
2748 \fBzfs_vdev_aggregation_limit_non_rotating\fR (int)
2749 .ad
2750 .RS 12n
2751 Max vdev I/O aggregation size for non-rotating media
2752 .sp
2753 Default value: \fB131,072\fR.
2754 .RE
2755
2756 .sp
2757 .ne 2
2758 .na
2759 \fBzfs_vdev_cache_bshift\fR (int)
2760 .ad
2761 .RS 12n
2762 Shift size to inflate reads too
2763 .sp
2764 Default value: \fB16\fR (effectively 65536).
2765 .RE
2766
2767 .sp
2768 .ne 2
2769 .na
2770 \fBzfs_vdev_cache_max\fR (int)
2771 .ad
2772 .RS 12n
2773 Inflate reads smaller than this value to meet the \fBzfs_vdev_cache_bshift\fR
2774 size (default 64k).
2775 .sp
2776 Default value: \fB16384\fR.
2777 .RE
2778
2779 .sp
2780 .ne 2
2781 .na
2782 \fBzfs_vdev_cache_size\fR (int)
2783 .ad
2784 .RS 12n
2785 Total size of the per-disk cache in bytes.
2786 .sp
2787 Currently this feature is disabled as it has been found to not be helpful
2788 for performance and in some cases harmful.
2789 .sp
2790 Default value: \fB0\fR.
2791 .RE
2792
2793 .sp
2794 .ne 2
2795 .na
2796 \fBzfs_vdev_mirror_rotating_inc\fR (int)
2797 .ad
2798 .RS 12n
2799 A number by which the balancing algorithm increments the load calculation for
2800 the purpose of selecting the least busy mirror member when an I/O immediately
2801 follows its predecessor on rotational vdevs for the purpose of making decisions
2802 based on load.
2803 .sp
2804 Default value: \fB0\fR.
2805 .RE
2806
2807 .sp
2808 .ne 2
2809 .na
2810 \fBzfs_vdev_mirror_rotating_seek_inc\fR (int)
2811 .ad
2812 .RS 12n
2813 A number by which the balancing algorithm increments the load calculation for
2814 the purpose of selecting the least busy mirror member when an I/O lacks
2815 locality as defined by the zfs_vdev_mirror_rotating_seek_offset. I/Os within
2816 this that are not immediately following the previous I/O are incremented by
2817 half.
2818 .sp
2819 Default value: \fB5\fR.
2820 .RE
2821
2822 .sp
2823 .ne 2
2824 .na
2825 \fBzfs_vdev_mirror_rotating_seek_offset\fR (int)
2826 .ad
2827 .RS 12n
2828 The maximum distance for the last queued I/O in which the balancing algorithm
2829 considers an I/O to have locality.
2830 See the section "ZFS I/O SCHEDULER".
2831 .sp
2832 Default value: \fB1048576\fR.
2833 .RE
2834
2835 .sp
2836 .ne 2
2837 .na
2838 \fBzfs_vdev_mirror_non_rotating_inc\fR (int)
2839 .ad
2840 .RS 12n
2841 A number by which the balancing algorithm increments the load calculation for
2842 the purpose of selecting the least busy mirror member on non-rotational vdevs
2843 when I/Os do not immediately follow one another.
2844 .sp
2845 Default value: \fB0\fR.
2846 .RE
2847
2848 .sp
2849 .ne 2
2850 .na
2851 \fBzfs_vdev_mirror_non_rotating_seek_inc\fR (int)
2852 .ad
2853 .RS 12n
2854 A number by which the balancing algorithm increments the load calculation for
2855 the purpose of selecting the least busy mirror member when an I/O lacks
2856 locality as defined by the zfs_vdev_mirror_rotating_seek_offset. I/Os within
2857 this that are not immediately following the previous I/O are incremented by
2858 half.
2859 .sp
2860 Default value: \fB1\fR.
2861 .RE
2862
2863 .sp
2864 .ne 2
2865 .na
2866 \fBzfs_vdev_read_gap_limit\fR (int)
2867 .ad
2868 .RS 12n
2869 Aggregate read I/O operations if the gap on-disk between them is within this
2870 threshold.
2871 .sp
2872 Default value: \fB32,768\fR.
2873 .RE
2874
2875 .sp
2876 .ne 2
2877 .na
2878 \fBzfs_vdev_scheduler\fR (charp)
2879 .ad
2880 .RS 12n
2881 Set the Linux I/O scheduler on whole disk vdevs to this scheduler. Valid options
2882 are noop, cfq, bfq & deadline
2883 .sp
2884 Default value: \fBnoop\fR.
2885 .RE
2886
2887 .sp
2888 .ne 2
2889 .na
2890 \fBzfs_vdev_write_gap_limit\fR (int)
2891 .ad
2892 .RS 12n
2893 Aggregate write I/O over gap
2894 .sp
2895 Default value: \fB4,096\fR.
2896 .RE
2897
2898 .sp
2899 .ne 2
2900 .na
2901 \fBzfs_vdev_raidz_impl\fR (string)
2902 .ad
2903 .RS 12n
2904 Parameter for selecting raidz parity implementation to use.
2905
2906 Options marked (always) below may be selected on module load as they are
2907 supported on all systems.
2908 The remaining options may only be set after the module is loaded, as they
2909 are available only if the implementations are compiled in and supported
2910 on the running system.
2911
2912 Once the module is loaded, the content of
2913 /sys/module/zfs/parameters/zfs_vdev_raidz_impl will show available options
2914 with the currently selected one enclosed in [].
2915 Possible options are:
2916 fastest - (always) implementation selected using built-in benchmark
2917 original - (always) original raidz implementation
2918 scalar - (always) scalar raidz implementation
2919 sse2 - implementation using SSE2 instruction set (64bit x86 only)
2920 ssse3 - implementation using SSSE3 instruction set (64bit x86 only)
2921 avx2 - implementation using AVX2 instruction set (64bit x86 only)
2922 avx512f - implementation using AVX512F instruction set (64bit x86 only)
2923 avx512bw - implementation using AVX512F & AVX512BW instruction sets (64bit x86 only)
2924 aarch64_neon - implementation using NEON (Aarch64/64 bit ARMv8 only)
2925 aarch64_neonx2 - implementation using NEON with more unrolling (Aarch64/64 bit ARMv8 only)
2926 .sp
2927 Default value: \fBfastest\fR.
2928 .RE
2929
2930 .sp
2931 .ne 2
2932 .na
2933 \fBzfs_zevent_cols\fR (int)
2934 .ad
2935 .RS 12n
2936 When zevents are logged to the console use this as the word wrap width.
2937 .sp
2938 Default value: \fB80\fR.
2939 .RE
2940
2941 .sp
2942 .ne 2
2943 .na
2944 \fBzfs_zevent_console\fR (int)
2945 .ad
2946 .RS 12n
2947 Log events to the console
2948 .sp
2949 Use \fB1\fR for yes and \fB0\fR for no (default).
2950 .RE
2951
2952 .sp
2953 .ne 2
2954 .na
2955 \fBzfs_zevent_len_max\fR (int)
2956 .ad
2957 .RS 12n
2958 Max event queue length. A value of 0 will result in a calculated value which
2959 increases with the number of CPUs in the system (minimum 64 events). Events
2960 in the queue can be viewed with the \fBzpool events\fR command.
2961 .sp
2962 Default value: \fB0\fR.
2963 .RE
2964
2965 .sp
2966 .ne 2
2967 .na
2968 \fBzfs_zil_clean_taskq_maxalloc\fR (int)
2969 .ad
2970 .RS 12n
2971 The maximum number of taskq entries that are allowed to be cached. When this
2972 limit is exceeded transaction records (itxs) will be cleaned synchronously.
2973 .sp
2974 Default value: \fB1048576\fR.
2975 .RE
2976
2977 .sp
2978 .ne 2
2979 .na
2980 \fBzfs_zil_clean_taskq_minalloc\fR (int)
2981 .ad
2982 .RS 12n
2983 The number of taskq entries that are pre-populated when the taskq is first
2984 created and are immediately available for use.
2985 .sp
2986 Default value: \fB1024\fR.
2987 .RE
2988
2989 .sp
2990 .ne 2
2991 .na
2992 \fBzfs_zil_clean_taskq_nthr_pct\fR (int)
2993 .ad
2994 .RS 12n
2995 This controls the number of threads used by the dp_zil_clean_taskq. The default
2996 value of 100% will create a maximum of one thread per cpu.
2997 .sp
2998 Default value: \fB100\fR%.
2999 .RE
3000
3001 .sp
3002 .ne 2
3003 .na
3004 \fBzil_maxblocksize\fR (int)
3005 .ad
3006 .RS 12n
3007 This sets the maximum block size used by the ZIL. On very fragmented pools,
3008 lowering this (typically to 36KB) can improve performance.
3009 .sp
3010 Default value: \fB131072\fR (128KB).
3011 .RE
3012
3013 .sp
3014 .ne 2
3015 .na
3016 \fBzil_nocacheflush\fR (int)
3017 .ad
3018 .RS 12n
3019 Disable the cache flush commands that are normally sent to the disk(s) by
3020 the ZIL after an LWB write has completed. Setting this will cause ZIL
3021 corruption on power loss if a volatile out-of-order write cache is enabled.
3022 .sp
3023 Use \fB1\fR for yes and \fB0\fR for no (default).
3024 .RE
3025
3026 .sp
3027 .ne 2
3028 .na
3029 \fBzil_replay_disable\fR (int)
3030 .ad
3031 .RS 12n
3032 Disable intent logging replay. Can be disabled for recovery from corrupted
3033 ZIL
3034 .sp
3035 Use \fB1\fR for yes and \fB0\fR for no (default).
3036 .RE
3037
3038 .sp
3039 .ne 2
3040 .na
3041 \fBzil_slog_bulk\fR (ulong)
3042 .ad
3043 .RS 12n
3044 Limit SLOG write size per commit executed with synchronous priority.
3045 Any writes above that will be executed with lower (asynchronous) priority
3046 to limit potential SLOG device abuse by single active ZIL writer.
3047 .sp
3048 Default value: \fB786,432\fR.
3049 .RE
3050
3051 .sp
3052 .ne 2
3053 .na
3054 \fBzio_deadman_log_all\fR (int)
3055 .ad
3056 .RS 12n
3057 If non-zero, the zio deadman will produce debugging messages (see
3058 \fBzfs_dbgmsg_enable\fR) for all zios, rather than only for leaf
3059 zios possessing a vdev. This is meant to be used by developers to gain
3060 diagnostic information for hang conditions which don't involve a mutex
3061 or other locking primitive; typically conditions in which a thread in
3062 the zio pipeline is looping indefinitely.
3063 .sp
3064 Default value: \fB0\fR.
3065 .RE
3066
3067 .sp
3068 .ne 2
3069 .na
3070 \fBzio_decompress_fail_fraction\fR (int)
3071 .ad
3072 .RS 12n
3073 If non-zero, this value represents the denominator of the probability that zfs
3074 should induce a decompression failure. For instance, for a 5% decompression
3075 failure rate, this value should be set to 20.
3076 .sp
3077 Default value: \fB0\fR.
3078 .RE
3079
3080 .sp
3081 .ne 2
3082 .na
3083 \fBzio_slow_io_ms\fR (int)
3084 .ad
3085 .RS 12n
3086 When an I/O operation takes more than \fBzio_slow_io_ms\fR milliseconds to
3087 complete is marked as a slow I/O. Each slow I/O causes a delay zevent. Slow
3088 I/O counters can be seen with "zpool status -s".
3089
3090 .sp
3091 Default value: \fB30,000\fR.
3092 .RE
3093
3094 .sp
3095 .ne 2
3096 .na
3097 \fBzio_dva_throttle_enabled\fR (int)
3098 .ad
3099 .RS 12n
3100 Throttle block allocations in the I/O pipeline. This allows for
3101 dynamic allocation distribution when devices are imbalanced.
3102 When enabled, the maximum number of pending allocations per top-level vdev
3103 is limited by \fBzfs_vdev_queue_depth_pct\fR.
3104 .sp
3105 Default value: \fB1\fR.
3106 .RE
3107
3108 .sp
3109 .ne 2
3110 .na
3111 \fBzio_requeue_io_start_cut_in_line\fR (int)
3112 .ad
3113 .RS 12n
3114 Prioritize requeued I/O
3115 .sp
3116 Default value: \fB0\fR.
3117 .RE
3118
3119 .sp
3120 .ne 2
3121 .na
3122 \fBzio_taskq_batch_pct\fR (uint)
3123 .ad
3124 .RS 12n
3125 Percentage of online CPUs (or CPU cores, etc) which will run a worker thread
3126 for I/O. These workers are responsible for I/O work such as compression and
3127 checksum calculations. Fractional number of CPUs will be rounded down.
3128 .sp
3129 The default value of 75 was chosen to avoid using all CPUs which can result in
3130 latency issues and inconsistent application performance, especially when high
3131 compression is enabled.
3132 .sp
3133 Default value: \fB75\fR.
3134 .RE
3135
3136 .sp
3137 .ne 2
3138 .na
3139 \fBzvol_inhibit_dev\fR (uint)
3140 .ad
3141 .RS 12n
3142 Do not create zvol device nodes. This may slightly improve startup time on
3143 systems with a very large number of zvols.
3144 .sp
3145 Use \fB1\fR for yes and \fB0\fR for no (default).
3146 .RE
3147
3148 .sp
3149 .ne 2
3150 .na
3151 \fBzvol_major\fR (uint)
3152 .ad
3153 .RS 12n
3154 Major number for zvol block devices
3155 .sp
3156 Default value: \fB230\fR.
3157 .RE
3158
3159 .sp
3160 .ne 2
3161 .na
3162 \fBzvol_max_discard_blocks\fR (ulong)
3163 .ad
3164 .RS 12n
3165 Discard (aka TRIM) operations done on zvols will be done in batches of this
3166 many blocks, where block size is determined by the \fBvolblocksize\fR property
3167 of a zvol.
3168 .sp
3169 Default value: \fB16,384\fR.
3170 .RE
3171
3172 .sp
3173 .ne 2
3174 .na
3175 \fBzvol_prefetch_bytes\fR (uint)
3176 .ad
3177 .RS 12n
3178 When adding a zvol to the system prefetch \fBzvol_prefetch_bytes\fR
3179 from the start and end of the volume. Prefetching these regions
3180 of the volume is desirable because they are likely to be accessed
3181 immediately by \fBblkid(8)\fR or by the kernel scanning for a partition
3182 table.
3183 .sp
3184 Default value: \fB131,072\fR.
3185 .RE
3186
3187 .sp
3188 .ne 2
3189 .na
3190 \fBzvol_request_sync\fR (uint)
3191 .ad
3192 .RS 12n
3193 When processing I/O requests for a zvol submit them synchronously. This
3194 effectively limits the queue depth to 1 for each I/O submitter. When set
3195 to 0 requests are handled asynchronously by a thread pool. The number of
3196 requests which can be handled concurrently is controller by \fBzvol_threads\fR.
3197 .sp
3198 Default value: \fB0\fR.
3199 .RE
3200
3201 .sp
3202 .ne 2
3203 .na
3204 \fBzvol_threads\fR (uint)
3205 .ad
3206 .RS 12n
3207 Max number of threads which can handle zvol I/O requests concurrently.
3208 .sp
3209 Default value: \fB32\fR.
3210 .RE
3211
3212 .sp
3213 .ne 2
3214 .na
3215 \fBzvol_volmode\fR (uint)
3216 .ad
3217 .RS 12n
3218 Defines zvol block devices behaviour when \fBvolmode\fR is set to \fBdefault\fR.
3219 Valid values are \fB1\fR (full), \fB2\fR (dev) and \fB3\fR (none).
3220 .sp
3221 Default value: \fB1\fR.
3222 .RE
3223
3224 .SH ZFS I/O SCHEDULER
3225 ZFS issues I/O operations to leaf vdevs to satisfy and complete I/Os.
3226 The I/O scheduler determines when and in what order those operations are
3227 issued. The I/O scheduler divides operations into five I/O classes
3228 prioritized in the following order: sync read, sync write, async read,
3229 async write, and scrub/resilver. Each queue defines the minimum and
3230 maximum number of concurrent operations that may be issued to the
3231 device. In addition, the device has an aggregate maximum,
3232 \fBzfs_vdev_max_active\fR. Note that the sum of the per-queue minimums
3233 must not exceed the aggregate maximum. If the sum of the per-queue
3234 maximums exceeds the aggregate maximum, then the number of active I/Os
3235 may reach \fBzfs_vdev_max_active\fR, in which case no further I/Os will
3236 be issued regardless of whether all per-queue minimums have been met.
3237 .sp
3238 For many physical devices, throughput increases with the number of
3239 concurrent operations, but latency typically suffers. Further, physical
3240 devices typically have a limit at which more concurrent operations have no
3241 effect on throughput or can actually cause it to decrease.
3242 .sp
3243 The scheduler selects the next operation to issue by first looking for an
3244 I/O class whose minimum has not been satisfied. Once all are satisfied and
3245 the aggregate maximum has not been hit, the scheduler looks for classes
3246 whose maximum has not been satisfied. Iteration through the I/O classes is
3247 done in the order specified above. No further operations are issued if the
3248 aggregate maximum number of concurrent operations has been hit or if there
3249 are no operations queued for an I/O class that has not hit its maximum.
3250 Every time an I/O is queued or an operation completes, the I/O scheduler
3251 looks for new operations to issue.
3252 .sp
3253 In general, smaller max_active's will lead to lower latency of synchronous
3254 operations. Larger max_active's may lead to higher overall throughput,
3255 depending on underlying storage.
3256 .sp
3257 The ratio of the queues' max_actives determines the balance of performance
3258 between reads, writes, and scrubs. E.g., increasing
3259 \fBzfs_vdev_scrub_max_active\fR will cause the scrub or resilver to complete
3260 more quickly, but reads and writes to have higher latency and lower throughput.
3261 .sp
3262 All I/O classes have a fixed maximum number of outstanding operations
3263 except for the async write class. Asynchronous writes represent the data
3264 that is committed to stable storage during the syncing stage for
3265 transaction groups. Transaction groups enter the syncing state
3266 periodically so the number of queued async writes will quickly burst up
3267 and then bleed down to zero. Rather than servicing them as quickly as
3268 possible, the I/O scheduler changes the maximum number of active async
3269 write I/Os according to the amount of dirty data in the pool. Since
3270 both throughput and latency typically increase with the number of
3271 concurrent operations issued to physical devices, reducing the
3272 burstiness in the number of concurrent operations also stabilizes the
3273 response time of operations from other -- and in particular synchronous
3274 -- queues. In broad strokes, the I/O scheduler will issue more
3275 concurrent operations from the async write queue as there's more dirty
3276 data in the pool.
3277 .sp
3278 Async Writes
3279 .sp
3280 The number of concurrent operations issued for the async write I/O class
3281 follows a piece-wise linear function defined by a few adjustable points.
3282 .nf
3283
3284 | o---------| <-- zfs_vdev_async_write_max_active
3285 ^ | /^ |
3286 | | / | |
3287 active | / | |
3288 I/O | / | |
3289 count | / | |
3290 | / | |
3291 |-------o | | <-- zfs_vdev_async_write_min_active
3292 0|_______^______|_________|
3293 0% | | 100% of zfs_dirty_data_max
3294 | |
3295 | `-- zfs_vdev_async_write_active_max_dirty_percent
3296 `--------- zfs_vdev_async_write_active_min_dirty_percent
3297
3298 .fi
3299 Until the amount of dirty data exceeds a minimum percentage of the dirty
3300 data allowed in the pool, the I/O scheduler will limit the number of
3301 concurrent operations to the minimum. As that threshold is crossed, the
3302 number of concurrent operations issued increases linearly to the maximum at
3303 the specified maximum percentage of the dirty data allowed in the pool.
3304 .sp
3305 Ideally, the amount of dirty data on a busy pool will stay in the sloped
3306 part of the function between \fBzfs_vdev_async_write_active_min_dirty_percent\fR
3307 and \fBzfs_vdev_async_write_active_max_dirty_percent\fR. If it exceeds the
3308 maximum percentage, this indicates that the rate of incoming data is
3309 greater than the rate that the backend storage can handle. In this case, we
3310 must further throttle incoming writes, as described in the next section.
3311
3312 .SH ZFS TRANSACTION DELAY
3313 We delay transactions when we've determined that the backend storage
3314 isn't able to accommodate the rate of incoming writes.
3315 .sp
3316 If there is already a transaction waiting, we delay relative to when
3317 that transaction will finish waiting. This way the calculated delay time
3318 is independent of the number of threads concurrently executing
3319 transactions.
3320 .sp
3321 If we are the only waiter, wait relative to when the transaction
3322 started, rather than the current time. This credits the transaction for
3323 "time already served", e.g. reading indirect blocks.
3324 .sp
3325 The minimum time for a transaction to take is calculated as:
3326 .nf
3327 min_time = zfs_delay_scale * (dirty - min) / (max - dirty)
3328 min_time is then capped at 100 milliseconds.
3329 .fi
3330 .sp
3331 The delay has two degrees of freedom that can be adjusted via tunables. The
3332 percentage of dirty data at which we start to delay is defined by
3333 \fBzfs_delay_min_dirty_percent\fR. This should typically be at or above
3334 \fBzfs_vdev_async_write_active_max_dirty_percent\fR so that we only start to
3335 delay after writing at full speed has failed to keep up with the incoming write
3336 rate. The scale of the curve is defined by \fBzfs_delay_scale\fR. Roughly speaking,
3337 this variable determines the amount of delay at the midpoint of the curve.
3338 .sp
3339 .nf
3340 delay
3341 10ms +-------------------------------------------------------------*+
3342 | *|
3343 9ms + *+
3344 | *|
3345 8ms + *+
3346 | * |
3347 7ms + * +
3348 | * |
3349 6ms + * +
3350 | * |
3351 5ms + * +
3352 | * |
3353 4ms + * +
3354 | * |
3355 3ms + * +
3356 | * |
3357 2ms + (midpoint) * +
3358 | | ** |
3359 1ms + v *** +
3360 | zfs_delay_scale ----------> ******** |
3361 0 +-------------------------------------*********----------------+
3362 0% <- zfs_dirty_data_max -> 100%
3363 .fi
3364 .sp
3365 Note that since the delay is added to the outstanding time remaining on the
3366 most recent transaction, the delay is effectively the inverse of IOPS.
3367 Here the midpoint of 500us translates to 2000 IOPS. The shape of the curve
3368 was chosen such that small changes in the amount of accumulated dirty data
3369 in the first 3/4 of the curve yield relatively small differences in the
3370 amount of delay.
3371 .sp
3372 The effects can be easier to understand when the amount of delay is
3373 represented on a log scale:
3374 .sp
3375 .nf
3376 delay
3377 100ms +-------------------------------------------------------------++
3378 + +
3379 | |
3380 + *+
3381 10ms + *+
3382 + ** +
3383 | (midpoint) ** |
3384 + | ** +
3385 1ms + v **** +
3386 + zfs_delay_scale ----------> ***** +
3387 | **** |
3388 + **** +
3389 100us + ** +
3390 + * +
3391 | * |
3392 + * +
3393 10us + * +
3394 + +
3395 | |
3396 + +
3397 +--------------------------------------------------------------+
3398 0% <- zfs_dirty_data_max -> 100%
3399 .fi
3400 .sp
3401 Note here that only as the amount of dirty data approaches its limit does
3402 the delay start to increase rapidly. The goal of a properly tuned system
3403 should be to keep the amount of dirty data out of that range by first
3404 ensuring that the appropriate limits are set for the I/O scheduler to reach
3405 optimal throughput on the backend storage, and then by changing the value
3406 of \fBzfs_delay_scale\fR to increase the steepness of the curve.