1eda14cbcSMatt Macy# This file exports variables for each tunable used in the test suite. 2eda14cbcSMatt Macy# 3eda14cbcSMatt Macy# Different platforms use different names for most tunables. To avoid littering 4eda14cbcSMatt Macy# the tests with conditional logic for deciding how to set each tunable, the 5eda14cbcSMatt Macy# logic is instead consolidated to this one file. 6eda14cbcSMatt Macy# 7eda14cbcSMatt Macy# Any use of tunables in tests must use a name defined here. New entries 8eda14cbcSMatt Macy# should be added to the table as needed. Please keep the table sorted 9eda14cbcSMatt Macy# alphabetically for ease of maintenance. 10eda14cbcSMatt Macy# 11eda14cbcSMatt Macy# Platform-specific tunables should still use a NAME from this table for 12eda14cbcSMatt Macy# consistency. Enter UNSUPPORTED in the column for platforms on which the 13eda14cbcSMatt Macy# tunable is not implemented. 14eda14cbcSMatt Macy 15eda14cbcSMatt MacyUNAME=$(uname) 16eda14cbcSMatt Macy 17eda14cbcSMatt Macy# NAME FreeBSD tunable Linux tunable 18eda14cbcSMatt Macycat <<%%%% | 19eda14cbcSMatt MacyADMIN_SNAPSHOT UNSUPPORTED zfs_admin_snapshot 20eda14cbcSMatt MacyALLOW_REDACTED_DATASET_MOUNT allow_redacted_dataset_mount zfs_allow_redacted_dataset_mount 21eda14cbcSMatt MacyARC_MAX arc.max zfs_arc_max 22eda14cbcSMatt MacyARC_MIN arc.min zfs_arc_min 23eda14cbcSMatt MacyASYNC_BLOCK_MAX_BLOCKS async_block_max_blocks zfs_async_block_max_blocks 24eda14cbcSMatt MacyCHECKSUM_EVENTS_PER_SECOND checksum_events_per_second zfs_checksum_events_per_second 25eda14cbcSMatt MacyCOMMIT_TIMEOUT_PCT commit_timeout_pct zfs_commit_timeout_pct 26eda14cbcSMatt MacyCOMPRESSED_ARC_ENABLED compressed_arc_enabled zfs_compressed_arc_enabled 27eda14cbcSMatt MacyCONDENSE_INDIRECT_COMMIT_ENTRY_DELAY_MS condense.indirect_commit_entry_delay_ms zfs_condense_indirect_commit_entry_delay_ms 2816038816SMartin MatuskaCONDENSE_INDIRECT_OBSOLETE_PCT condense.indirect_obsolete_pct zfs_condense_indirect_obsolete_pct 29eda14cbcSMatt MacyCONDENSE_MIN_MAPPING_BYTES condense.min_mapping_bytes zfs_condense_min_mapping_bytes 301f88aa09SMartin MatuskaDBUF_CACHE_SHIFT dbuf.cache_shift dbuf_cache_shift 31ce4dcb97SMartin MatuskaDDT_ZAP_DEFAULT_BS dedup.ddt_zap_default_bs ddt_zap_default_bs 32ce4dcb97SMartin MatuskaDDT_ZAP_DEFAULT_IBS dedup.ddt_zap_default_ibs ddt_zap_default_ibs 33ce4dcb97SMartin MatuskaDDT_DATA_IS_SPECIAL ddt_data_is_special zfs_ddt_data_is_special 34e2df9bb4SMartin MatuskaDEDUP_LOG_TXG_MAX dedup.log_txg_max zfs_dedup_log_txg_max 359db44a8eSMartin MatuskaDEADMAN_CHECKTIME_MS deadman.checktime_ms zfs_deadman_checktime_ms 36aca928a5SMartin MatuskaDEADMAN_EVENTS_PER_SECOND deadman_events_per_second zfs_deadman_events_per_second 379db44a8eSMartin MatuskaDEADMAN_FAILMODE deadman.failmode zfs_deadman_failmode 389db44a8eSMartin MatuskaDEADMAN_SYNCTIME_MS deadman.synctime_ms zfs_deadman_synctime_ms 399db44a8eSMartin MatuskaDEADMAN_ZIOTIME_MS deadman.ziotime_ms zfs_deadman_ziotime_ms 40eda14cbcSMatt MacyDISABLE_IVSET_GUID_CHECK disable_ivset_guid_check zfs_disable_ivset_guid_check 4181b22a98SMartin MatuskaDMU_OFFSET_NEXT_SYNC dmu_offset_next_sync zfs_dmu_offset_next_sync 42e716630dSMartin MatuskaEMBEDDED_SLOG_MIN_MS embedded_slog_min_ms zfs_embedded_slog_min_ms 43eda14cbcSMatt MacyINITIALIZE_CHUNK_SIZE initialize_chunk_size zfs_initialize_chunk_size 44eda14cbcSMatt MacyINITIALIZE_VALUE initialize_value zfs_initialize_value 45eda14cbcSMatt MacyKEEP_LOG_SPACEMAPS_AT_EXPORT keep_log_spacemaps_at_export zfs_keep_log_spacemaps_at_export 46eda14cbcSMatt MacyLUA_MAX_MEMLIMIT lua.max_memlimit zfs_lua_max_memlimit 477877fdebSMatt MacyL2ARC_MFUONLY l2arc.mfuonly l2arc_mfuonly 48eda14cbcSMatt MacyL2ARC_NOPREFETCH l2arc.noprefetch l2arc_noprefetch 49eda14cbcSMatt MacyL2ARC_REBUILD_BLOCKS_MIN_L2SIZE l2arc.rebuild_blocks_min_l2size l2arc_rebuild_blocks_min_l2size 50eda14cbcSMatt MacyL2ARC_REBUILD_ENABLED l2arc.rebuild_enabled l2arc_rebuild_enabled 51eda14cbcSMatt MacyL2ARC_TRIM_AHEAD l2arc.trim_ahead l2arc_trim_ahead 52eda14cbcSMatt MacyL2ARC_WRITE_BOOST l2arc.write_boost l2arc_write_boost 53eda14cbcSMatt MacyL2ARC_WRITE_MAX l2arc.write_max l2arc_write_max 54eda14cbcSMatt MacyLIVELIST_CONDENSE_NEW_ALLOC livelist.condense.new_alloc zfs_livelist_condense_new_alloc 55eda14cbcSMatt MacyLIVELIST_CONDENSE_SYNC_CANCEL livelist.condense.sync_cancel zfs_livelist_condense_sync_cancel 56eda14cbcSMatt MacyLIVELIST_CONDENSE_SYNC_PAUSE livelist.condense.sync_pause zfs_livelist_condense_sync_pause 57eda14cbcSMatt MacyLIVELIST_CONDENSE_ZTHR_CANCEL livelist.condense.zthr_cancel zfs_livelist_condense_zthr_cancel 58eda14cbcSMatt MacyLIVELIST_CONDENSE_ZTHR_PAUSE livelist.condense.zthr_pause zfs_livelist_condense_zthr_pause 59eda14cbcSMatt MacyLIVELIST_MAX_ENTRIES livelist.max_entries zfs_livelist_max_entries 60eda14cbcSMatt MacyLIVELIST_MIN_PERCENT_SHARED livelist.min_percent_shared zfs_livelist_min_percent_shared 61eda14cbcSMatt MacyMAX_DATASET_NESTING max_dataset_nesting zfs_max_dataset_nesting 62eda14cbcSMatt MacyMAX_MISSING_TVDS max_missing_tvds zfs_max_missing_tvds 63eda14cbcSMatt MacyMETASLAB_DEBUG_LOAD metaslab.debug_load metaslab_debug_load 64eda14cbcSMatt MacyMETASLAB_FORCE_GANGING metaslab.force_ganging metaslab_force_ganging 65eda14cbcSMatt MacyMULTIHOST_FAIL_INTERVALS multihost.fail_intervals zfs_multihost_fail_intervals 66eac7052fSMatt MacyMULTIHOST_HISTORY multihost.history zfs_multihost_history 67eda14cbcSMatt MacyMULTIHOST_IMPORT_INTERVALS multihost.import_intervals zfs_multihost_import_intervals 68eda14cbcSMatt MacyMULTIHOST_INTERVAL multihost.interval zfs_multihost_interval 69eda14cbcSMatt MacyOVERRIDE_ESTIMATE_RECORDSIZE send.override_estimate_recordsize zfs_override_estimate_recordsize 707877fdebSMatt MacyPREFETCH_DISABLE prefetch.disable zfs_prefetch_disable 71e716630dSMartin MatuskaRAIDZ_EXPAND_MAX_REFLOW_BYTES vdev.expand_max_reflow_bytes raidz_expand_max_reflow_bytes 727877fdebSMatt MacyREBUILD_SCRUB_ENABLED rebuild_scrub_enabled zfs_rebuild_scrub_enabled 73eda14cbcSMatt MacyREMOVAL_SUSPEND_PROGRESS removal_suspend_progress zfs_removal_suspend_progress 74eda14cbcSMatt MacyREMOVE_MAX_SEGMENT remove_max_segment zfs_remove_max_segment 75eda14cbcSMatt MacyRESILVER_MIN_TIME_MS resilver_min_time_ms zfs_resilver_min_time_ms 76*7a7741afSMartin MatuskaRESILVER_DEFER_PERCENT resilver_defer_percent zfs_resilver_defer_percent 77eda14cbcSMatt MacySCAN_LEGACY scan_legacy zfs_scan_legacy 78eda14cbcSMatt MacySCAN_SUSPEND_PROGRESS scan_suspend_progress zfs_scan_suspend_progress 79eda14cbcSMatt MacySCAN_VDEV_LIMIT scan_vdev_limit zfs_scan_vdev_limit 80e716630dSMartin MatuskaSCRUB_AFTER_EXPAND scrub_after_expand zfs_scrub_after_expand 81eda14cbcSMatt MacySEND_HOLES_WITHOUT_BIRTH_TIME send_holes_without_birth_time send_holes_without_birth_time 82eda14cbcSMatt MacySLOW_IO_EVENTS_PER_SECOND slow_io_events_per_second zfs_slow_io_events_per_second 83eda14cbcSMatt MacySPA_ASIZE_INFLATION spa.asize_inflation spa_asize_inflation 84eda14cbcSMatt MacySPA_DISCARD_MEMORY_LIMIT spa.discard_memory_limit zfs_spa_discard_memory_limit 85eda14cbcSMatt MacySPA_LOAD_VERIFY_DATA spa.load_verify_data spa_load_verify_data 86eda14cbcSMatt MacySPA_LOAD_VERIFY_METADATA spa.load_verify_metadata spa_load_verify_metadata 87eda14cbcSMatt MacyTRIM_EXTENT_BYTES_MIN trim.extent_bytes_min zfs_trim_extent_bytes_min 88eda14cbcSMatt MacyTRIM_METASLAB_SKIP trim.metaslab_skip zfs_trim_metaslab_skip 89eda14cbcSMatt MacyTRIM_TXG_BATCH trim.txg_batch zfs_trim_txg_batch 90eac7052fSMatt MacyTXG_HISTORY txg.history zfs_txg_history 91eda14cbcSMatt MacyTXG_TIMEOUT txg.timeout zfs_txg_timeout 92eda14cbcSMatt MacyUNLINK_SUSPEND_PROGRESS UNSUPPORTED zfs_unlink_suspend_progress 93c7046f76SMartin MatuskaVDEV_FILE_LOGICAL_ASHIFT vdev.file.logical_ashift vdev_file_logical_ashift 942c48331dSMatt MacyVDEV_FILE_PHYSICAL_ASHIFT vdev.file.physical_ashift vdev_file_physical_ashift 95c7046f76SMartin MatuskaVDEV_MAX_AUTO_ASHIFT vdev.max_auto_ashift zfs_vdev_max_auto_ashift 96eda14cbcSMatt MacyVDEV_MIN_MS_COUNT vdev.min_ms_count zfs_vdev_min_ms_count 97*7a7741afSMartin MatuskaVDEV_DIRECT_WR_VERIFY vdev.direct_write_verify zfs_vdev_direct_write_verify 98eda14cbcSMatt MacyVDEV_VALIDATE_SKIP vdev.validate_skip vdev_validate_skip 99eda14cbcSMatt MacyVOL_INHIBIT_DEV UNSUPPORTED zvol_inhibit_dev 100eda14cbcSMatt MacyVOL_MODE vol.mode zvol_volmode 101eda14cbcSMatt MacyVOL_RECURSIVE vol.recursive UNSUPPORTED 1026c1e79dfSMartin MatuskaVOL_USE_BLK_MQ UNSUPPORTED zvol_use_blk_mq 103ce4dcb97SMartin MatuskaBCLONE_ENABLED bclone_enabled zfs_bclone_enabled 104ce4dcb97SMartin MatuskaBCLONE_WAIT_DIRTY bclone_wait_dirty zfs_bclone_wait_dirty 105*7a7741afSMartin MatuskaDIO_ENABLED dio_enabled zfs_dio_enabled 106c03c5b1cSMartin MatuskaXATTR_COMPAT xattr_compat zfs_xattr_compat 107eda14cbcSMatt MacyZEVENT_LEN_MAX zevent.len_max zfs_zevent_len_max 1082c48331dSMatt MacyZEVENT_RETAIN_MAX zevent.retain_max zfs_zevent_retain_max 109eda14cbcSMatt MacyZIO_SLOW_IO_MS zio.slow_io_ms zio_slow_io_ms 110c03c5b1cSMartin MatuskaZIL_SAXATTR zil_saxattr zfs_zil_saxattr 111eda14cbcSMatt Macy%%%% 112eda14cbcSMatt Macywhile read name FreeBSD Linux; do 113eda14cbcSMatt Macy eval "export ${name}=\$${UNAME}" 114eda14cbcSMatt Macydone 115