2 .\" Copyright (c) 2013 by Turbo Fredriksson <turbo@bayour.com>. All rights reserved.
3 .\" Copyright (c) 2019, 2021 by Delphix. All rights reserved.
4 .\" Copyright (c) 2019 Datto Inc.
5 .\" Copyright (c) 2023, 2024 Klara, Inc.
6 .\" The contents of this file are subject to the terms of the Common Development
7 .\" and Distribution License (the "License"). You may not use this file except
8 .\" in compliance with the License. You can obtain a copy of the license at
9 .\" usr/src/OPENSOLARIS.LICENSE or https://opensource.org/licenses/CDDL-1.0.
11 .\" See the License for the specific language governing permissions and
12 .\" limitations under the License. When distributing Covered Code, include this
13 .\" CDDL HEADER in each file and include the License file at
14 .\" usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this
15 .\" CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your
16 .\" own identifying information:
17 .\" Portions Copyright [yyyy] [name of copyright owner]
19 .\" Copyright (c) 2024, Klara, Inc.
27 .Nd tuning of the ZFS kernel module
30 The ZFS module supports these parameters:
32 .It Sy dbuf_cache_max_bytes Ns = Ns Sy UINT64_MAX Ns B Pq u64
33 Maximum size in bytes of the dbuf cache.
34 The target size is determined by the MIN versus
35 .No 1/2^ Ns Sy dbuf_cache_shift Pq 1/32nd
36 of the target ARC size.
37 The behavior of the dbuf cache and its associated settings
38 can be observed via the
39 .Pa /proc/spl/kstat/zfs/dbufstats
42 .It Sy dbuf_metadata_cache_max_bytes Ns = Ns Sy UINT64_MAX Ns B Pq u64
43 Maximum size in bytes of the metadata dbuf cache.
44 The target size is determined by the MIN versus
45 .No 1/2^ Ns Sy dbuf_metadata_cache_shift Pq 1/64th
46 of the target ARC size.
47 The behavior of the metadata dbuf cache and its associated settings
48 can be observed via the
49 .Pa /proc/spl/kstat/zfs/dbufstats
52 .It Sy dbuf_cache_hiwater_pct Ns = Ns Sy 10 Ns % Pq uint
54 .Sy dbuf_cache_max_bytes
55 when dbufs must be evicted directly.
57 .It Sy dbuf_cache_lowater_pct Ns = Ns Sy 10 Ns % Pq uint
59 .Sy dbuf_cache_max_bytes
60 when the evict thread stops evicting dbufs.
62 .It Sy dbuf_cache_shift Ns = Ns Sy 5 Pq uint
63 Set the size of the dbuf cache
64 .Pq Sy dbuf_cache_max_bytes
65 to a log2 fraction of the target ARC size.
67 .It Sy dbuf_metadata_cache_shift Ns = Ns Sy 6 Pq uint
68 Set the size of the dbuf metadata cache
69 .Pq Sy dbuf_metadata_cache_max_bytes
70 to a log2 fraction of the target ARC size.
72 .It Sy dbuf_mutex_cache_shift Ns = Ns Sy 0 Pq uint
73 Set the size of the mutex array for the dbuf cache.
76 the array is dynamically sized based on total system memory.
78 .It Sy dmu_object_alloc_chunk_shift Ns = Ns Sy 7 Po 128 Pc Pq uint
79 dnode slots allocated in a single operation as a power of 2.
80 The default value minimizes lock contention for the bulk operation performed.
82 .It Sy dmu_ddt_copies Ns = Ns Sy 3 Pq uint
83 Controls the number of copies stored for DeDup Table
86 Reducing the number of copies to 1 from the previous default of 3
87 can reduce the write inflation caused by deduplication.
88 This assumes redundancy for this data is provided by the vdev layer.
89 If the DDT is damaged, space may be leaked
91 when the DDT can not report the correct reference count.
93 .It Sy dmu_prefetch_max Ns = Ns Sy 134217728 Ns B Po 128 MiB Pc Pq uint
94 Limit the amount we can prefetch with one call to this amount in bytes.
95 This helps to limit the amount of memory that can be used by prefetching.
97 .It Sy ignore_hole_birth Pq int
99 .Sy send_holes_without_birth_time .
101 .It Sy l2arc_feed_again Ns = Ns Sy 1 Ns | Ns 0 Pq int
103 When the L2ARC is cold the fill interval will be set as fast as possible.
105 .It Sy l2arc_feed_min_ms Ns = Ns Sy 200 Pq u64
106 Min feed interval in milliseconds.
108 .Sy l2arc_feed_again Ns = Ns Ar 1
109 and only applicable in related situations.
111 .It Sy l2arc_feed_secs Ns = Ns Sy 1 Pq u64
112 Seconds between L2ARC writing.
114 .It Sy l2arc_headroom Ns = Ns Sy 8 Pq u64
115 How far through the ARC lists to search for L2ARC cacheable content,
116 expressed as a multiplier of
117 .Sy l2arc_write_max .
118 ARC persistence across reboots can be achieved with persistent L2ARC
119 by setting this parameter to
121 allowing the full length of ARC lists to be searched for cacheable content.
123 .It Sy l2arc_headroom_boost Ns = Ns Sy 200 Ns % Pq u64
126 by this percentage when L2ARC contents are being successfully compressed
130 disables this feature.
132 .It Sy l2arc_exclude_special Ns = Ns Sy 0 Ns | Ns 1 Pq int
133 Controls whether buffers present on special vdevs are eligible for caching
135 If set to 1, exclude dbufs on special vdevs from being cached to L2ARC.
137 .It Sy l2arc_mfuonly Ns = Ns Sy 0 Ns | Ns 1 Ns | Ns 2 Pq int
138 Controls whether only MFU metadata and data are cached from ARC into L2ARC.
139 This may be desired to avoid wasting space on L2ARC when reading/writing large
140 amounts of data that are not expected to be accessed more than once.
143 meaning both MRU and MFU data and metadata are cached.
144 When turning off this feature (setting it to 0), some MRU buffers will
145 still be present in ARC and eventually cached on L2ARC.
146 .No If Sy l2arc_noprefetch Ns = Ns Sy 0 ,
147 some prefetched buffers will be cached to L2ARC, and those might later
148 transition to MRU, in which case the
149 .Sy l2arc_mru_asize No arcstat will not be Sy 0 .
151 Setting it to 1 means to L2 cache only MFU data and metadata.
153 Setting it to 2 means to L2 cache all metadata (MRU+MFU) but
154 only MFU data (ie: MRU data are not cached). This can be the right setting
155 to cache as much metadata as possible even when having high data turnover.
158 .Sy l2arc_noprefetch ,
159 some MFU buffers might be evicted from ARC,
160 accessed later on as prefetches and transition to MRU as prefetches.
161 If accessed again they are counted as MRU and the
162 .Sy l2arc_mru_asize No arcstat will not be Sy 0 .
164 The ARC status of L2ARC buffers when they were first cached in
165 L2ARC can be seen in the
166 .Sy l2arc_mru_asize , Sy l2arc_mfu_asize , No and Sy l2arc_prefetch_asize
167 arcstats when importing the pool or onlining a cache
168 device if persistent L2ARC is enabled.
171 .Sy evict_l2_eligible_mru
172 arcstat does not take into account if this option is enabled as the information
174 .Sy evict_l2_eligible_m[rf]u
175 arcstats can be used to decide if toggling this option is appropriate
176 for the current workload.
178 .It Sy l2arc_meta_percent Ns = Ns Sy 33 Ns % Pq uint
179 Percent of ARC size allowed for L2ARC-only headers.
180 Since L2ARC buffers are not evicted on memory pressure,
181 too many headers on a system with an irrationally large L2ARC
182 can render it slow or unusable.
183 This parameter limits L2ARC writes and rebuilds to achieve the target.
185 .It Sy l2arc_trim_ahead Ns = Ns Sy 0 Ns % Pq u64
186 Trims ahead of the current write size
187 .Pq Sy l2arc_write_max
188 on L2ARC devices by this percentage of write size if we have filled the device.
191 we TRIM twice the space required to accommodate upcoming writes.
195 It also enables TRIM of the whole L2ARC device upon creation
196 or addition to an existing pool or if the header of the device is
197 invalid upon importing a pool or onlining a cache device.
200 disables TRIM on L2ARC altogether and is the default as it can put significant
201 stress on the underlying storage devices.
202 This will vary depending of how well the specific device handles these commands.
204 .It Sy l2arc_noprefetch Ns = Ns Sy 1 Ns | Ns 0 Pq int
205 Do not write buffers to L2ARC if they were prefetched but not used by
207 In case there are prefetched buffers in L2ARC and this option
208 is later set, we do not read the prefetched buffers from L2ARC.
209 Unsetting this option is useful for caching sequential reads from the
210 disks to L2ARC and serve those reads from L2ARC later on.
211 This may be beneficial in case the L2ARC device is significantly faster
212 in sequential reads than the disks of the pool.
218 to enable caching/reading prefetches to/from L2ARC.
220 .It Sy l2arc_norw Ns = Ns Sy 0 Ns | Ns 1 Pq int
221 No reads during writes.
223 .It Sy l2arc_write_boost Ns = Ns Sy 33554432 Ns B Po 32 MiB Pc Pq u64
224 Cold L2ARC devices will have
226 increased by this amount while they remain cold.
228 .It Sy l2arc_write_max Ns = Ns Sy 33554432 Ns B Po 32 MiB Pc Pq u64
229 Max write bytes per interval.
231 .It Sy l2arc_rebuild_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
232 Rebuild the L2ARC when importing a pool (persistent L2ARC).
233 This can be disabled if there are problems importing a pool
234 or attaching an L2ARC device (e.g. the L2ARC device is slow
235 in reading stored log metadata, or the metadata
236 has become somehow fragmented/unusable).
238 .It Sy l2arc_rebuild_blocks_min_l2size Ns = Ns Sy 1073741824 Ns B Po 1 GiB Pc Pq u64
239 Mininum size of an L2ARC device required in order to write log blocks in it.
240 The log blocks are used upon importing the pool to rebuild the persistent L2ARC.
242 For L2ARC devices less than 1 GiB, the amount of data
244 evicts is significant compared to the amount of restored L2ARC data.
245 In this case, do not write log blocks in L2ARC in order not to waste space.
247 .It Sy metaslab_aliquot Ns = Ns Sy 1048576 Ns B Po 1 MiB Pc Pq u64
248 Metaslab granularity, in bytes.
249 This is roughly similar to what would be referred to as the "stripe size"
250 in traditional RAID arrays.
251 In normal operation, ZFS will try to write this amount of data to each disk
252 before moving on to the next top-level vdev.
254 .It Sy metaslab_bias_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
255 Enable metaslab group biasing based on their vdevs' over- or under-utilization
256 relative to the pool.
258 .It Sy metaslab_force_ganging Ns = Ns Sy 16777217 Ns B Po 16 MiB + 1 B Pc Pq u64
259 Make some blocks above a certain size be gang blocks.
260 This option is used by the test suite to facilitate testing.
262 .It Sy metaslab_force_ganging_pct Ns = Ns Sy 3 Ns % Pq uint
263 For blocks that could be forced to be a gang block (due to
264 .Sy metaslab_force_ganging ) ,
265 force this many of them to be gang blocks.
267 .It Sy brt_zap_prefetch Ns = Ns Sy 1 Ns | Ns 0 Pq int
268 Controls prefetching BRT records for blocks which are going to be cloned.
270 .It Sy brt_zap_default_bs Ns = Ns Sy 12 Po 4 KiB Pc Pq int
271 Default BRT ZAP data block size as a power of 2. Note that changing this after
272 creating a BRT on the pool will not affect existing BRTs, only newly created
275 .It Sy brt_zap_default_ibs Ns = Ns Sy 12 Po 4 KiB Pc Pq int
276 Default BRT ZAP indirect block size as a power of 2. Note that changing this
277 after creating a BRT on the pool will not affect existing BRTs, only newly
280 .It Sy ddt_zap_default_bs Ns = Ns Sy 15 Po 32 KiB Pc Pq int
281 Default DDT ZAP data block size as a power of 2. Note that changing this after
282 creating a DDT on the pool will not affect existing DDTs, only newly created
285 .It Sy ddt_zap_default_ibs Ns = Ns Sy 15 Po 32 KiB Pc Pq int
286 Default DDT ZAP indirect block size as a power of 2. Note that changing this
287 after creating a DDT on the pool will not affect existing DDTs, only newly
290 .It Sy zfs_default_bs Ns = Ns Sy 9 Po 512 B Pc Pq int
291 Default dnode block size as a power of 2.
293 .It Sy zfs_default_ibs Ns = Ns Sy 17 Po 128 KiB Pc Pq int
294 Default dnode indirect block size as a power of 2.
296 .It Sy zfs_dio_enabled Ns = Ns Sy 0 Ns | Ns 1 Pq int
298 If this setting is 0, then all I/O requests will be directed through the ARC
299 acting as though the dataset property
304 .It Sy zfs_history_output_max Ns = Ns Sy 1048576 Ns B Po 1 MiB Pc Pq u64
305 When attempting to log an output nvlist of an ioctl in the on-disk history,
306 the output will not be stored if it is larger than this size (in bytes).
307 This must be less than
308 .Sy DMU_MAX_ACCESS Pq 64 MiB .
309 This applies primarily to
310 .Fn zfs_ioc_channel_program Pq cf. Xr zfs-program 8 .
312 .It Sy zfs_keep_log_spacemaps_at_export Ns = Ns Sy 0 Ns | Ns 1 Pq int
313 Prevent log spacemaps from being destroyed during pool exports and destroys.
315 .It Sy zfs_metaslab_segment_weight_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
316 Enable/disable segment-based metaslab selection.
318 .It Sy zfs_metaslab_switch_threshold Ns = Ns Sy 2 Pq int
319 When using segment-based metaslab selection, continue allocating
320 from the active metaslab until this option's
321 worth of buckets have been exhausted.
323 .It Sy metaslab_debug_load Ns = Ns Sy 0 Ns | Ns 1 Pq int
324 Load all metaslabs during pool import.
326 .It Sy metaslab_debug_unload Ns = Ns Sy 0 Ns | Ns 1 Pq int
327 Prevent metaslabs from being unloaded.
329 .It Sy metaslab_fragmentation_factor_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
330 Enable use of the fragmentation metric in computing metaslab weights.
332 .It Sy metaslab_df_max_search Ns = Ns Sy 16777216 Ns B Po 16 MiB Pc Pq uint
333 Maximum distance to search forward from the last offset.
334 Without this limit, fragmented pools can see
337 .Fn metaslab_block_picker
338 becomes the performance limiting factor on high-performance storage.
340 With the default setting of
342 we typically see less than
344 iterations, even with very fragmented
345 .Sy ashift Ns = Ns Sy 9
347 The maximum number of iterations possible is
348 .Sy metaslab_df_max_search / 2^(ashift+1) .
349 With the default setting of
352 .Em 16*1024 Pq with Sy ashift Ns = Ns Sy 9
354 .Em 2*1024 Pq with Sy ashift Ns = Ns Sy 12 .
356 .It Sy metaslab_df_use_largest_segment Ns = Ns Sy 0 Ns | Ns 1 Pq int
357 If not searching forward (due to
358 .Sy metaslab_df_max_search , metaslab_df_free_pct ,
359 .No or Sy metaslab_df_alloc_threshold ) ,
360 this tunable controls which segment is used.
361 If set, we will use the largest free segment.
362 If unset, we will use a segment of at least the requested size.
364 .It Sy zfs_metaslab_max_size_cache_sec Ns = Ns Sy 3600 Ns s Po 1 hour Pc Pq u64
365 When we unload a metaslab, we cache the size of the largest free chunk.
366 We use that cached size to determine whether or not to load a metaslab
367 for a given allocation.
368 As more frees accumulate in that metaslab while it's unloaded,
369 the cached max size becomes less and less accurate.
370 After a number of seconds controlled by this tunable,
371 we stop considering the cached max size and start
372 considering only the histogram instead.
374 .It Sy zfs_metaslab_mem_limit Ns = Ns Sy 25 Ns % Pq uint
375 When we are loading a new metaslab, we check the amount of memory being used
376 to store metaslab range trees.
377 If it is over a threshold, we attempt to unload the least recently used metaslab
378 to prevent the system from clogging all of its memory with range trees.
379 This tunable sets the percentage of total system memory that is the threshold.
381 .It Sy zfs_metaslab_try_hard_before_gang Ns = Ns Sy 0 Ns | Ns 1 Pq int
384 If unset, we will first try normal allocation.
386 If that fails then we will do a gang allocation.
388 If that fails then we will do a "try hard" gang allocation.
390 If that fails then we will have a multi-layer gang block.
395 If set, we will first try normal allocation.
397 If that fails then we will do a "try hard" allocation.
399 If that fails we will do a gang allocation.
401 If that fails we will do a "try hard" gang allocation.
403 If that fails then we will have a multi-layer gang block.
406 .It Sy zfs_metaslab_find_max_tries Ns = Ns Sy 100 Pq uint
407 When not trying hard, we only consider this number of the best metaslabs.
408 This improves performance, especially when there are many metaslabs per vdev
409 and the allocation can't actually be satisfied
410 (so we would otherwise iterate all metaslabs).
412 .It Sy zfs_vdev_default_ms_count Ns = Ns Sy 200 Pq uint
413 When a vdev is added, target this number of metaslabs per top-level vdev.
415 .It Sy zfs_vdev_default_ms_shift Ns = Ns Sy 29 Po 512 MiB Pc Pq uint
416 Default lower limit for metaslab size.
418 .It Sy zfs_vdev_max_ms_shift Ns = Ns Sy 34 Po 16 GiB Pc Pq uint
419 Default upper limit for metaslab size.
421 .It Sy zfs_vdev_max_auto_ashift Ns = Ns Sy 14 Pq uint
422 Maximum ashift used when optimizing for logical \[->] physical sector size on
425 May be increased up to
426 .Sy ASHIFT_MAX Po 16 Pc ,
427 but this may negatively impact pool space efficiency.
429 .It Sy zfs_vdev_direct_write_verify Ns = Ns Sy Linux 1 | FreeBSD 0 Pq uint
430 If non-zero, then a Direct I/O write's checksum will be verified every
431 time the write is issued and before it is commited to the block pointer.
432 In the event the checksum is not valid then the I/O operation will return EIO.
433 This module parameter can be used to detect if the
434 contents of the users buffer have changed in the process of doing a Direct I/O
436 It can also help to identify if reported checksum errors are tied to Direct I/O
438 Each verify error causes a
441 Direct Write I/O checkum verify errors can be seen with
442 .Nm zpool Cm status Fl d .
443 The default value for this is 1 on Linux, but is 0 for
445 because user pages can be placed under write protection in
447 before the Direct I/O write is issued.
449 .It Sy zfs_vdev_min_auto_ashift Ns = Ns Sy ASHIFT_MIN Po 9 Pc Pq uint
450 Minimum ashift used when creating new top-level vdevs.
452 .It Sy zfs_vdev_min_ms_count Ns = Ns Sy 16 Pq uint
453 Minimum number of metaslabs to create in a top-level vdev.
455 .It Sy vdev_validate_skip Ns = Ns Sy 0 Ns | Ns 1 Pq int
456 Skip label validation steps during pool import.
457 Changing is not recommended unless you know what you're doing
458 and are recovering a damaged label.
460 .It Sy zfs_vdev_ms_count_limit Ns = Ns Sy 131072 Po 128k Pc Pq uint
461 Practical upper limit of total metaslabs per top-level vdev.
463 .It Sy metaslab_preload_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
464 Enable metaslab group preloading.
466 .It Sy metaslab_preload_limit Ns = Ns Sy 10 Pq uint
467 Maximum number of metaslabs per group to preload
469 .It Sy metaslab_preload_pct Ns = Ns Sy 50 Pq uint
470 Percentage of CPUs to run a metaslab preload taskq
472 .It Sy metaslab_lba_weighting_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
473 Give more weight to metaslabs with lower LBAs,
474 assuming they have greater bandwidth,
475 as is typically the case on a modern constant angular velocity disk drive.
477 .It Sy metaslab_unload_delay Ns = Ns Sy 32 Pq uint
478 After a metaslab is used, we keep it loaded for this many TXGs, to attempt to
479 reduce unnecessary reloading.
480 Note that both this many TXGs and
481 .Sy metaslab_unload_delay_ms
482 milliseconds must pass before unloading will occur.
484 .It Sy metaslab_unload_delay_ms Ns = Ns Sy 600000 Ns ms Po 10 min Pc Pq uint
485 After a metaslab is used, we keep it loaded for this many milliseconds,
486 to attempt to reduce unnecessary reloading.
487 Note, that both this many milliseconds and
488 .Sy metaslab_unload_delay
489 TXGs must pass before unloading will occur.
491 .It Sy reference_history Ns = Ns Sy 3 Pq uint
492 Maximum reference holders being tracked when reference_tracking_enable is
494 .It Sy raidz_expand_max_copy_bytes Ns = Ns Sy 160MB Pq ulong
495 Max amount of memory to use for RAID-Z expansion I/O.
496 This limits how much I/O can be outstanding at once.
498 .It Sy raidz_expand_max_reflow_bytes Ns = Ns Sy 0 Pq ulong
499 For testing, pause RAID-Z expansion when reflow amount reaches this value.
501 .It Sy raidz_io_aggregate_rows Ns = Ns Sy 4 Pq ulong
502 For expanded RAID-Z, aggregate reads that have more rows than this.
504 .It Sy reference_history Ns = Ns Sy 3 Pq int
505 Maximum reference holders being tracked when reference_tracking_enable is
508 .It Sy reference_tracking_enable Ns = Ns Sy 0 Ns | Ns 1 Pq int
509 Track reference holders to
511 objects (debug builds only).
513 .It Sy send_holes_without_birth_time Ns = Ns Sy 1 Ns | Ns 0 Pq int
516 optimization will not be used, and all holes will always be sent during a
518 This is useful if you suspect your datasets are affected by a bug in
521 .It Sy spa_config_path Ns = Ns Pa /etc/zfs/zpool.cache Pq charp
524 .It Sy spa_asize_inflation Ns = Ns Sy 24 Pq uint
525 Multiplication factor used to estimate actual disk consumption from the
526 size of data being written.
527 The default value is a worst case estimate,
528 but lower values may be valid for a given pool depending on its configuration.
529 Pool administrators who understand the factors involved
530 may wish to specify a more realistic inflation factor,
531 particularly if they operate close to quota or capacity limits.
533 .It Sy spa_load_print_vdev_tree Ns = Ns Sy 0 Ns | Ns 1 Pq int
534 Whether to print the vdev tree in the debugging message buffer during pool
537 .It Sy spa_load_verify_data Ns = Ns Sy 1 Ns | Ns 0 Pq int
538 Whether to traverse data blocks during an "extreme rewind"
542 An extreme rewind import normally performs a full traversal of all
543 blocks in the pool for verification.
544 If this parameter is unset, the traversal skips non-metadata blocks.
545 It can be toggled once the
546 import has started to stop or start the traversal of non-metadata blocks.
548 .It Sy spa_load_verify_metadata Ns = Ns Sy 1 Ns | Ns 0 Pq int
549 Whether to traverse blocks during an "extreme rewind"
553 An extreme rewind import normally performs a full traversal of all
554 blocks in the pool for verification.
555 If this parameter is unset, the traversal is not performed.
556 It can be toggled once the import has started to stop or start the traversal.
558 .It Sy spa_load_verify_shift Ns = Ns Sy 4 Po 1/16th Pc Pq uint
559 Sets the maximum number of bytes to consume during pool import to the log2
560 fraction of the target ARC size.
562 .It Sy spa_slop_shift Ns = Ns Sy 5 Po 1/32nd Pc Pq int
563 Normally, we don't allow the last
564 .Sy 3.2% Pq Sy 1/2^spa_slop_shift
565 of space in the pool to be consumed.
566 This ensures that we don't run the pool completely out of space,
567 due to unaccounted changes (e.g. to the MOS).
568 It also limits the worst-case time to allocate space.
569 If we have less than this amount of free space,
570 most ZPL operations (e.g. write, create) will return
573 .It Sy spa_num_allocators Ns = Ns Sy 4 Pq int
574 Determines the number of block alloctators to use per spa instance.
575 Capped by the number of actual CPUs in the system via
576 .Sy spa_cpus_per_allocator .
578 Note that setting this value too high could result in performance
579 degredation and/or excess fragmentation.
580 Set value only applies to pools imported/created after that.
582 .It Sy spa_cpus_per_allocator Ns = Ns Sy 4 Pq int
583 Determines the minimum number of CPUs in a system for block alloctator
585 Set value only applies to pools imported/created after that.
587 .It Sy spa_upgrade_errlog_limit Ns = Ns Sy 0 Pq uint
588 Limits the number of on-disk error log entries that will be converted to the
589 new format when enabling the
592 The default is to convert all log entries.
594 .It Sy vdev_removal_max_span Ns = Ns Sy 32768 Ns B Po 32 KiB Pc Pq uint
595 During top-level vdev removal, chunks of data are copied from the vdev
596 which may include free space in order to trade bandwidth for IOPS.
597 This parameter determines the maximum span of free space, in bytes,
598 which will be included as "unnecessary" data in a chunk of copied data.
600 The default value here was chosen to align with
601 .Sy zfs_vdev_read_gap_limit ,
602 which is a similar concept when doing
603 regular reads (but there's no reason it has to be the same).
605 .It Sy vdev_file_logical_ashift Ns = Ns Sy 9 Po 512 B Pc Pq u64
606 Logical ashift for file-based devices.
608 .It Sy vdev_file_physical_ashift Ns = Ns Sy 9 Po 512 B Pc Pq u64
609 Physical ashift for file-based devices.
611 .It Sy zap_iterate_prefetch Ns = Ns Sy 1 Ns | Ns 0 Pq int
612 If set, when we start iterating over a ZAP object,
613 prefetch the entire object (all leaf blocks).
614 However, this is limited by
615 .Sy dmu_prefetch_max .
617 .It Sy zap_micro_max_size Ns = Ns Sy 131072 Ns B Po 128 KiB Pc Pq int
618 Maximum micro ZAP size.
619 A "micro" ZAP is upgraded to a "fat" ZAP once it grows beyond the specified
621 Sizes higher than 128KiB will be clamped to 128KiB unless the
625 .It Sy zap_shrink_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
626 If set, adjacent empty ZAP blocks will be collapsed, reducing disk space.
628 .It Sy zfetch_min_distance Ns = Ns Sy 4194304 Ns B Po 4 MiB Pc Pq uint
629 Min bytes to prefetch per stream.
630 Prefetch distance starts from the demand access size and quickly grows to
631 this value, doubling on each hit.
632 After that it may grow further by 1/8 per hit, but only if some prefetch
633 since last time haven't completed in time to satisfy demand request, i.e.
634 prefetch depth didn't cover the read latency or the pool got saturated.
636 .It Sy zfetch_max_distance Ns = Ns Sy 67108864 Ns B Po 64 MiB Pc Pq uint
637 Max bytes to prefetch per stream.
639 .It Sy zfetch_max_idistance Ns = Ns Sy 67108864 Ns B Po 64 MiB Pc Pq uint
640 Max bytes to prefetch indirects for per stream.
642 .It Sy zfetch_max_reorder Ns = Ns Sy 16777216 Ns B Po 16 MiB Pc Pq uint
643 Requests within this byte distance from the current prefetch stream position
644 are considered parts of the stream, reordered due to parallel processing.
645 Such requests do not advance the stream position immediately unless
646 .Sy zfetch_hole_shift
647 fill threshold is reached, but saved to fill holes in the stream later.
649 .It Sy zfetch_max_streams Ns = Ns Sy 8 Pq uint
650 Max number of streams per zfetch (prefetch streams per file).
652 .It Sy zfetch_min_sec_reap Ns = Ns Sy 1 Pq uint
653 Min time before inactive prefetch stream can be reclaimed
655 .It Sy zfetch_max_sec_reap Ns = Ns Sy 2 Pq uint
656 Max time before inactive prefetch stream can be deleted
658 .It Sy zfs_abd_scatter_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
659 Enables ARC from using scatter/gather lists and forces all allocations to be
660 linear in kernel memory.
661 Disabling can improve performance in some code paths
662 at the expense of fragmented kernel memory.
664 .It Sy zfs_abd_scatter_max_order Ns = Ns Sy MAX_ORDER\-1 Pq uint
665 Maximum number of consecutive memory pages allocated in a single block for
666 scatter/gather lists.
670 depends on kernel configuration.
672 .It Sy zfs_abd_scatter_min_size Ns = Ns Sy 1536 Ns B Po 1.5 KiB Pc Pq uint
673 This is the minimum allocation size that will use scatter (page-based) ABDs.
674 Smaller allocations will use linear ABDs.
676 .It Sy zfs_arc_dnode_limit Ns = Ns Sy 0 Ns B Pq u64
677 When the number of bytes consumed by dnodes in the ARC exceeds this number of
678 bytes, try to unpin some of it in response to demand for non-metadata.
679 This value acts as a ceiling to the amount of dnode metadata, and defaults to
681 which indicates that a percent which is based on
682 .Sy zfs_arc_dnode_limit_percent
683 of the ARC meta buffers that may be used for dnodes.
684 .It Sy zfs_arc_dnode_limit_percent Ns = Ns Sy 10 Ns % Pq u64
685 Percentage that can be consumed by dnodes of ARC meta buffers.
688 .Sy zfs_arc_dnode_limit ,
689 which serves a similar purpose but has a higher priority if nonzero.
691 .It Sy zfs_arc_dnode_reduce_percent Ns = Ns Sy 10 Ns % Pq u64
692 Percentage of ARC dnodes to try to scan in response to demand for non-metadata
693 when the number of bytes consumed by dnodes exceeds
694 .Sy zfs_arc_dnode_limit .
696 .It Sy zfs_arc_average_blocksize Ns = Ns Sy 8192 Ns B Po 8 KiB Pc Pq uint
697 The ARC's buffer hash table is sized based on the assumption of an average
698 block size of this value.
699 This works out to roughly 1 MiB of hash table per 1 GiB of physical memory
700 with 8-byte pointers.
701 For configurations with a known larger average block size,
702 this value can be increased to reduce the memory footprint.
704 .It Sy zfs_arc_eviction_pct Ns = Ns Sy 200 Ns % Pq uint
706 .Fn arc_is_overflowing ,
707 .Fn arc_get_data_impl
708 waits for this percent of the requested amount of data to be evicted.
709 For example, by default, for every
713 of it may be "reused" by a new allocation.
716 it ensures that progress is made towards getting
717 .Sy arc_size No under Sy arc_c .
718 Since this is finite, it ensures that allocations can still happen,
719 even during the potentially long time that
720 .Sy arc_size No is more than Sy arc_c .
722 .It Sy zfs_arc_evict_batch_limit Ns = Ns Sy 10 Pq uint
723 Number ARC headers to evict per sub-list before proceeding to another sub-list.
724 This batch-style operation prevents entire sub-lists from being evicted at once
725 but comes at a cost of additional unlocking and locking.
727 .It Sy zfs_arc_grow_retry Ns = Ns Sy 0 Ns s Pq uint
728 If set to a non zero value, it will replace the
730 value with this value.
733 .No value Pq default Sy 5 Ns s
734 is the number of seconds the ARC will wait before
735 trying to resume growth after a memory pressure event.
737 .It Sy zfs_arc_lotsfree_percent Ns = Ns Sy 10 Ns % Pq int
738 Throttle I/O when free system memory drops below this percentage of total
740 Setting this value to
742 will disable the throttle.
744 .It Sy zfs_arc_max Ns = Ns Sy 0 Ns B Pq u64
745 Max size of ARC in bytes.
748 then the max size of ARC is determined by the amount of system memory installed.
750 .Sy all_system_memory No \- Sy 1 GiB
752 .Sy 5/8 No \(mu Sy all_system_memory
753 will be used as the limit.
754 This value must be at least
755 .Sy 67108864 Ns B Pq 64 MiB .
757 This value can be changed dynamically, with some caveats.
758 It cannot be set back to
760 while running, and reducing it below the current ARC size will not cause
761 the ARC to shrink without memory pressure to induce shrinking.
763 .It Sy zfs_arc_meta_balance Ns = Ns Sy 500 Pq uint
764 Balance between metadata and data on ghost hits.
765 Values above 100 increase metadata caching by proportionally reducing effect
766 of ghost data hits on target data/metadata rate.
768 .It Sy zfs_arc_min Ns = Ns Sy 0 Ns B Pq u64
769 Min size of ARC in bytes.
770 .No If set to Sy 0 , arc_c_min
771 will default to consuming the larger of
774 .Sy all_system_memory No / Sy 32 .
776 .It Sy zfs_arc_min_prefetch_ms Ns = Ns Sy 0 Ns ms Ns Po Ns ≡ Ns 1s Pc Pq uint
777 Minimum time prefetched blocks are locked in the ARC.
779 .It Sy zfs_arc_min_prescient_prefetch_ms Ns = Ns Sy 0 Ns ms Ns Po Ns ≡ Ns 6s Pc Pq uint
780 Minimum time "prescient prefetched" blocks are locked in the ARC.
781 These blocks are meant to be prefetched fairly aggressively ahead of
782 the code that may use them.
784 .It Sy zfs_arc_prune_task_threads Ns = Ns Sy 1 Pq int
785 Number of arc_prune threads.
787 does not need more than one.
788 Linux may theoretically use one per mount point up to number of CPUs,
789 but that was not proven to be useful.
791 .It Sy zfs_max_missing_tvds Ns = Ns Sy 0 Pq int
792 Number of missing top-level vdevs which will be allowed during
793 pool import (only in read-only mode).
795 .It Sy zfs_max_nvlist_src_size Ns = Sy 0 Pq u64
796 Maximum size in bytes allowed to be passed as
797 .Sy zc_nvlist_src_size
800 This prevents a user from causing the kernel to allocate
801 an excessive amount of memory.
802 When the limit is exceeded, the ioctl fails with
804 and a description of the error is sent to the
807 This parameter should not need to be touched under normal circumstances.
810 equivalent to a quarter of the user-wired memory limit under
813 .Sy 134217728 Ns B Pq 128 MiB
816 .It Sy zfs_multilist_num_sublists Ns = Ns Sy 0 Pq uint
817 To allow more fine-grained locking, each ARC state contains a series
818 of lists for both data and metadata objects.
819 Locking is performed at the level of these "sub-lists".
820 This parameters controls the number of sub-lists per ARC state,
821 and also applies to other uses of the multilist data structure.
825 equivalent to the greater of the number of online CPUs and
828 .It Sy zfs_arc_overflow_shift Ns = Ns Sy 8 Pq int
829 The ARC size is considered to be overflowing if it exceeds the current
832 by thresholds determined by this parameter.
834 .Sy ( arc_c No >> Sy zfs_arc_overflow_shift ) No / Sy 2
835 starts ARC reclamation process.
836 If that appears insufficient, exceeding by
837 .Sy ( arc_c No >> Sy zfs_arc_overflow_shift ) No \(mu Sy 1.5
838 blocks new buffer allocation until the reclaim thread catches up.
839 Started reclamation process continues till ARC size returns below the
844 causes the ARC to start reclamation if it exceeds the target size by
846 of the target size, and block allocations by
849 .It Sy zfs_arc_shrink_shift Ns = Ns Sy 0 Pq uint
850 If nonzero, this will update
851 .Sy arc_shrink_shift Pq default Sy 7
854 .It Sy zfs_arc_pc_percent Ns = Ns Sy 0 Ns % Po off Pc Pq uint
855 Percent of pagecache to reclaim ARC to.
857 This tunable allows the ZFS ARC to play more nicely
858 with the kernel's LRU pagecache.
859 It can guarantee that the ARC size won't collapse under scanning
860 pressure on the pagecache, yet still allows the ARC to be reclaimed down to
863 This value is specified as percent of pagecache size (as measured by
864 .Sy NR_FILE_PAGES ) ,
865 where that percent may exceed
868 only operates during memory pressure/reclaim.
870 .It Sy zfs_arc_shrinker_limit Ns = Ns Sy 10000 Pq int
871 This is a limit on how many pages the ARC shrinker makes available for
872 eviction in response to one page allocation attempt.
873 Note that in practice, the kernel's shrinker can ask us to evict
874 up to about four times this for one allocation attempt.
875 To reduce OOM risk, this limit is applied for kswapd reclaims only.
878 .Sy 10000 Pq in practice, Em 160 MiB No per allocation attempt with 4 KiB pages
879 limits the amount of time spent attempting to reclaim ARC memory to
880 less than 100 ms per allocation attempt,
881 even with a small average compressed block size of ~8 KiB.
883 The parameter can be set to 0 (zero) to disable the limit,
884 and only applies on Linux.
886 .It Sy zfs_arc_shrinker_seeks Ns = Ns Sy 2 Pq int
887 Relative cost of ARC eviction on Linux, AKA number of seeks needed to
888 restore evicted page.
889 Bigger values make ARC more precious and evictions smaller, comparing to
890 other kernel subsystems.
891 Value of 4 means parity with page cache.
893 .It Sy zfs_arc_sys_free Ns = Ns Sy 0 Ns B Pq u64
894 The target number of bytes the ARC should leave as free memory on the system.
895 If zero, equivalent to the bigger of
896 .Sy 512 KiB No and Sy all_system_memory/64 .
898 .It Sy zfs_autoimport_disable Ns = Ns Sy 1 Ns | Ns 0 Pq int
899 Disable pool import at module load by ignoring the cache file
900 .Pq Sy spa_config_path .
902 .It Sy zfs_checksum_events_per_second Ns = Ns Sy 20 Ns /s Pq uint
903 Rate limit checksum events to this many per second.
904 Note that this should not be set below the ZED thresholds
905 (currently 10 checksums over 10 seconds)
906 or else the daemon may not trigger any action.
908 .It Sy zfs_commit_timeout_pct Ns = Ns Sy 10 Ns % Pq uint
909 This controls the amount of time that a ZIL block (lwb) will remain "open"
910 when it isn't "full", and it has a thread waiting for it to be committed to
912 The timeout is scaled based on a percentage of the last lwb
913 latency to avoid significantly impacting the latency of each individual
914 transaction record (itx).
916 .It Sy zfs_condense_indirect_commit_entry_delay_ms Ns = Ns Sy 0 Ns ms Pq int
917 Vdev indirection layer (used for device removal) sleeps for this many
918 milliseconds during mapping generation.
919 Intended for use with the test suite to throttle vdev removal speed.
921 .It Sy zfs_condense_indirect_obsolete_pct Ns = Ns Sy 25 Ns % Pq uint
922 Minimum percent of obsolete bytes in vdev mapping required to attempt to
924 .Pq see Sy zfs_condense_indirect_vdevs_enable .
925 Intended for use with the test suite
926 to facilitate triggering condensing as needed.
928 .It Sy zfs_condense_indirect_vdevs_enable Ns = Ns Sy 1 Ns | Ns 0 Pq int
929 Enable condensing indirect vdev mappings.
930 When set, attempt to condense indirect vdev mappings
931 if the mapping uses more than
932 .Sy zfs_condense_min_mapping_bytes
933 bytes of memory and if the obsolete space map object uses more than
934 .Sy zfs_condense_max_obsolete_bytes
936 The condensing process is an attempt to save memory by removing obsolete
939 .It Sy zfs_condense_max_obsolete_bytes Ns = Ns Sy 1073741824 Ns B Po 1 GiB Pc Pq u64
940 Only attempt to condense indirect vdev mappings if the on-disk size
941 of the obsolete space map object is greater than this number of bytes
942 .Pq see Sy zfs_condense_indirect_vdevs_enable .
944 .It Sy zfs_condense_min_mapping_bytes Ns = Ns Sy 131072 Ns B Po 128 KiB Pc Pq u64
945 Minimum size vdev mapping to attempt to condense
946 .Pq see Sy zfs_condense_indirect_vdevs_enable .
948 .It Sy zfs_dbgmsg_enable Ns = Ns Sy 1 Ns | Ns 0 Pq int
949 Internally ZFS keeps a small log to facilitate debugging.
950 The log is enabled by default, and can be disabled by unsetting this option.
951 The contents of the log can be accessed by reading
952 .Pa /proc/spl/kstat/zfs/dbgmsg .
955 to the file clears the log.
957 This setting does not influence debug prints due to
960 .It Sy zfs_dbgmsg_maxsize Ns = Ns Sy 4194304 Ns B Po 4 MiB Pc Pq uint
961 Maximum size of the internal ZFS debug log.
963 .It Sy zfs_dbuf_state_index Ns = Ns Sy 0 Pq int
964 Historically used for controlling what reporting was available under
965 .Pa /proc/spl/kstat/zfs .
968 .It Sy zfs_deadman_checktime_ms Ns = Ns Sy 60000 Ns ms Po 1 min Pc Pq u64
969 Check time in milliseconds.
970 This defines the frequency at which we check for hung I/O requests
971 and potentially invoke the
972 .Sy zfs_deadman_failmode
975 .It Sy zfs_deadman_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
976 When a pool sync operation takes longer than
977 .Sy zfs_deadman_synctime_ms ,
978 or when an individual I/O operation takes longer than
979 .Sy zfs_deadman_ziotime_ms ,
980 then the operation is considered to be "hung".
982 .Sy zfs_deadman_enabled
983 is set, then the deadman behavior is invoked as described by
984 .Sy zfs_deadman_failmode .
985 By default, the deadman is enabled and set to
987 which results in "hung" I/O operations only being logged.
988 The deadman is automatically disabled when a pool gets suspended.
990 .It Sy zfs_deadman_events_per_second Ns = Ns Sy 1 Ns /s Pq int
991 Rate limit deadman zevents (which report hung I/O operations) to this many per
994 .It Sy zfs_deadman_failmode Ns = Ns Sy wait Pq charp
995 Controls the failure behavior when the deadman detects a "hung" I/O operation.
997 .Bl -tag -compact -offset 4n -width "continue"
999 Wait for a "hung" operation to complete.
1000 For each "hung" operation a "deadman" event will be posted
1001 describing that operation.
1003 Attempt to recover from a "hung" operation by re-dispatching it
1004 to the I/O pipeline if possible.
1007 This can be used to facilitate automatic fail-over
1008 to a properly configured fail-over partner.
1011 .It Sy zfs_deadman_synctime_ms Ns = Ns Sy 600000 Ns ms Po 10 min Pc Pq u64
1012 Interval in milliseconds after which the deadman is triggered and also
1013 the interval after which a pool sync operation is considered to be "hung".
1014 Once this limit is exceeded the deadman will be invoked every
1015 .Sy zfs_deadman_checktime_ms
1016 milliseconds until the pool sync completes.
1018 .It Sy zfs_deadman_ziotime_ms Ns = Ns Sy 300000 Ns ms Po 5 min Pc Pq u64
1019 Interval in milliseconds after which the deadman is triggered and an
1020 individual I/O operation is considered to be "hung".
1021 As long as the operation remains "hung",
1022 the deadman will be invoked every
1023 .Sy zfs_deadman_checktime_ms
1024 milliseconds until the operation completes.
1026 .It Sy zfs_dedup_prefetch Ns = Ns Sy 0 Ns | Ns 1 Pq int
1027 Enable prefetching dedup-ed blocks which are going to be freed.
1029 .It Sy zfs_dedup_log_flush_passes_max Ns = Ns Sy 8 Ns Pq uint
1030 Maximum number of dedup log flush passes (iterations) each transaction.
1032 At the start of each transaction, OpenZFS will estimate how many entries it
1033 needs to flush out to keep up with the change rate, taking the amount and time
1034 taken to flush on previous txgs into account (see
1035 .Sy zfs_dedup_log_flush_flow_rate_txgs ) .
1036 It will spread this amount into a number of passes.
1037 At each pass, it will use the amount already flushed and the total time taken
1038 by flushing and by other IO to recompute how much it should do for the remainder
1041 Reducing the max number of passes will make flushing more aggressive, flushing
1042 out more entries on each pass.
1043 This can be faster, but also more likely to compete with other IO.
1044 Increasing the max number of passes will put fewer entries onto each pass,
1045 keeping the overhead of dedup changes to a minimum but possibly causing a large
1046 number of changes to be dumped on the last pass, which can blow out the txg
1048 .Sy zfs_txg_timeout .
1050 .It Sy zfs_dedup_log_flush_min_time_ms Ns = Ns Sy 1000 Ns Pq uint
1051 Minimum time to spend on dedup log flush each transaction.
1053 At least this long will be spent flushing dedup log entries each transaction,
1055 .Sy zfs_txg_timeout .
1056 This occurs even if doing so would delay the transaction, that is, other IO
1057 completes under this time.
1059 .It Sy zfs_dedup_log_flush_entries_min Ns = Ns Sy 1000 Ns Pq uint
1060 Flush at least this many entries each transaction.
1062 OpenZFS will estimate how many entries it needs to flush each transaction to
1063 keep up with the ingest rate (see
1064 .Sy zfs_dedup_log_flush_flow_rate_txgs ) .
1065 This sets the minimum for that estimate.
1066 Raising it can force OpenZFS to flush more aggressively, keeping the log small
1067 and so reducing pool import times, but can make it less able to back off if
1068 log flushing would compete with other IO too much.
1070 .It Sy zfs_dedup_log_flush_flow_rate_txgs Ns = Ns Sy 10 Ns Pq uint
1071 Number of transactions to use to compute the flow rate.
1073 OpenZFS will estimate how many entries it needs to flush each transaction by
1074 monitoring the number of entries changed (ingest rate), number of entries
1075 flushed (flush rate) and time spent flushing (flush time rate) and combining
1076 these into an overall "flow rate".
1077 It will use an exponential weighted moving average over some number of recent
1078 transactions to compute these rates.
1079 This sets the number of transactions to compute these averages over.
1080 Setting it higher can help to smooth out the flow rate in the face of spiky
1081 workloads, but will take longer for the flow rate to adjust to a sustained
1082 change in the ingress rate.
1084 .It Sy zfs_dedup_log_txg_max Ns = Ns Sy 8 Ns Pq uint
1085 Max transactions to before starting to flush dedup logs.
1087 OpenZFS maintains two dedup logs, one receiving new changes, one flushing.
1088 If there is nothing to flush, it will accumulate changes for no more than this
1089 many transactions before switching the logs and starting to flush entries out.
1091 .It Sy zfs_dedup_log_mem_max Ns = Ns Sy 0 Ns Pq u64
1092 Max memory to use for dedup logs.
1094 OpenZFS will spend no more than this much memory on maintaining the in-memory
1096 Flushing will begin when around half this amount is being spent on logs.
1097 The default value of
1099 will cause it to be set by
1100 .Sy zfs_dedup_log_mem_max_percent
1103 .It Sy zfs_dedup_log_mem_max_percent Ns = Ns Sy 1 Ns % Pq uint
1104 Max memory to use for dedup logs, as a percentage of total memory.
1107 .Sy zfs_dedup_log_mem_max
1108 is not set, it will be initialised as a percentage of the total memory in the
1111 .It Sy zfs_delay_min_dirty_percent Ns = Ns Sy 60 Ns % Pq uint
1112 Start to delay each transaction once there is this amount of dirty data,
1113 expressed as a percentage of
1114 .Sy zfs_dirty_data_max .
1115 This value should be at least
1116 .Sy zfs_vdev_async_write_active_max_dirty_percent .
1117 .No See Sx ZFS TRANSACTION DELAY .
1119 .It Sy zfs_delay_scale Ns = Ns Sy 500000 Pq int
1120 This controls how quickly the transaction delay approaches infinity.
1121 Larger values cause longer delays for a given amount of dirty data.
1123 For the smoothest delay, this value should be about 1 billion divided
1124 by the maximum number of operations per second.
1125 This will smoothly handle between ten times and a tenth of this number.
1126 .No See Sx ZFS TRANSACTION DELAY .
1128 .Sy zfs_delay_scale No \(mu Sy zfs_dirty_data_max Em must No be smaller than Sy 2^64 .
1130 .It Sy zfs_dio_write_verify_events_per_second Ns = Ns Sy 20 Ns /s Pq uint
1131 Rate limit Direct I/O write verify events to this many per second.
1133 .It Sy zfs_disable_ivset_guid_check Ns = Ns Sy 0 Ns | Ns 1 Pq int
1134 Disables requirement for IVset GUIDs to be present and match when doing a raw
1135 receive of encrypted datasets.
1136 Intended for users whose pools were created with
1137 OpenZFS pre-release versions and now have compatibility issues.
1139 .It Sy zfs_key_max_salt_uses Ns = Ns Sy 400000000 Po 4*10^8 Pc Pq ulong
1140 Maximum number of uses of a single salt value before generating a new one for
1142 The default value is also the maximum.
1144 .It Sy zfs_object_mutex_size Ns = Ns Sy 64 Pq uint
1145 Size of the znode hashtable used for holds.
1147 Due to the need to hold locks on objects that may not exist yet, kernel mutexes
1148 are not created per-object and instead a hashtable is used where collisions
1149 will result in objects waiting when there is not actually contention on the
1152 .It Sy zfs_slow_io_events_per_second Ns = Ns Sy 20 Ns /s Pq int
1153 Rate limit delay zevents (which report slow I/O operations) to this many per
1156 .It Sy zfs_unflushed_max_mem_amt Ns = Ns Sy 1073741824 Ns B Po 1 GiB Pc Pq u64
1157 Upper-bound limit for unflushed metadata changes to be held by the
1158 log spacemap in memory, in bytes.
1160 .It Sy zfs_unflushed_max_mem_ppm Ns = Ns Sy 1000 Ns ppm Po 0.1% Pc Pq u64
1161 Part of overall system memory that ZFS allows to be used
1162 for unflushed metadata changes by the log spacemap, in millionths.
1164 .It Sy zfs_unflushed_log_block_max Ns = Ns Sy 131072 Po 128k Pc Pq u64
1165 Describes the maximum number of log spacemap blocks allowed for each pool.
1166 The default value means that the space in all the log spacemaps
1167 can add up to no more than
1171 of logical space before compression and ditto blocks,
1172 assuming that blocksize is
1175 This tunable is important because it involves a trade-off between import
1176 time after an unclean export and the frequency of flushing metaslabs.
1177 The higher this number is, the more log blocks we allow when the pool is
1178 active which means that we flush metaslabs less often and thus decrease
1179 the number of I/O operations for spacemap updates per TXG.
1180 At the same time though, that means that in the event of an unclean export,
1181 there will be more log spacemap blocks for us to read, inducing overhead
1182 in the import time of the pool.
1183 The lower the number, the amount of flushing increases, destroying log
1184 blocks quicker as they become obsolete faster, which leaves less blocks
1185 to be read during import time after a crash.
1187 Each log spacemap block existing during pool import leads to approximately
1188 one extra logical I/O issued.
1189 This is the reason why this tunable is exposed in terms of blocks rather
1192 .It Sy zfs_unflushed_log_block_min Ns = Ns Sy 1000 Pq u64
1193 If the number of metaslabs is small and our incoming rate is high,
1194 we could get into a situation that we are flushing all our metaslabs every TXG.
1195 Thus we always allow at least this many log blocks.
1197 .It Sy zfs_unflushed_log_block_pct Ns = Ns Sy 400 Ns % Pq u64
1198 Tunable used to determine the number of blocks that can be used for
1199 the spacemap log, expressed as a percentage of the total number of
1200 unflushed metaslabs in the pool.
1202 .It Sy zfs_unflushed_log_txg_max Ns = Ns Sy 1000 Pq u64
1203 Tunable limiting maximum time in TXGs any metaslab may remain unflushed.
1204 It effectively limits maximum number of unflushed per-TXG spacemap logs
1205 that need to be read after unclean pool export.
1207 .It Sy zfs_unlink_suspend_progress Ns = Ns Sy 0 Ns | Ns 1 Pq uint
1208 When enabled, files will not be asynchronously removed from the list of pending
1209 unlinks and the space they consume will be leaked.
1210 Once this option has been disabled and the dataset is remounted,
1211 the pending unlinks will be processed and the freed space returned to the pool.
1212 This option is used by the test suite.
1214 .It Sy zfs_delete_blocks Ns = Ns Sy 20480 Pq ulong
1215 This is the used to define a large file for the purposes of deletion.
1216 Files containing more than
1217 .Sy zfs_delete_blocks
1218 will be deleted asynchronously, while smaller files are deleted synchronously.
1219 Decreasing this value will reduce the time spent in an
1221 system call, at the expense of a longer delay before the freed space is
1223 This only applies on Linux.
1225 .It Sy zfs_dirty_data_max Ns = Pq int
1226 Determines the dirty space limit in bytes.
1227 Once this limit is exceeded, new writes are halted until space frees up.
1228 This parameter takes precedence over
1229 .Sy zfs_dirty_data_max_percent .
1230 .No See Sx ZFS TRANSACTION DELAY .
1233 .Sy physical_ram/10 ,
1235 .Sy zfs_dirty_data_max_max .
1237 .It Sy zfs_dirty_data_max_max Ns = Pq int
1238 Maximum allowable value of
1239 .Sy zfs_dirty_data_max ,
1241 This limit is only enforced at module load time, and will be ignored if
1242 .Sy zfs_dirty_data_max
1244 This parameter takes precedence over
1245 .Sy zfs_dirty_data_max_max_percent .
1246 .No See Sx ZFS TRANSACTION DELAY .
1249 .Sy min(physical_ram/4, 4GiB) ,
1251 .Sy min(physical_ram/4, 1GiB)
1254 .It Sy zfs_dirty_data_max_max_percent Ns = Ns Sy 25 Ns % Pq uint
1255 Maximum allowable value of
1256 .Sy zfs_dirty_data_max ,
1257 expressed as a percentage of physical RAM.
1258 This limit is only enforced at module load time, and will be ignored if
1259 .Sy zfs_dirty_data_max
1262 .Sy zfs_dirty_data_max_max
1263 takes precedence over this one.
1264 .No See Sx ZFS TRANSACTION DELAY .
1266 .It Sy zfs_dirty_data_max_percent Ns = Ns Sy 10 Ns % Pq uint
1267 Determines the dirty space limit, expressed as a percentage of all memory.
1268 Once this limit is exceeded, new writes are halted until space frees up.
1270 .Sy zfs_dirty_data_max
1271 takes precedence over this one.
1272 .No See Sx ZFS TRANSACTION DELAY .
1275 .Sy zfs_dirty_data_max_max .
1277 .It Sy zfs_dirty_data_sync_percent Ns = Ns Sy 20 Ns % Pq uint
1278 Start syncing out a transaction group if there's at least this much dirty data
1279 .Pq as a percentage of Sy zfs_dirty_data_max .
1280 This should be less than
1281 .Sy zfs_vdev_async_write_active_min_dirty_percent .
1283 .It Sy zfs_wrlog_data_max Ns = Pq int
1284 The upper limit of write-transaction zil log data size in bytes.
1285 Write operations are throttled when approaching the limit until log data is
1286 cleared out after transaction group sync.
1287 Because of some overhead, it should be set at least 2 times the size of
1288 .Sy zfs_dirty_data_max
1289 .No to prevent harming normal write throughput .
1290 It also should be smaller than the size of the slog device if slog is present.
1293 .Sy zfs_dirty_data_max*2
1295 .It Sy zfs_fallocate_reserve_percent Ns = Ns Sy 110 Ns % Pq uint
1296 Since ZFS is a copy-on-write filesystem with snapshots, blocks cannot be
1297 preallocated for a file in order to guarantee that later writes will not
1301 space preallocation only checks that sufficient space is currently available
1302 in the pool or the user's project quota allocation,
1303 and then creates a sparse file of the requested size.
1304 The requested space is multiplied by
1305 .Sy zfs_fallocate_reserve_percent
1306 to allow additional space for indirect blocks and other internal metadata.
1309 disables support for
1311 and causes it to return
1314 .It Sy zfs_fletcher_4_impl Ns = Ns Sy fastest Pq string
1315 Select a fletcher 4 implementation.
1317 Supported selectors are:
1318 .Sy fastest , scalar , sse2 , ssse3 , avx2 , avx512f , avx512bw ,
1319 .No and Sy aarch64_neon .
1321 .Sy fastest No and Sy scalar
1322 require instruction set extensions to be available,
1323 and will only appear if ZFS detects that they are present at runtime.
1324 If multiple implementations of fletcher 4 are available, the
1326 will be chosen using a micro benchmark.
1329 results in the original CPU-based calculation being used.
1330 Selecting any option other than
1331 .Sy fastest No or Sy scalar
1332 results in vector instructions
1333 from the respective CPU instruction set being used.
1335 .It Sy zfs_bclone_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
1336 Enables access to the block cloning feature.
1337 If this setting is 0, then even if feature@block_cloning is enabled,
1338 using functions and system calls that attempt to clone blocks will act as
1339 though the feature is disabled.
1341 .It Sy zfs_bclone_wait_dirty Ns = Ns Sy 0 Ns | Ns 1 Pq int
1342 When set to 1 the FICLONE and FICLONERANGE ioctls wait for dirty data to be
1344 This allows the clone operation to reliably succeed when a file is
1345 modified and then immediately cloned.
1346 For small files this may be slower than making a copy of the file.
1347 Therefore, this setting defaults to 0 which causes a clone operation to
1348 immediately fail when encountering a dirty block.
1350 .It Sy zfs_blake3_impl Ns = Ns Sy fastest Pq string
1351 Select a BLAKE3 implementation.
1353 Supported selectors are:
1354 .Sy cycle , fastest , generic , sse2 , sse41 , avx2 , avx512 .
1356 .Sy cycle , fastest No and Sy generic
1357 require instruction set extensions to be available,
1358 and will only appear if ZFS detects that they are present at runtime.
1359 If multiple implementations of BLAKE3 are available, the
1360 .Sy fastest will be chosen using a micro benchmark. You can see the
1361 benchmark results by reading this kstat file:
1362 .Pa /proc/spl/kstat/zfs/chksum_bench .
1364 .It Sy zfs_free_bpobj_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
1365 Enable/disable the processing of the free_bpobj object.
1367 .It Sy zfs_async_block_max_blocks Ns = Ns Sy UINT64_MAX Po unlimited Pc Pq u64
1368 Maximum number of blocks freed in a single TXG.
1370 .It Sy zfs_max_async_dedup_frees Ns = Ns Sy 100000 Po 10^5 Pc Pq u64
1371 Maximum number of dedup blocks freed in a single TXG.
1373 .It Sy zfs_vdev_async_read_max_active Ns = Ns Sy 3 Pq uint
1374 Maximum asynchronous read I/O operations active to each device.
1375 .No See Sx ZFS I/O SCHEDULER .
1377 .It Sy zfs_vdev_async_read_min_active Ns = Ns Sy 1 Pq uint
1378 Minimum asynchronous read I/O operation active to each device.
1379 .No See Sx ZFS I/O SCHEDULER .
1381 .It Sy zfs_vdev_async_write_active_max_dirty_percent Ns = Ns Sy 60 Ns % Pq uint
1382 When the pool has more than this much dirty data, use
1383 .Sy zfs_vdev_async_write_max_active
1384 to limit active async writes.
1385 If the dirty data is between the minimum and maximum,
1386 the active I/O limit is linearly interpolated.
1387 .No See Sx ZFS I/O SCHEDULER .
1389 .It Sy zfs_vdev_async_write_active_min_dirty_percent Ns = Ns Sy 30 Ns % Pq uint
1390 When the pool has less than this much dirty data, use
1391 .Sy zfs_vdev_async_write_min_active
1392 to limit active async writes.
1393 If the dirty data is between the minimum and maximum,
1394 the active I/O limit is linearly
1396 .No See Sx ZFS I/O SCHEDULER .
1398 .It Sy zfs_vdev_async_write_max_active Ns = Ns Sy 10 Pq uint
1399 Maximum asynchronous write I/O operations active to each device.
1400 .No See Sx ZFS I/O SCHEDULER .
1402 .It Sy zfs_vdev_async_write_min_active Ns = Ns Sy 2 Pq uint
1403 Minimum asynchronous write I/O operations active to each device.
1404 .No See Sx ZFS I/O SCHEDULER .
1406 Lower values are associated with better latency on rotational media but poorer
1407 resilver performance.
1408 The default value of
1410 was chosen as a compromise.
1413 has been shown to improve resilver performance further at a cost of
1414 further increasing latency.
1416 .It Sy zfs_vdev_initializing_max_active Ns = Ns Sy 1 Pq uint
1417 Maximum initializing I/O operations active to each device.
1418 .No See Sx ZFS I/O SCHEDULER .
1420 .It Sy zfs_vdev_initializing_min_active Ns = Ns Sy 1 Pq uint
1421 Minimum initializing I/O operations active to each device.
1422 .No See Sx ZFS I/O SCHEDULER .
1424 .It Sy zfs_vdev_max_active Ns = Ns Sy 1000 Pq uint
1425 The maximum number of I/O operations active to each device.
1426 Ideally, this will be at least the sum of each queue's
1428 .No See Sx ZFS I/O SCHEDULER .
1430 .It Sy zfs_vdev_open_timeout_ms Ns = Ns Sy 1000 Pq uint
1431 Timeout value to wait before determining a device is missing
1433 This is helpful for transient missing paths due
1434 to links being briefly removed and recreated in response to
1437 .It Sy zfs_vdev_rebuild_max_active Ns = Ns Sy 3 Pq uint
1438 Maximum sequential resilver I/O operations active to each device.
1439 .No See Sx ZFS I/O SCHEDULER .
1441 .It Sy zfs_vdev_rebuild_min_active Ns = Ns Sy 1 Pq uint
1442 Minimum sequential resilver I/O operations active to each device.
1443 .No See Sx ZFS I/O SCHEDULER .
1445 .It Sy zfs_vdev_removal_max_active Ns = Ns Sy 2 Pq uint
1446 Maximum removal I/O operations active to each device.
1447 .No See Sx ZFS I/O SCHEDULER .
1449 .It Sy zfs_vdev_removal_min_active Ns = Ns Sy 1 Pq uint
1450 Minimum removal I/O operations active to each device.
1451 .No See Sx ZFS I/O SCHEDULER .
1453 .It Sy zfs_vdev_scrub_max_active Ns = Ns Sy 2 Pq uint
1454 Maximum scrub I/O operations active to each device.
1455 .No See Sx ZFS I/O SCHEDULER .
1457 .It Sy zfs_vdev_scrub_min_active Ns = Ns Sy 1 Pq uint
1458 Minimum scrub I/O operations active to each device.
1459 .No See Sx ZFS I/O SCHEDULER .
1461 .It Sy zfs_vdev_sync_read_max_active Ns = Ns Sy 10 Pq uint
1462 Maximum synchronous read I/O operations active to each device.
1463 .No See Sx ZFS I/O SCHEDULER .
1465 .It Sy zfs_vdev_sync_read_min_active Ns = Ns Sy 10 Pq uint
1466 Minimum synchronous read I/O operations active to each device.
1467 .No See Sx ZFS I/O SCHEDULER .
1469 .It Sy zfs_vdev_sync_write_max_active Ns = Ns Sy 10 Pq uint
1470 Maximum synchronous write I/O operations active to each device.
1471 .No See Sx ZFS I/O SCHEDULER .
1473 .It Sy zfs_vdev_sync_write_min_active Ns = Ns Sy 10 Pq uint
1474 Minimum synchronous write I/O operations active to each device.
1475 .No See Sx ZFS I/O SCHEDULER .
1477 .It Sy zfs_vdev_trim_max_active Ns = Ns Sy 2 Pq uint
1478 Maximum trim/discard I/O operations active to each device.
1479 .No See Sx ZFS I/O SCHEDULER .
1481 .It Sy zfs_vdev_trim_min_active Ns = Ns Sy 1 Pq uint
1482 Minimum trim/discard I/O operations active to each device.
1483 .No See Sx ZFS I/O SCHEDULER .
1485 .It Sy zfs_vdev_nia_delay Ns = Ns Sy 5 Pq uint
1486 For non-interactive I/O (scrub, resilver, removal, initialize and rebuild),
1487 the number of concurrently-active I/O operations is limited to
1488 .Sy zfs_*_min_active ,
1489 unless the vdev is "idle".
1490 When there are no interactive I/O operations active (synchronous or otherwise),
1492 .Sy zfs_vdev_nia_delay
1493 operations have completed since the last interactive operation,
1494 then the vdev is considered to be "idle",
1495 and the number of concurrently-active non-interactive operations is increased to
1496 .Sy zfs_*_max_active .
1497 .No See Sx ZFS I/O SCHEDULER .
1499 .It Sy zfs_vdev_nia_credit Ns = Ns Sy 5 Pq uint
1500 Some HDDs tend to prioritize sequential I/O so strongly, that concurrent
1501 random I/O latency reaches several seconds.
1502 On some HDDs this happens even if sequential I/O operations
1503 are submitted one at a time, and so setting
1504 .Sy zfs_*_max_active Ns = Sy 1
1506 To prevent non-interactive I/O, like scrub,
1507 from monopolizing the device, no more than
1508 .Sy zfs_vdev_nia_credit operations can be sent
1509 while there are outstanding incomplete interactive operations.
1510 This enforced wait ensures the HDD services the interactive I/O
1511 within a reasonable amount of time.
1512 .No See Sx ZFS I/O SCHEDULER .
1514 .It Sy zfs_vdev_queue_depth_pct Ns = Ns Sy 1000 Ns % Pq uint
1515 Maximum number of queued allocations per top-level vdev expressed as
1517 .Sy zfs_vdev_async_write_max_active ,
1518 which allows the system to detect devices that are more capable
1519 of handling allocations and to allocate more blocks to those devices.
1520 This allows for dynamic allocation distribution when devices are imbalanced,
1521 as fuller devices will tend to be slower than empty devices.
1524 .Sy zio_dva_throttle_enabled .
1526 .It Sy zfs_vdev_def_queue_depth Ns = Ns Sy 32 Pq uint
1527 Default queue depth for each vdev IO allocator.
1528 Higher values allow for better coalescing of sequential writes before sending
1529 them to the disk, but can increase transaction commit times.
1531 .It Sy zfs_vdev_failfast_mask Ns = Ns Sy 1 Pq uint
1532 Defines if the driver should retire on a given error type.
1533 The following options may be bitwise-ored together:
1537 Value Name Description
1539 1 Device No driver retries on device errors
1540 2 Transport No driver retries on transport errors.
1541 4 Driver No driver retries on driver errors.
1544 .It Sy zfs_vdev_disk_max_segs Ns = Ns Sy 0 Pq uint
1545 Maximum number of segments to add to a BIO (min 4).
1546 If this is higher than the maximum allowed by the device queue or the kernel
1547 itself, it will be clamped.
1548 Setting it to zero will cause the kernel's ideal size to be used.
1549 This parameter only applies on Linux.
1550 This parameter is ignored if
1551 .Sy zfs_vdev_disk_classic Ns = Ns Sy 1 .
1553 .It Sy zfs_vdev_disk_classic Ns = Ns Sy 0 Ns | Ns 1 Pq uint
1554 If set to 1, OpenZFS will submit IO to Linux using the method it used in 2.2
1556 This "classic" method has known issues with highly fragmented IO requests and
1557 is slower on many workloads, but it has been in use for many years and is known
1559 If you set this parameter, please also open a bug report why you did so,
1560 including the workload involved and any error messages.
1562 This parameter and the classic submission method will be removed once we have
1563 total confidence in the new method.
1565 This parameter only applies on Linux, and can only be set at module load time.
1567 .It Sy zfs_expire_snapshot Ns = Ns Sy 300 Ns s Pq int
1568 Time before expiring
1571 .It Sy zfs_admin_snapshot Ns = Ns Sy 0 Ns | Ns 1 Pq int
1572 Allow the creation, removal, or renaming of entries in the
1574 directory to cause the creation, destruction, or renaming of snapshots.
1575 When enabled, this functionality works both locally and over NFS exports
1580 .It Sy zfs_snapshot_no_setuid Ns = Ns Sy 0 Ns | Ns 1 Pq int
1583 support for snapshot mounts triggered by access to the
1585 directory by setting the
1589 .It Sy zfs_flags Ns = Ns Sy 0 Pq int
1590 Set additional debugging flags.
1591 The following flags may be bitwise-ored together:
1595 Value Name Description
1597 1 ZFS_DEBUG_DPRINTF Enable dprintf entries in the debug log.
1598 * 2 ZFS_DEBUG_DBUF_VERIFY Enable extra dbuf verifications.
1599 * 4 ZFS_DEBUG_DNODE_VERIFY Enable extra dnode verifications.
1600 8 ZFS_DEBUG_SNAPNAMES Enable snapshot name verification.
1601 * 16 ZFS_DEBUG_MODIFY Check for illegally modified ARC buffers.
1602 64 ZFS_DEBUG_ZIO_FREE Enable verification of block frees.
1603 128 ZFS_DEBUG_HISTOGRAM_VERIFY Enable extra spacemap histogram verifications.
1604 256 ZFS_DEBUG_METASLAB_VERIFY Verify space accounting on disk matches in-memory \fBrange_trees\fP.
1605 512 ZFS_DEBUG_SET_ERROR Enable \fBSET_ERROR\fP and dprintf entries in the debug log.
1606 1024 ZFS_DEBUG_INDIRECT_REMAP Verify split blocks created by device removal.
1607 2048 ZFS_DEBUG_TRIM Verify TRIM ranges are always within the allocatable range tree.
1608 4096 ZFS_DEBUG_LOG_SPACEMAP Verify that the log summary is consistent with the spacemap log
1609 and enable \fBzfs_dbgmsgs\fP for metaslab loading and flushing.
1611 .Sy \& * No Requires debug build .
1613 .It Sy zfs_btree_verify_intensity Ns = Ns Sy 0 Pq uint
1614 Enables btree verification.
1615 The following settings are culminative:
1622 2 Verify pointers from children to parent.
1623 3 Verify element counts.
1624 4 Verify element order. (expensive)
1625 * 5 Verify unused memory is poisoned. (expensive)
1627 .Sy \& * No Requires debug build .
1629 .It Sy zfs_free_leak_on_eio Ns = Ns Sy 0 Ns | Ns 1 Pq int
1630 If destroy encounters an
1632 while reading metadata (e.g. indirect blocks),
1633 space referenced by the missing metadata can not be freed.
1634 Normally this causes the background destroy to become "stalled",
1635 as it is unable to make forward progress.
1636 While in this stalled state, all remaining space to free
1637 from the error-encountering filesystem is "temporarily leaked".
1638 Set this flag to cause it to ignore the
1640 permanently leak the space from indirect blocks that can not be read,
1641 and continue to free everything else that it can.
1643 The default "stalling" behavior is useful if the storage partially
1644 fails (i.e. some but not all I/O operations fail), and then later recovers.
1645 In this case, we will be able to continue pool operations while it is
1646 partially failed, and when it recovers, we can continue to free the
1647 space, with no leaks.
1648 Note, however, that this case is actually fairly rare.
1650 Typically pools either
1651 .Bl -enum -compact -offset 4n -width "1."
1653 fail completely (but perhaps temporarily,
1654 e.g. due to a top-level vdev going offline), or
1656 have localized, permanent errors (e.g. disk returns the wrong data
1657 due to bit flip or firmware bug).
1659 In the former case, this setting does not matter because the
1660 pool will be suspended and the sync thread will not be able to make
1661 forward progress regardless.
1662 In the latter, because the error is permanent, the best we can do
1663 is leak the minimum amount of space,
1664 which is what setting this flag will do.
1665 It is therefore reasonable for this flag to normally be set,
1666 but we chose the more conservative approach of not setting it,
1667 so that there is no possibility of
1668 leaking space in the "partial temporary" failure case.
1670 .It Sy zfs_free_min_time_ms Ns = Ns Sy 1000 Ns ms Po 1s Pc Pq uint
1676 a minimum of this much time will be spent working on freeing blocks per TXG.
1678 .It Sy zfs_obsolete_min_time_ms Ns = Ns Sy 500 Ns ms Pq uint
1680 .Sy zfs_free_min_time_ms ,
1681 but for cleanup of old indirection records for removed vdevs.
1683 .It Sy zfs_immediate_write_sz Ns = Ns Sy 32768 Ns B Po 32 KiB Pc Pq s64
1684 Largest data block to write to the ZIL.
1685 Larger blocks will be treated as if the dataset being written to had the
1686 .Sy logbias Ns = Ns Sy throughput
1689 .It Sy zfs_initialize_value Ns = Ns Sy 16045690984833335022 Po 0xDEADBEEFDEADBEEE Pc Pq u64
1690 Pattern written to vdev free space by
1691 .Xr zpool-initialize 8 .
1693 .It Sy zfs_initialize_chunk_size Ns = Ns Sy 1048576 Ns B Po 1 MiB Pc Pq u64
1694 Size of writes used by
1695 .Xr zpool-initialize 8 .
1696 This option is used by the test suite.
1698 .It Sy zfs_livelist_max_entries Ns = Ns Sy 500000 Po 5*10^5 Pc Pq u64
1699 The threshold size (in block pointers) at which we create a new sub-livelist.
1700 Larger sublists are more costly from a memory perspective but the fewer
1701 sublists there are, the lower the cost of insertion.
1703 .It Sy zfs_livelist_min_percent_shared Ns = Ns Sy 75 Ns % Pq int
1704 If the amount of shared space between a snapshot and its clone drops below
1705 this threshold, the clone turns off the livelist and reverts to the old
1707 This is in place because livelists no long give us a benefit
1708 once a clone has been overwritten enough.
1710 .It Sy zfs_livelist_condense_new_alloc Ns = Ns Sy 0 Pq int
1711 Incremented each time an extra ALLOC blkptr is added to a livelist entry while
1712 it is being condensed.
1713 This option is used by the test suite to track race conditions.
1715 .It Sy zfs_livelist_condense_sync_cancel Ns = Ns Sy 0 Pq int
1716 Incremented each time livelist condensing is canceled while in
1717 .Fn spa_livelist_condense_sync .
1718 This option is used by the test suite to track race conditions.
1720 .It Sy zfs_livelist_condense_sync_pause Ns = Ns Sy 0 Ns | Ns 1 Pq int
1721 When set, the livelist condense process pauses indefinitely before
1722 executing the synctask \(em
1723 .Fn spa_livelist_condense_sync .
1724 This option is used by the test suite to trigger race conditions.
1726 .It Sy zfs_livelist_condense_zthr_cancel Ns = Ns Sy 0 Pq int
1727 Incremented each time livelist condensing is canceled while in
1728 .Fn spa_livelist_condense_cb .
1729 This option is used by the test suite to track race conditions.
1731 .It Sy zfs_livelist_condense_zthr_pause Ns = Ns Sy 0 Ns | Ns 1 Pq int
1732 When set, the livelist condense process pauses indefinitely before
1733 executing the open context condensing work in
1734 .Fn spa_livelist_condense_cb .
1735 This option is used by the test suite to trigger race conditions.
1737 .It Sy zfs_lua_max_instrlimit Ns = Ns Sy 100000000 Po 10^8 Pc Pq u64
1738 The maximum execution time limit that can be set for a ZFS channel program,
1739 specified as a number of Lua instructions.
1741 .It Sy zfs_lua_max_memlimit Ns = Ns Sy 104857600 Po 100 MiB Pc Pq u64
1742 The maximum memory limit that can be set for a ZFS channel program, specified
1745 .It Sy zfs_max_dataset_nesting Ns = Ns Sy 50 Pq int
1746 The maximum depth of nested datasets.
1747 This value can be tuned temporarily to
1748 fix existing datasets that exceed the predefined limit.
1750 .It Sy zfs_max_log_walking Ns = Ns Sy 5 Pq u64
1751 The number of past TXGs that the flushing algorithm of the log spacemap
1752 feature uses to estimate incoming log blocks.
1754 .It Sy zfs_max_logsm_summary_length Ns = Ns Sy 10 Pq u64
1755 Maximum number of rows allowed in the summary of the spacemap log.
1757 .It Sy zfs_max_recordsize Ns = Ns Sy 16777216 Po 16 MiB Pc Pq uint
1758 We currently support block sizes from
1759 .Em 512 Po 512 B Pc No to Em 16777216 Po 16 MiB Pc .
1760 The benefits of larger blocks, and thus larger I/O,
1761 need to be weighed against the cost of COWing a giant block to modify one byte.
1762 Additionally, very large blocks can have an impact on I/O latency,
1763 and also potentially on the memory allocator.
1764 Therefore, we formerly forbade creating blocks larger than 1M.
1765 Larger blocks could be created by changing it,
1766 and pools with larger blocks can always be imported and used,
1767 regardless of this setting.
1769 Note that it is still limited by default to
1771 on x86_32, because Linux's
1772 3/1 memory split doesn't leave much room for 16M chunks.
1774 .It Sy zfs_allow_redacted_dataset_mount Ns = Ns Sy 0 Ns | Ns 1 Pq int
1775 Allow datasets received with redacted send/receive to be mounted.
1776 Normally disabled because these datasets may be missing key data.
1778 .It Sy zfs_min_metaslabs_to_flush Ns = Ns Sy 1 Pq u64
1779 Minimum number of metaslabs to flush per dirty TXG.
1781 .It Sy zfs_metaslab_fragmentation_threshold Ns = Ns Sy 70 Ns % Pq uint
1782 Allow metaslabs to keep their active state as long as their fragmentation
1783 percentage is no more than this value.
1784 An active metaslab that exceeds this threshold
1785 will no longer keep its active status allowing better metaslabs to be selected.
1787 .It Sy zfs_mg_fragmentation_threshold Ns = Ns Sy 95 Ns % Pq uint
1788 Metaslab groups are considered eligible for allocations if their
1789 fragmentation metric (measured as a percentage) is less than or equal to
1791 If a metaslab group exceeds this threshold then it will be
1792 skipped unless all metaslab groups within the metaslab class have also
1793 crossed this threshold.
1795 .It Sy zfs_mg_noalloc_threshold Ns = Ns Sy 0 Ns % Pq uint
1796 Defines a threshold at which metaslab groups should be eligible for allocations.
1797 The value is expressed as a percentage of free space
1798 beyond which a metaslab group is always eligible for allocations.
1799 If a metaslab group's free space is less than or equal to the
1800 threshold, the allocator will avoid allocating to that group
1801 unless all groups in the pool have reached the threshold.
1802 Once all groups have reached the threshold, all groups are allowed to accept
1804 The default value of
1806 disables the feature and causes all metaslab groups to be eligible for
1809 This parameter allows one to deal with pools having heavily imbalanced
1810 vdevs such as would be the case when a new vdev has been added.
1811 Setting the threshold to a non-zero percentage will stop allocations
1812 from being made to vdevs that aren't filled to the specified percentage
1813 and allow lesser filled vdevs to acquire more allocations than they
1814 otherwise would under the old
1815 .Sy zfs_mg_alloc_failures
1818 .It Sy zfs_ddt_data_is_special Ns = Ns Sy 1 Ns | Ns 0 Pq int
1819 If enabled, ZFS will place DDT data into the special allocation class.
1821 .It Sy zfs_user_indirect_is_special Ns = Ns Sy 1 Ns | Ns 0 Pq int
1822 If enabled, ZFS will place user data indirect blocks
1823 into the special allocation class.
1825 .It Sy zfs_multihost_history Ns = Ns Sy 0 Pq uint
1826 Historical statistics for this many latest multihost updates will be available
1828 .Pa /proc/spl/kstat/zfs/ Ns Ao Ar pool Ac Ns Pa /multihost .
1830 .It Sy zfs_multihost_interval Ns = Ns Sy 1000 Ns ms Po 1 s Pc Pq u64
1831 Used to control the frequency of multihost writes which are performed when the
1833 pool property is on.
1834 This is one of the factors used to determine the
1835 length of the activity check during import.
1837 The multihost write period is
1838 .Sy zfs_multihost_interval No / Sy leaf-vdevs .
1839 On average a multihost write will be issued for each leaf vdev
1841 .Sy zfs_multihost_interval
1843 In practice, the observed period can vary with the I/O load
1844 and this observed value is the delay which is stored in the uberblock.
1846 .It Sy zfs_multihost_import_intervals Ns = Ns Sy 20 Pq uint
1847 Used to control the duration of the activity test on import.
1849 .Sy zfs_multihost_import_intervals
1850 will reduce the import time but increase
1851 the risk of failing to detect an active pool.
1852 The total activity check time is never allowed to drop below one second.
1854 On import the activity check waits a minimum amount of time determined by
1855 .Sy zfs_multihost_interval No \(mu Sy zfs_multihost_import_intervals ,
1856 or the same product computed on the host which last had the pool imported,
1857 whichever is greater.
1858 The activity check time may be further extended if the value of MMP
1859 delay found in the best uberblock indicates actual multihost updates happened
1860 at longer intervals than
1861 .Sy zfs_multihost_interval .
1866 .Sy 0 No is equivalent to Sy 1 .
1868 .It Sy zfs_multihost_fail_intervals Ns = Ns Sy 10 Pq uint
1869 Controls the behavior of the pool when multihost write failures or delays are
1874 multihost write failures or delays are ignored.
1875 The failures will still be reported to the ZED which depending on
1876 its configuration may take action such as suspending the pool or offlining a
1879 Otherwise, the pool will be suspended if
1880 .Sy zfs_multihost_fail_intervals No \(mu Sy zfs_multihost_interval
1881 milliseconds pass without a successful MMP write.
1882 This guarantees the activity test will see MMP writes if the pool is imported.
1883 .Sy 1 No is equivalent to Sy 2 ;
1884 this is necessary to prevent the pool from being suspended
1885 due to normal, small I/O latency variations.
1887 .It Sy zfs_no_scrub_io Ns = Ns Sy 0 Ns | Ns 1 Pq int
1888 Set to disable scrub I/O.
1889 This results in scrubs not actually scrubbing data and
1890 simply doing a metadata crawl of the pool instead.
1892 .It Sy zfs_no_scrub_prefetch Ns = Ns Sy 0 Ns | Ns 1 Pq int
1893 Set to disable block prefetching for scrubs.
1895 .It Sy zfs_nocacheflush Ns = Ns Sy 0 Ns | Ns 1 Pq int
1896 Disable cache flush operations on disks when writing.
1897 Setting this will cause pool corruption on power loss
1898 if a volatile out-of-order write cache is enabled.
1900 .It Sy zfs_nopwrite_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
1901 Allow no-operation writes.
1902 The occurrence of nopwrites will further depend on other pool properties
1903 .Pq i.a. the checksumming and compression algorithms .
1905 .It Sy zfs_dmu_offset_next_sync Ns = Ns Sy 1 Ns | Ns 0 Pq int
1906 Enable forcing TXG sync to find holes.
1907 When enabled forces ZFS to sync data when
1908 .Sy SEEK_HOLE No or Sy SEEK_DATA
1909 flags are used allowing holes in a file to be accurately reported.
1910 When disabled holes will not be reported in recently dirtied files.
1912 .It Sy zfs_pd_bytes_max Ns = Ns Sy 52428800 Ns B Po 50 MiB Pc Pq int
1913 The number of bytes which should be prefetched during a pool traversal, like
1915 or other data crawling operations.
1917 .It Sy zfs_traverse_indirect_prefetch_limit Ns = Ns Sy 32 Pq uint
1918 The number of blocks pointed by indirect (non-L0) block which should be
1919 prefetched during a pool traversal, like
1921 or other data crawling operations.
1923 .It Sy zfs_per_txg_dirty_frees_percent Ns = Ns Sy 30 Ns % Pq u64
1924 Control percentage of dirtied indirect blocks from frees allowed into one TXG.
1925 After this threshold is crossed, additional frees will wait until the next TXG.
1926 .Sy 0 No disables this throttle .
1928 .It Sy zfs_prefetch_disable Ns = Ns Sy 0 Ns | Ns 1 Pq int
1929 Disable predictive prefetch.
1930 Note that it leaves "prescient" prefetch
1931 .Pq for, e.g., Nm zfs Cm send
1933 Unlike predictive prefetch, prescient prefetch never issues I/O
1934 that ends up not being needed, so it can't hurt performance.
1936 .It Sy zfs_qat_checksum_disable Ns = Ns Sy 0 Ns | Ns 1 Pq int
1937 Disable QAT hardware acceleration for SHA256 checksums.
1938 May be unset after the ZFS modules have been loaded to initialize the QAT
1939 hardware as long as support is compiled in and the QAT driver is present.
1941 .It Sy zfs_qat_compress_disable Ns = Ns Sy 0 Ns | Ns 1 Pq int
1942 Disable QAT hardware acceleration for gzip compression.
1943 May be unset after the ZFS modules have been loaded to initialize the QAT
1944 hardware as long as support is compiled in and the QAT driver is present.
1946 .It Sy zfs_qat_encrypt_disable Ns = Ns Sy 0 Ns | Ns 1 Pq int
1947 Disable QAT hardware acceleration for AES-GCM encryption.
1948 May be unset after the ZFS modules have been loaded to initialize the QAT
1949 hardware as long as support is compiled in and the QAT driver is present.
1951 .It Sy zfs_vnops_read_chunk_size Ns = Ns Sy 1048576 Ns B Po 1 MiB Pc Pq u64
1952 Bytes to read per chunk.
1954 .It Sy zfs_read_history Ns = Ns Sy 0 Pq uint
1955 Historical statistics for this many latest reads will be available in
1956 .Pa /proc/spl/kstat/zfs/ Ns Ao Ar pool Ac Ns Pa /reads .
1958 .It Sy zfs_read_history_hits Ns = Ns Sy 0 Ns | Ns 1 Pq int
1959 Include cache hits in read history
1961 .It Sy zfs_rebuild_max_segment Ns = Ns Sy 1048576 Ns B Po 1 MiB Pc Pq u64
1962 Maximum read segment size to issue when sequentially resilvering a
1965 .It Sy zfs_rebuild_scrub_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
1966 Automatically start a pool scrub when the last active sequential resilver
1967 completes in order to verify the checksums of all blocks which have been
1969 This is enabled by default and strongly recommended.
1971 .It Sy zfs_rebuild_vdev_limit Ns = Ns Sy 67108864 Ns B Po 64 MiB Pc Pq u64
1972 Maximum amount of I/O that can be concurrently issued for a sequential
1973 resilver per leaf device, given in bytes.
1975 .It Sy zfs_reconstruct_indirect_combinations_max Ns = Ns Sy 4096 Pq int
1976 If an indirect split block contains more than this many possible unique
1977 combinations when being reconstructed, consider it too computationally
1978 expensive to check them all.
1979 Instead, try at most this many randomly selected
1980 combinations each time the block is accessed.
1981 This allows all segment copies to participate fairly
1982 in the reconstruction when all combinations
1983 cannot be checked and prevents repeated use of one bad copy.
1985 .It Sy zfs_recover Ns = Ns Sy 0 Ns | Ns 1 Pq int
1986 Set to attempt to recover from fatal errors.
1987 This should only be used as a last resort,
1988 as it typically results in leaked space, or worse.
1990 .It Sy zfs_removal_ignore_errors Ns = Ns Sy 0 Ns | Ns 1 Pq int
1991 Ignore hard I/O errors during device removal.
1992 When set, if a device encounters a hard I/O error during the removal process
1993 the removal will not be cancelled.
1994 This can result in a normally recoverable block becoming permanently damaged
1995 and is hence not recommended.
1996 This should only be used as a last resort when the
1997 pool cannot be returned to a healthy state prior to removing the device.
1999 .It Sy zfs_removal_suspend_progress Ns = Ns Sy 0 Ns | Ns 1 Pq uint
2000 This is used by the test suite so that it can ensure that certain actions
2001 happen while in the middle of a removal.
2003 .It Sy zfs_remove_max_segment Ns = Ns Sy 16777216 Ns B Po 16 MiB Pc Pq uint
2004 The largest contiguous segment that we will attempt to allocate when removing
2006 If there is a performance problem with attempting to allocate large blocks,
2007 consider decreasing this.
2008 The default value is also the maximum.
2010 .It Sy zfs_resilver_disable_defer Ns = Ns Sy 0 Ns | Ns 1 Pq int
2013 feature, causing an operation that would start a resilver to
2014 immediately restart the one in progress.
2016 .It Sy zfs_resilver_defer_percent Ns = Ns Sy 10 Ns % Pq uint
2017 If the ongoing resilver progress is below this threshold, a new resilver will
2018 restart from scratch instead of being deferred after the current one finishes,
2023 .It Sy zfs_resilver_min_time_ms Ns = Ns Sy 3000 Ns ms Po 3 s Pc Pq uint
2024 Resilvers are processed by the sync thread.
2025 While resilvering, it will spend at least this much time
2026 working on a resilver between TXG flushes.
2028 .It Sy zfs_scan_ignore_errors Ns = Ns Sy 0 Ns | Ns 1 Pq int
2029 If set, remove the DTL (dirty time list) upon completion of a pool scan (scrub),
2030 even if there were unrepairable errors.
2031 Intended to be used during pool repair or recovery to
2032 stop resilvering when the pool is next imported.
2034 .It Sy zfs_scrub_after_expand Ns = Ns Sy 1 Ns | Ns 0 Pq int
2035 Automatically start a pool scrub after a RAIDZ expansion completes
2036 in order to verify the checksums of all blocks which have been
2037 copied during the expansion.
2038 This is enabled by default and strongly recommended.
2040 .It Sy zfs_scrub_min_time_ms Ns = Ns Sy 1000 Ns ms Po 1 s Pc Pq uint
2041 Scrubs are processed by the sync thread.
2042 While scrubbing, it will spend at least this much time
2043 working on a scrub between TXG flushes.
2045 .It Sy zfs_scrub_error_blocks_per_txg Ns = Ns Sy 4096 Pq uint
2046 Error blocks to be scrubbed in one txg.
2048 .It Sy zfs_scan_checkpoint_intval Ns = Ns Sy 7200 Ns s Po 2 hour Pc Pq uint
2049 To preserve progress across reboots, the sequential scan algorithm periodically
2050 needs to stop metadata scanning and issue all the verification I/O to disk.
2051 The frequency of this flushing is determined by this tunable.
2053 .It Sy zfs_scan_fill_weight Ns = Ns Sy 3 Pq uint
2054 This tunable affects how scrub and resilver I/O segments are ordered.
2055 A higher number indicates that we care more about how filled in a segment is,
2056 while a lower number indicates we care more about the size of the extent without
2057 considering the gaps within a segment.
2058 This value is only tunable upon module insertion.
2059 Changing the value afterwards will have no effect on scrub or resilver
2062 .It Sy zfs_scan_issue_strategy Ns = Ns Sy 0 Pq uint
2063 Determines the order that data will be verified while scrubbing or resilvering:
2064 .Bl -tag -compact -offset 4n -width "a"
2066 Data will be verified as sequentially as possible, given the
2067 amount of memory reserved for scrubbing
2068 .Pq see Sy zfs_scan_mem_lim_fact .
2069 This may improve scrub performance if the pool's data is very fragmented.
2071 The largest mostly-contiguous chunk of found data will be verified first.
2072 By deferring scrubbing of small segments, we may later find adjacent data
2073 to coalesce and increase the segment size.
2075 .No Use strategy Sy 1 No during normal verification
2076 .No and strategy Sy 2 No while taking a checkpoint .
2079 .It Sy zfs_scan_legacy Ns = Ns Sy 0 Ns | Ns 1 Pq int
2080 If unset, indicates that scrubs and resilvers will gather metadata in
2081 memory before issuing sequential I/O.
2082 Otherwise indicates that the legacy algorithm will be used,
2083 where I/O is initiated as soon as it is discovered.
2084 Unsetting will not affect scrubs or resilvers that are already in progress.
2086 .It Sy zfs_scan_max_ext_gap Ns = Ns Sy 2097152 Ns B Po 2 MiB Pc Pq int
2087 Sets the largest gap in bytes between scrub/resilver I/O operations
2088 that will still be considered sequential for sorting purposes.
2089 Changing this value will not
2090 affect scrubs or resilvers that are already in progress.
2092 .It Sy zfs_scan_mem_lim_fact Ns = Ns Sy 20 Ns ^-1 Pq uint
2093 Maximum fraction of RAM used for I/O sorting by sequential scan algorithm.
2094 This tunable determines the hard limit for I/O sorting memory usage.
2095 When the hard limit is reached we stop scanning metadata and start issuing
2096 data verification I/O.
2097 This is done until we get below the soft limit.
2099 .It Sy zfs_scan_mem_lim_soft_fact Ns = Ns Sy 20 Ns ^-1 Pq uint
2100 The fraction of the hard limit used to determined the soft limit for I/O sorting
2101 by the sequential scan algorithm.
2102 When we cross this limit from below no action is taken.
2103 When we cross this limit from above it is because we are issuing verification
2105 In this case (unless the metadata scan is done) we stop issuing verification I/O
2106 and start scanning metadata again until we get to the hard limit.
2108 .It Sy zfs_scan_report_txgs Ns = Ns Sy 0 Ns | Ns 1 Pq uint
2109 When reporting resilver throughput and estimated completion time use the
2110 performance observed over roughly the last
2111 .Sy zfs_scan_report_txgs
2113 When set to zero performance is calculated over the time between checkpoints.
2115 .It Sy zfs_scan_strict_mem_lim Ns = Ns Sy 0 Ns | Ns 1 Pq int
2116 Enforce tight memory limits on pool scans when a sequential scan is in progress.
2117 When disabled, the memory limit may be exceeded by fast disks.
2119 .It Sy zfs_scan_suspend_progress Ns = Ns Sy 0 Ns | Ns 1 Pq int
2120 Freezes a scrub/resilver in progress without actually pausing it.
2121 Intended for testing/debugging.
2123 .It Sy zfs_scan_vdev_limit Ns = Ns Sy 16777216 Ns B Po 16 MiB Pc Pq int
2124 Maximum amount of data that can be concurrently issued at once for scrubs and
2125 resilvers per leaf device, given in bytes.
2127 .It Sy zfs_send_corrupt_data Ns = Ns Sy 0 Ns | Ns 1 Pq int
2128 Allow sending of corrupt data (ignore read/checksum errors when sending).
2130 .It Sy zfs_send_unmodified_spill_blocks Ns = Ns Sy 1 Ns | Ns 0 Pq int
2131 Include unmodified spill blocks in the send stream.
2132 Under certain circumstances, previous versions of ZFS could incorrectly
2133 remove the spill block from an existing object.
2134 Including unmodified copies of the spill blocks creates a backwards-compatible
2135 stream which will recreate a spill block if it was incorrectly removed.
2137 .It Sy zfs_send_no_prefetch_queue_ff Ns = Ns Sy 20 Ns ^\-1 Pq uint
2138 The fill fraction of the
2141 The fill fraction controls the timing with which internal threads are woken up.
2143 .It Sy zfs_send_no_prefetch_queue_length Ns = Ns Sy 1048576 Ns B Po 1 MiB Pc Pq uint
2144 The maximum number of bytes allowed in
2145 .Nm zfs Cm send Ns 's
2148 .It Sy zfs_send_queue_ff Ns = Ns Sy 20 Ns ^\-1 Pq uint
2149 The fill fraction of the
2152 The fill fraction controls the timing with which internal threads are woken up.
2154 .It Sy zfs_send_queue_length Ns = Ns Sy 16777216 Ns B Po 16 MiB Pc Pq uint
2155 The maximum number of bytes allowed that will be prefetched by
2157 This value must be at least twice the maximum block size in use.
2159 .It Sy zfs_recv_queue_ff Ns = Ns Sy 20 Ns ^\-1 Pq uint
2160 The fill fraction of the
2163 The fill fraction controls the timing with which internal threads are woken up.
2165 .It Sy zfs_recv_queue_length Ns = Ns Sy 16777216 Ns B Po 16 MiB Pc Pq uint
2166 The maximum number of bytes allowed in the
2169 This value must be at least twice the maximum block size in use.
2171 .It Sy zfs_recv_write_batch_size Ns = Ns Sy 1048576 Ns B Po 1 MiB Pc Pq uint
2172 The maximum amount of data, in bytes, that
2174 will write in one DMU transaction.
2175 This is the uncompressed size, even when receiving a compressed send stream.
2176 This setting will not reduce the write size below a single block.
2177 Capped at a maximum of
2180 .It Sy zfs_recv_best_effort_corrective Ns = Ns Sy 0 Pq int
2181 When this variable is set to non-zero a corrective receive:
2182 .Bl -enum -compact -offset 4n -width "1."
2184 Does not enforce the restriction of source & destination snapshot GUIDs
2187 If there is an error during healing, the healing receive is not
2188 terminated instead it moves on to the next record.
2191 .It Sy zfs_override_estimate_recordsize Ns = Ns Sy 0 Ns | Ns 1 Pq uint
2192 Setting this variable overrides the default logic for estimating block
2195 The default heuristic is that the average block size
2196 will be the current recordsize.
2197 Override this value if most data in your dataset is not of that size
2198 and you require accurate zfs send size estimates.
2200 .It Sy zfs_sync_pass_deferred_free Ns = Ns Sy 2 Pq uint
2201 Flushing of data to disk is done in passes.
2202 Defer frees starting in this pass.
2204 .It Sy zfs_spa_discard_memory_limit Ns = Ns Sy 16777216 Ns B Po 16 MiB Pc Pq int
2205 Maximum memory used for prefetching a checkpoint's space map on each
2206 vdev while discarding the checkpoint.
2208 .It Sy zfs_special_class_metadata_reserve_pct Ns = Ns Sy 25 Ns % Pq uint
2209 Only allow small data blocks to be allocated on the special and dedup vdev
2210 types when the available free space percentage on these vdevs exceeds this
2212 This ensures reserved space is available for pool metadata as the
2213 special vdevs approach capacity.
2215 .It Sy zfs_sync_pass_dont_compress Ns = Ns Sy 8 Pq uint
2216 Starting in this sync pass, disable compression (including of metadata).
2217 With the default setting, in practice, we don't have this many sync passes,
2218 so this has no effect.
2220 The original intent was that disabling compression would help the sync passes
2222 However, in practice, disabling compression increases
2223 the average number of sync passes; because when we turn compression off,
2224 many blocks' size will change, and thus we have to re-allocate
2225 (not overwrite) them.
2226 It also increases the number of
2228 allocations (e.g. for indirect blocks and spacemaps)
2229 because these will not be compressed.
2232 allocations are especially detrimental to performance
2233 on highly fragmented systems, which may have very few free segments of this
2235 and may need to load new metaslabs to satisfy these allocations.
2237 .It Sy zfs_sync_pass_rewrite Ns = Ns Sy 2 Pq uint
2238 Rewrite new block pointers starting in this pass.
2240 .It Sy zfs_trim_extent_bytes_max Ns = Ns Sy 134217728 Ns B Po 128 MiB Pc Pq uint
2241 Maximum size of TRIM command.
2242 Larger ranges will be split into chunks no larger than this value before
2245 .It Sy zfs_trim_extent_bytes_min Ns = Ns Sy 32768 Ns B Po 32 KiB Pc Pq uint
2246 Minimum size of TRIM commands.
2247 TRIM ranges smaller than this will be skipped,
2248 unless they're part of a larger range which was chunked.
2249 This is done because it's common for these small TRIMs
2250 to negatively impact overall performance.
2252 .It Sy zfs_trim_metaslab_skip Ns = Ns Sy 0 Ns | Ns 1 Pq uint
2253 Skip uninitialized metaslabs during the TRIM process.
2254 This option is useful for pools constructed from large thinly-provisioned
2256 where TRIM operations are slow.
2257 As a pool ages, an increasing fraction of the pool's metaslabs
2258 will be initialized, progressively degrading the usefulness of this option.
2259 This setting is stored when starting a manual TRIM and will
2260 persist for the duration of the requested TRIM.
2262 .It Sy zfs_trim_queue_limit Ns = Ns Sy 10 Pq uint
2263 Maximum number of queued TRIMs outstanding per leaf vdev.
2264 The number of concurrent TRIM commands issued to the device is controlled by
2265 .Sy zfs_vdev_trim_min_active No and Sy zfs_vdev_trim_max_active .
2267 .It Sy zfs_trim_txg_batch Ns = Ns Sy 32 Pq uint
2268 The number of transaction groups' worth of frees which should be aggregated
2269 before TRIM operations are issued to the device.
2270 This setting represents a trade-off between issuing larger,
2271 more efficient TRIM operations and the delay
2272 before the recently trimmed space is available for use by the device.
2274 Increasing this value will allow frees to be aggregated for a longer time.
2275 This will result is larger TRIM operations and potentially increased memory
2277 Decreasing this value will have the opposite effect.
2280 was determined to be a reasonable compromise.
2282 .It Sy zfs_txg_history Ns = Ns Sy 100 Pq uint
2283 Historical statistics for this many latest TXGs will be available in
2284 .Pa /proc/spl/kstat/zfs/ Ns Ao Ar pool Ac Ns Pa /TXGs .
2286 .It Sy zfs_txg_timeout Ns = Ns Sy 5 Ns s Pq uint
2287 Flush dirty data to disk at least every this many seconds (maximum TXG
2290 .It Sy zfs_vdev_aggregation_limit Ns = Ns Sy 1048576 Ns B Po 1 MiB Pc Pq uint
2291 Max vdev I/O aggregation size.
2293 .It Sy zfs_vdev_aggregation_limit_non_rotating Ns = Ns Sy 131072 Ns B Po 128 KiB Pc Pq uint
2294 Max vdev I/O aggregation size for non-rotating media.
2296 .It Sy zfs_vdev_mirror_rotating_inc Ns = Ns Sy 0 Pq int
2297 A number by which the balancing algorithm increments the load calculation for
2298 the purpose of selecting the least busy mirror member when an I/O operation
2299 immediately follows its predecessor on rotational vdevs
2300 for the purpose of making decisions based on load.
2302 .It Sy zfs_vdev_mirror_rotating_seek_inc Ns = Ns Sy 5 Pq int
2303 A number by which the balancing algorithm increments the load calculation for
2304 the purpose of selecting the least busy mirror member when an I/O operation
2305 lacks locality as defined by
2306 .Sy zfs_vdev_mirror_rotating_seek_offset .
2307 Operations within this that are not immediately following the previous operation
2308 are incremented by half.
2310 .It Sy zfs_vdev_mirror_rotating_seek_offset Ns = Ns Sy 1048576 Ns B Po 1 MiB Pc Pq int
2311 The maximum distance for the last queued I/O operation in which
2312 the balancing algorithm considers an operation to have locality.
2313 .No See Sx ZFS I/O SCHEDULER .
2315 .It Sy zfs_vdev_mirror_non_rotating_inc Ns = Ns Sy 0 Pq int
2316 A number by which the balancing algorithm increments the load calculation for
2317 the purpose of selecting the least busy mirror member on non-rotational vdevs
2318 when I/O operations do not immediately follow one another.
2320 .It Sy zfs_vdev_mirror_non_rotating_seek_inc Ns = Ns Sy 1 Pq int
2321 A number by which the balancing algorithm increments the load calculation for
2322 the purpose of selecting the least busy mirror member when an I/O operation
2324 locality as defined by the
2325 .Sy zfs_vdev_mirror_rotating_seek_offset .
2326 Operations within this that are not immediately following the previous operation
2327 are incremented by half.
2329 .It Sy zfs_vdev_read_gap_limit Ns = Ns Sy 32768 Ns B Po 32 KiB Pc Pq uint
2330 Aggregate read I/O operations if the on-disk gap between them is within this
2333 .It Sy zfs_vdev_write_gap_limit Ns = Ns Sy 4096 Ns B Po 4 KiB Pc Pq uint
2334 Aggregate write I/O operations if the on-disk gap between them is within this
2337 .It Sy zfs_vdev_raidz_impl Ns = Ns Sy fastest Pq string
2338 Select the raidz parity implementation to use.
2340 Variants that don't depend on CPU-specific features
2341 may be selected on module load, as they are supported on all systems.
2342 The remaining options may only be set after the module is loaded,
2343 as they are available only if the implementations are compiled in
2344 and supported on the running system.
2346 Once the module is loaded,
2347 .Pa /sys/module/zfs/parameters/zfs_vdev_raidz_impl
2348 will show the available options,
2349 with the currently selected one enclosed in square brackets.
2353 fastest selected by built-in benchmark
2354 original original implementation
2355 scalar scalar implementation
2356 sse2 SSE2 instruction set 64-bit x86
2357 ssse3 SSSE3 instruction set 64-bit x86
2358 avx2 AVX2 instruction set 64-bit x86
2359 avx512f AVX512F instruction set 64-bit x86
2360 avx512bw AVX512F & AVX512BW instruction sets 64-bit x86
2361 aarch64_neon NEON Aarch64/64-bit ARMv8
2362 aarch64_neonx2 NEON with more unrolling Aarch64/64-bit ARMv8
2363 powerpc_altivec Altivec PowerPC
2366 .It Sy zfs_vdev_scheduler Pq charp
2368 Prints warning to kernel log for compatibility.
2370 .It Sy zfs_zevent_len_max Ns = Ns Sy 512 Pq uint
2371 Max event queue length.
2372 Events in the queue can be viewed with
2373 .Xr zpool-events 8 .
2375 .It Sy zfs_zevent_retain_max Ns = Ns Sy 2000 Pq int
2376 Maximum recent zevent records to retain for duplicate checking.
2379 disables duplicate detection.
2381 .It Sy zfs_zevent_retain_expire_secs Ns = Ns Sy 900 Ns s Po 15 min Pc Pq int
2382 Lifespan for a recent ereport that was retained for duplicate checking.
2384 .It Sy zfs_zil_clean_taskq_maxalloc Ns = Ns Sy 1048576 Pq int
2385 The maximum number of taskq entries that are allowed to be cached.
2386 When this limit is exceeded transaction records (itxs)
2387 will be cleaned synchronously.
2389 .It Sy zfs_zil_clean_taskq_minalloc Ns = Ns Sy 1024 Pq int
2390 The number of taskq entries that are pre-populated when the taskq is first
2391 created and are immediately available for use.
2393 .It Sy zfs_zil_clean_taskq_nthr_pct Ns = Ns Sy 100 Ns % Pq int
2394 This controls the number of threads used by
2395 .Sy dp_zil_clean_taskq .
2396 The default value of
2398 will create a maximum of one thread per cpu.
2400 .It Sy zil_maxblocksize Ns = Ns Sy 131072 Ns B Po 128 KiB Pc Pq uint
2401 This sets the maximum block size used by the ZIL.
2402 On very fragmented pools, lowering this
2403 .Pq typically to Sy 36 KiB
2404 can improve performance.
2406 .It Sy zil_maxcopied Ns = Ns Sy 7680 Ns B Po 7.5 KiB Pc Pq uint
2407 This sets the maximum number of write bytes logged via WR_COPIED.
2408 It tunes a tradeoff between additional memory copy and possibly worse log
2409 space efficiency vs additional range lock/unlock.
2411 .It Sy zil_nocacheflush Ns = Ns Sy 0 Ns | Ns 1 Pq int
2412 Disable the cache flush commands that are normally sent to disk by
2413 the ZIL after an LWB write has completed.
2414 Setting this will cause ZIL corruption on power loss
2415 if a volatile out-of-order write cache is enabled.
2417 .It Sy zil_replay_disable Ns = Ns Sy 0 Ns | Ns 1 Pq int
2418 Disable intent logging replay.
2419 Can be disabled for recovery from corrupted ZIL.
2421 .It Sy zil_slog_bulk Ns = Ns Sy 67108864 Ns B Po 64 MiB Pc Pq u64
2422 Limit SLOG write size per commit executed with synchronous priority.
2423 Any writes above that will be executed with lower (asynchronous) priority
2424 to limit potential SLOG device abuse by single active ZIL writer.
2426 .It Sy zfs_zil_saxattr Ns = Ns Sy 1 Ns | Ns 0 Pq int
2427 Setting this tunable to zero disables ZIL logging of new
2428 .Sy xattr Ns = Ns Sy sa
2430 .Sy org.openzfs:zilsaxattr
2431 feature is enabled on the pool.
2432 This would only be necessary to work around bugs in the ZIL logging or replay
2433 code for this record type.
2434 The tunable has no effect if the feature is disabled.
2436 .It Sy zfs_embedded_slog_min_ms Ns = Ns Sy 64 Pq uint
2437 Usually, one metaslab from each normal-class vdev is dedicated for use by
2438 the ZIL to log synchronous writes.
2439 However, if there are fewer than
2440 .Sy zfs_embedded_slog_min_ms
2441 metaslabs in the vdev, this functionality is disabled.
2442 This ensures that we don't set aside an unreasonable amount of space for the
2445 .It Sy zstd_earlyabort_pass Ns = Ns Sy 1 Pq uint
2446 Whether heuristic for detection of incompressible data with zstd levels >= 3
2447 using LZ4 and zstd-1 passes is enabled.
2449 .It Sy zstd_abort_size Ns = Ns Sy 131072 Pq uint
2450 Minimal uncompressed size (inclusive) of a record before the early abort
2451 heuristic will be attempted.
2453 .It Sy zio_deadman_log_all Ns = Ns Sy 0 Ns | Ns 1 Pq int
2454 If non-zero, the zio deadman will produce debugging messages
2455 .Pq see Sy zfs_dbgmsg_enable
2456 for all zios, rather than only for leaf zios possessing a vdev.
2457 This is meant to be used by developers to gain
2458 diagnostic information for hang conditions which don't involve a mutex
2459 or other locking primitive: typically conditions in which a thread in
2460 the zio pipeline is looping indefinitely.
2462 .It Sy zio_slow_io_ms Ns = Ns Sy 30000 Ns ms Po 30 s Pc Pq int
2463 When an I/O operation takes more than this much time to complete,
2464 it's marked as slow.
2465 Each slow operation causes a delay zevent.
2466 Slow I/O counters can be seen with
2467 .Nm zpool Cm status Fl s .
2469 .It Sy zio_dva_throttle_enabled Ns = Ns Sy 1 Ns | Ns 0 Pq int
2470 Throttle block allocations in the I/O pipeline.
2471 This allows for dynamic allocation distribution when devices are imbalanced.
2472 When enabled, the maximum number of pending allocations per top-level vdev
2474 .Sy zfs_vdev_queue_depth_pct .
2476 .It Sy zfs_xattr_compat Ns = Ns 0 Ns | Ns 1 Pq int
2477 Control the naming scheme used when setting new xattrs in the user namespace.
2480 .Pq the default on Linux ,
2481 user namespace xattr names are prefixed with the namespace, to be backwards
2482 compatible with previous versions of ZFS on Linux.
2485 .Pq the default on Fx ,
2486 user namespace xattr names are not prefixed, to be backwards compatible with
2487 previous versions of ZFS on illumos and
2490 Either naming scheme can be read on this and future versions of ZFS, regardless
2491 of this tunable, but legacy ZFS on illumos or
2493 are unable to read user namespace xattrs written in the Linux format, and
2494 legacy versions of ZFS on Linux are unable to read user namespace xattrs written
2495 in the legacy ZFS format.
2497 An existing xattr with the alternate naming scheme is removed when overwriting
2498 the xattr so as to not accumulate duplicates.
2500 .It Sy zio_requeue_io_start_cut_in_line Ns = Ns Sy 0 Ns | Ns 1 Pq int
2501 Prioritize requeued I/O.
2503 .It Sy zio_taskq_batch_pct Ns = Ns Sy 80 Ns % Pq uint
2504 Percentage of online CPUs which will run a worker thread for I/O.
2505 These workers are responsible for I/O work such as compression, encryption,
2506 checksum and parity calculations.
2507 Fractional number of CPUs will be rounded down.
2509 The default value of
2511 was chosen to avoid using all CPUs which can result in
2512 latency issues and inconsistent application performance,
2513 especially when slower compression and/or checksumming is enabled.
2514 Set value only applies to pools imported/created after that.
2516 .It Sy zio_taskq_batch_tpq Ns = Ns Sy 0 Pq uint
2517 Number of worker threads per taskq.
2518 Higher values improve I/O ordering and CPU utilization,
2519 while lower reduce lock contention.
2520 Set value only applies to pools imported/created after that.
2524 generate a system-dependent value close to 6 threads per taskq.
2525 Set value only applies to pools imported/created after that.
2527 .It Sy zio_taskq_write_tpq Ns = Ns Sy 16 Pq uint
2528 Determines the minumum number of threads per write issue taskq.
2529 Higher values improve CPU utilization on high throughput,
2530 while lower reduce taskq locks contention on high IOPS.
2531 Set value only applies to pools imported/created after that.
2533 .It Sy zio_taskq_read Ns = Ns Sy fixed,1,8 null scale null Pq charp
2534 Set the queue and thread configuration for the IO read queues.
2535 This is an advanced debugging parameter.
2536 Don't change this unless you understand what it does.
2537 Set values only apply to pools imported/created after that.
2539 .It Sy zio_taskq_write Ns = Ns Sy sync null scale null Pq charp
2540 Set the queue and thread configuration for the IO write queues.
2541 This is an advanced debugging parameter.
2542 Don't change this unless you understand what it does.
2543 Set values only apply to pools imported/created after that.
2545 .It Sy zvol_inhibit_dev Ns = Ns Sy 0 Ns | Ns 1 Pq uint
2546 Do not create zvol device nodes.
2547 This may slightly improve startup time on
2548 systems with a very large number of zvols.
2550 .It Sy zvol_major Ns = Ns Sy 230 Pq uint
2551 Major number for zvol block devices.
2553 .It Sy zvol_max_discard_blocks Ns = Ns Sy 16384 Pq long
2554 Discard (TRIM) operations done on zvols will be done in batches of this
2555 many blocks, where block size is determined by the
2559 .It Sy zvol_prefetch_bytes Ns = Ns Sy 131072 Ns B Po 128 KiB Pc Pq uint
2560 When adding a zvol to the system, prefetch this many bytes
2561 from the start and end of the volume.
2562 Prefetching these regions of the volume is desirable,
2563 because they are likely to be accessed immediately by
2565 or the kernel partitioner.
2567 .It Sy zvol_request_sync Ns = Ns Sy 0 Ns | Ns 1 Pq uint
2568 When processing I/O requests for a zvol, submit them synchronously.
2569 This effectively limits the queue depth to
2571 for each I/O submitter.
2572 When unset, requests are handled asynchronously by a thread pool.
2573 The number of requests which can be handled concurrently is controlled by
2575 .Sy zvol_request_sync
2576 is ignored when running on a kernel that supports block multiqueue
2579 .It Sy zvol_num_taskqs Ns = Ns Sy 0 Pq uint
2580 Number of zvol taskqs.
2583 (the default) then scaling is done internally to prefer 6 threads per taskq.
2584 This only applies on Linux.
2586 .It Sy zvol_threads Ns = Ns Sy 0 Pq uint
2587 The number of system wide threads to use for processing zvol block IOs.
2590 (the default) then internally set
2592 to the number of CPUs present or 32 (whichever is greater).
2594 .It Sy zvol_blk_mq_threads Ns = Ns Sy 0 Pq uint
2595 The number of threads per zvol to use for queuing IO requests.
2596 This parameter will only appear if your kernel supports
2598 and is only read and assigned to a zvol at zvol load time.
2601 (the default) then internally set
2602 .Sy zvol_blk_mq_threads
2603 to the number of CPUs present.
2605 .It Sy zvol_use_blk_mq Ns = Ns Sy 0 Ns | Ns 1 Pq uint
2613 (the default) to use the legacy zvol APIs.
2614 This setting can give better or worse zvol performance depending on
2616 This parameter will only appear if your kernel supports
2618 and is only read and assigned to a zvol at zvol load time.
2620 .It Sy zvol_blk_mq_blocks_per_thread Ns = Ns Sy 8 Pq uint
2623 is enabled, then process this number of
2624 .Sy volblocksize Ns -sized blocks per zvol thread.
2625 This tunable can be use to favor better performance for zvol reads (lower
2626 values) or writes (higher values).
2629 then the zvol layer will process the maximum number of blocks
2630 per thread that it can.
2631 This parameter will only appear if your kernel supports
2633 and is only applied at each zvol's load time.
2635 .It Sy zvol_blk_mq_queue_depth Ns = Ns Sy 0 Pq uint
2636 The queue_depth value for the zvol
2639 This parameter will only appear if your kernel supports
2641 and is only applied at each zvol's load time.
2644 (the default) then use the kernel's default queue depth.
2645 Values are clamped to the kernel's
2648 .Dv BLKDEV_MAX_RQ Ns / Ns Dv BLKDEV_DEFAULT_RQ
2651 .It Sy zvol_volmode Ns = Ns Sy 1 Pq uint
2652 Defines zvol block devices behaviour when
2653 .Sy volmode Ns = Ns Sy default :
2654 .Bl -tag -compact -offset 4n -width "a"
2656 .No equivalent to Sy full
2658 .No equivalent to Sy dev
2660 .No equivalent to Sy none
2663 .It Sy zvol_enforce_quotas Ns = Ns Sy 0 Ns | Ns 1 Pq uint
2664 Enable strict ZVOL quota enforcement.
2665 The strict quota enforcement may have a performance impact.
2668 .Sh ZFS I/O SCHEDULER
2669 ZFS issues I/O operations to leaf vdevs to satisfy and complete I/O operations.
2670 The scheduler determines when and in what order those operations are issued.
2671 The scheduler divides operations into five I/O classes,
2672 prioritized in the following order: sync read, sync write, async read,
2673 async write, and scrub/resilver.
2674 Each queue defines the minimum and maximum number of concurrent operations
2675 that may be issued to the device.
2676 In addition, the device has an aggregate maximum,
2677 .Sy zfs_vdev_max_active .
2678 Note that the sum of the per-queue minima must not exceed the aggregate maximum.
2679 If the sum of the per-queue maxima exceeds the aggregate maximum,
2680 then the number of active operations may reach
2681 .Sy zfs_vdev_max_active ,
2682 in which case no further operations will be issued,
2683 regardless of whether all per-queue minima have been met.
2685 For many physical devices, throughput increases with the number of
2686 concurrent operations, but latency typically suffers.
2687 Furthermore, physical devices typically have a limit
2688 at which more concurrent operations have no
2689 effect on throughput or can actually cause it to decrease.
2691 The scheduler selects the next operation to issue by first looking for an
2692 I/O class whose minimum has not been satisfied.
2693 Once all are satisfied and the aggregate maximum has not been hit,
2694 the scheduler looks for classes whose maximum has not been satisfied.
2695 Iteration through the I/O classes is done in the order specified above.
2696 No further operations are issued
2697 if the aggregate maximum number of concurrent operations has been hit,
2698 or if there are no operations queued for an I/O class that has not hit its
2700 Every time an I/O operation is queued or an operation completes,
2701 the scheduler looks for new operations to issue.
2705 will lead to lower latency of synchronous operations.
2708 may lead to higher overall throughput, depending on underlying storage.
2710 The ratio of the queues'
2712 determines the balance of performance between reads, writes, and scrubs.
2713 For example, increasing
2714 .Sy zfs_vdev_scrub_max_active
2715 will cause the scrub or resilver to complete more quickly,
2716 but reads and writes to have higher latency and lower throughput.
2718 All I/O classes have a fixed maximum number of outstanding operations,
2719 except for the async write class.
2720 Asynchronous writes represent the data that is committed to stable storage
2721 during the syncing stage for transaction groups.
2722 Transaction groups enter the syncing state periodically,
2723 so the number of queued async writes will quickly burst up
2724 and then bleed down to zero.
2725 Rather than servicing them as quickly as possible,
2726 the I/O scheduler changes the maximum number of active async write operations
2727 according to the amount of dirty data in the pool.
2728 Since both throughput and latency typically increase with the number of
2729 concurrent operations issued to physical devices, reducing the
2730 burstiness in the number of simultaneous operations also stabilizes the
2731 response time of operations from other queues, in particular synchronous ones.
2732 In broad strokes, the I/O scheduler will issue more concurrent operations
2733 from the async write queue as there is more dirty data in the pool.
2736 The number of concurrent operations issued for the async write I/O class
2737 follows a piece-wise linear function defined by a few adjustable points:
2739 | o---------| <-- \fBzfs_vdev_async_write_max_active\fP
2746 |-------o | | <-- \fBzfs_vdev_async_write_min_active\fP
2747 0|_______^______|_________|
2748 0% | | 100% of \fBzfs_dirty_data_max\fP
2750 | `-- \fBzfs_vdev_async_write_active_max_dirty_percent\fP
2751 `--------- \fBzfs_vdev_async_write_active_min_dirty_percent\fP
2754 Until the amount of dirty data exceeds a minimum percentage of the dirty
2755 data allowed in the pool, the I/O scheduler will limit the number of
2756 concurrent operations to the minimum.
2757 As that threshold is crossed, the number of concurrent operations issued
2758 increases linearly to the maximum at the specified maximum percentage
2759 of the dirty data allowed in the pool.
2761 Ideally, the amount of dirty data on a busy pool will stay in the sloped
2762 part of the function between
2763 .Sy zfs_vdev_async_write_active_min_dirty_percent
2765 .Sy zfs_vdev_async_write_active_max_dirty_percent .
2766 If it exceeds the maximum percentage,
2767 this indicates that the rate of incoming data is
2768 greater than the rate that the backend storage can handle.
2769 In this case, we must further throttle incoming writes,
2770 as described in the next section.
2772 .Sh ZFS TRANSACTION DELAY
2773 We delay transactions when we've determined that the backend storage
2774 isn't able to accommodate the rate of incoming writes.
2776 If there is already a transaction waiting, we delay relative to when
2777 that transaction will finish waiting.
2778 This way the calculated delay time
2779 is independent of the number of threads concurrently executing transactions.
2781 If we are the only waiter, wait relative to when the transaction started,
2782 rather than the current time.
2783 This credits the transaction for "time already served",
2784 e.g. reading indirect blocks.
2786 The minimum time for a transaction to take is calculated as
2787 .D1 min_time = min( Ns Sy zfs_delay_scale No \(mu Po Sy dirty No \- Sy min Pc / Po Sy max No \- Sy dirty Pc , 100ms)
2789 The delay has two degrees of freedom that can be adjusted via tunables.
2790 The percentage of dirty data at which we start to delay is defined by
2791 .Sy zfs_delay_min_dirty_percent .
2792 This should typically be at or above
2793 .Sy zfs_vdev_async_write_active_max_dirty_percent ,
2794 so that we only start to delay after writing at full speed
2795 has failed to keep up with the incoming write rate.
2796 The scale of the curve is defined by
2797 .Sy zfs_delay_scale .
2798 Roughly speaking, this variable determines the amount of delay at the midpoint
2802 10ms +-------------------------------------------------------------*+
2818 2ms + (midpoint) * +
2821 | \fBzfs_delay_scale\fP ----------> ******** |
2822 0 +-------------------------------------*********----------------+
2823 0% <- \fBzfs_dirty_data_max\fP -> 100%
2826 Note, that since the delay is added to the outstanding time remaining on the
2827 most recent transaction it's effectively the inverse of IOPS.
2828 Here, the midpoint of
2832 The shape of the curve
2833 was chosen such that small changes in the amount of accumulated dirty data
2834 in the first three quarters of the curve yield relatively small differences
2835 in the amount of delay.
2837 The effects can be easier to understand when the amount of delay is
2838 represented on a logarithmic scale:
2841 100ms +-------------------------------------------------------------++
2850 + \fBzfs_delay_scale\fP ----------> ***** +
2861 +--------------------------------------------------------------+
2862 0% <- \fBzfs_dirty_data_max\fP -> 100%
2865 Note here that only as the amount of dirty data approaches its limit does
2866 the delay start to increase rapidly.
2867 The goal of a properly tuned system should be to keep the amount of dirty data
2868 out of that range by first ensuring that the appropriate limits are set
2869 for the I/O scheduler to reach optimal throughput on the back-end storage,
2870 and then by changing the value of
2872 to increase the steepness of the curve.