1# This file exports variables for each tunable used in the test suite. 2# 3# Different platforms use different names for most tunables. To avoid littering 4# the tests with conditional logic for deciding how to set each tunable, the 5# logic is instead consolidated to this one file. 6# 7# Any use of tunables in tests must use a name defined here. New entries 8# should be added to the table as needed. Please keep the table sorted 9# alphabetically for ease of maintenance. 10# 11# Platform-specific tunables should still use a NAME from this table for 12# consistency. Enter UNSUPPORTED in the column for platforms on which the 13# tunable is not implemented. 14 15UNAME=$(uname) 16 17# NAME FreeBSD tunable Linux tunable 18cat <<%%%% | 19ADMIN_SNAPSHOT UNSUPPORTED zfs_admin_snapshot 20ALLOW_REDACTED_DATASET_MOUNT allow_redacted_dataset_mount zfs_allow_redacted_dataset_mount 21ARC_MAX arc.max zfs_arc_max 22ARC_MIN arc.min zfs_arc_min 23ASYNC_BLOCK_MAX_BLOCKS async_block_max_blocks zfs_async_block_max_blocks 24CHECKSUM_EVENTS_PER_SECOND checksum_events_per_second zfs_checksum_events_per_second 25COMMIT_TIMEOUT_PCT commit_timeout_pct zfs_commit_timeout_pct 26COMPRESSED_ARC_ENABLED compressed_arc_enabled zfs_compressed_arc_enabled 27CONDENSE_INDIRECT_COMMIT_ENTRY_DELAY_MS condense.indirect_commit_entry_delay_ms zfs_condense_indirect_commit_entry_delay_ms 28CONDENSE_MIN_MAPPING_BYTES condense.min_mapping_bytes zfs_condense_min_mapping_bytes 29DBUF_CACHE_MAX_BYTES dbuf_cache.max_bytes dbuf_cache_max_bytes 30DEADMAN_CHECKTIME_MS deadman.checktime_ms zfs_deadman_checktime_ms 31DEADMAN_FAILMODE deadman.failmode zfs_deadman_failmode 32DEADMAN_SYNCTIME_MS deadman.synctime_ms zfs_deadman_synctime_ms 33DEADMAN_ZIOTIME_MS deadman.ziotime_ms zfs_deadman_ziotime_ms 34DISABLE_IVSET_GUID_CHECK disable_ivset_guid_check zfs_disable_ivset_guid_check 35INITIALIZE_CHUNK_SIZE initialize_chunk_size zfs_initialize_chunk_size 36INITIALIZE_VALUE initialize_value zfs_initialize_value 37KEEP_LOG_SPACEMAPS_AT_EXPORT keep_log_spacemaps_at_export zfs_keep_log_spacemaps_at_export 38LUA_MAX_MEMLIMIT lua.max_memlimit zfs_lua_max_memlimit 39L2ARC_MFUONLY l2arc.mfuonly l2arc_mfuonly 40L2ARC_NOPREFETCH l2arc.noprefetch l2arc_noprefetch 41L2ARC_REBUILD_BLOCKS_MIN_L2SIZE l2arc.rebuild_blocks_min_l2size l2arc_rebuild_blocks_min_l2size 42L2ARC_REBUILD_ENABLED l2arc.rebuild_enabled l2arc_rebuild_enabled 43L2ARC_TRIM_AHEAD l2arc.trim_ahead l2arc_trim_ahead 44L2ARC_WRITE_BOOST l2arc.write_boost l2arc_write_boost 45L2ARC_WRITE_MAX l2arc.write_max l2arc_write_max 46LIVELIST_CONDENSE_NEW_ALLOC livelist.condense.new_alloc zfs_livelist_condense_new_alloc 47LIVELIST_CONDENSE_SYNC_CANCEL livelist.condense.sync_cancel zfs_livelist_condense_sync_cancel 48LIVELIST_CONDENSE_SYNC_PAUSE livelist.condense.sync_pause zfs_livelist_condense_sync_pause 49LIVELIST_CONDENSE_ZTHR_CANCEL livelist.condense.zthr_cancel zfs_livelist_condense_zthr_cancel 50LIVELIST_CONDENSE_ZTHR_PAUSE livelist.condense.zthr_pause zfs_livelist_condense_zthr_pause 51LIVELIST_MAX_ENTRIES livelist.max_entries zfs_livelist_max_entries 52LIVELIST_MIN_PERCENT_SHARED livelist.min_percent_shared zfs_livelist_min_percent_shared 53MAX_DATASET_NESTING max_dataset_nesting zfs_max_dataset_nesting 54MAX_MISSING_TVDS max_missing_tvds zfs_max_missing_tvds 55METASLAB_DEBUG_LOAD metaslab.debug_load metaslab_debug_load 56METASLAB_FORCE_GANGING metaslab.force_ganging metaslab_force_ganging 57MULTIHOST_FAIL_INTERVALS multihost.fail_intervals zfs_multihost_fail_intervals 58MULTIHOST_HISTORY multihost.history zfs_multihost_history 59MULTIHOST_IMPORT_INTERVALS multihost.import_intervals zfs_multihost_import_intervals 60MULTIHOST_INTERVAL multihost.interval zfs_multihost_interval 61OVERRIDE_ESTIMATE_RECORDSIZE send.override_estimate_recordsize zfs_override_estimate_recordsize 62PREFETCH_DISABLE prefetch.disable zfs_prefetch_disable 63REBUILD_SCRUB_ENABLED rebuild_scrub_enabled zfs_rebuild_scrub_enabled 64REMOVAL_SUSPEND_PROGRESS removal_suspend_progress zfs_removal_suspend_progress 65REMOVE_MAX_SEGMENT remove_max_segment zfs_remove_max_segment 66RESILVER_MIN_TIME_MS resilver_min_time_ms zfs_resilver_min_time_ms 67SCAN_LEGACY scan_legacy zfs_scan_legacy 68SCAN_SUSPEND_PROGRESS scan_suspend_progress zfs_scan_suspend_progress 69SCAN_VDEV_LIMIT scan_vdev_limit zfs_scan_vdev_limit 70SEND_HOLES_WITHOUT_BIRTH_TIME send_holes_without_birth_time send_holes_without_birth_time 71SLOW_IO_EVENTS_PER_SECOND slow_io_events_per_second zfs_slow_io_events_per_second 72SPA_ASIZE_INFLATION spa.asize_inflation spa_asize_inflation 73SPA_DISCARD_MEMORY_LIMIT spa.discard_memory_limit zfs_spa_discard_memory_limit 74SPA_LOAD_VERIFY_DATA spa.load_verify_data spa_load_verify_data 75SPA_LOAD_VERIFY_METADATA spa.load_verify_metadata spa_load_verify_metadata 76TRIM_EXTENT_BYTES_MIN trim.extent_bytes_min zfs_trim_extent_bytes_min 77TRIM_METASLAB_SKIP trim.metaslab_skip zfs_trim_metaslab_skip 78TRIM_TXG_BATCH trim.txg_batch zfs_trim_txg_batch 79TXG_HISTORY txg.history zfs_txg_history 80TXG_TIMEOUT txg.timeout zfs_txg_timeout 81UNLINK_SUSPEND_PROGRESS UNSUPPORTED zfs_unlink_suspend_progress 82VDEV_FILE_PHYSICAL_ASHIFT vdev.file.physical_ashift vdev_file_physical_ashift 83VDEV_MIN_MS_COUNT vdev.min_ms_count zfs_vdev_min_ms_count 84VDEV_VALIDATE_SKIP vdev.validate_skip vdev_validate_skip 85VOL_INHIBIT_DEV UNSUPPORTED zvol_inhibit_dev 86VOL_MODE vol.mode zvol_volmode 87VOL_RECURSIVE vol.recursive UNSUPPORTED 88ZEVENT_LEN_MAX zevent.len_max zfs_zevent_len_max 89ZEVENT_RETAIN_MAX zevent.retain_max zfs_zevent_retain_max 90ZIO_SLOW_IO_MS zio.slow_io_ms zio_slow_io_ms 91%%%% 92while read name FreeBSD Linux; do 93 eval "export ${name}=\$${UNAME}" 94done 95