]>
Commit | Line | Data |
---|---|---|
2476f103 RM |
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 | ||
15 | UNAME=$(uname) | |
16 | ||
17 | # NAME FreeBSD tunable Linux tunable | |
18 | cat <<%%%% | | |
19 | ADMIN_SNAPSHOT UNSUPPORTED zfs_admin_snapshot | |
20 | ALLOW_REDACTED_DATASET_MOUNT allow_redacted_dataset_mount zfs_allow_redacted_dataset_mount | |
21 | ARC_MAX arc.max zfs_arc_max | |
22 | ARC_MIN arc.min zfs_arc_min | |
23 | ASYNC_BLOCK_MAX_BLOCKS async_block_max_blocks zfs_async_block_max_blocks | |
24 | CHECKSUM_EVENTS_PER_SECOND checksum_events_per_second zfs_checksum_events_per_second | |
25 | COMMIT_TIMEOUT_PCT commit_timeout_pct zfs_commit_timeout_pct | |
26 | COMPRESSED_ARC_ENABLED compressed_arc_enabled zfs_compressed_arc_enabled | |
27 | CONDENSE_INDIRECT_COMMIT_ENTRY_DELAY_MS condense.indirect_commit_entry_delay_ms zfs_condense_indirect_commit_entry_delay_ms | |
888700bc | 28 | CONDENSE_INDIRECT_OBSOLETE_PCT condense.indirect_obsolete_pct zfs_condense_indirect_obsolete_pct |
2476f103 | 29 | CONDENSE_MIN_MAPPING_BYTES condense.min_mapping_bytes zfs_condense_min_mapping_bytes |
bdd2bfd0 | 30 | DBUF_CACHE_SHIFT dbuf.cache_shift dbuf_cache_shift |
35aa9dc6 RM |
31 | DEADMAN_CHECKTIME_MS deadman.checktime_ms zfs_deadman_checktime_ms |
32 | DEADMAN_FAILMODE deadman.failmode zfs_deadman_failmode | |
33 | DEADMAN_SYNCTIME_MS deadman.synctime_ms zfs_deadman_synctime_ms | |
34 | DEADMAN_ZIOTIME_MS deadman.ziotime_ms zfs_deadman_ziotime_ms | |
9d8ce245 | 35 | DISABLE_IVSET_GUID_CHECK disable_ivset_guid_check zfs_disable_ivset_guid_check |
de198f2d | 36 | DMU_OFFSET_NEXT_SYNC dmu_offset_next_sync zfs_dmu_offset_next_sync |
2476f103 RM |
37 | INITIALIZE_CHUNK_SIZE initialize_chunk_size zfs_initialize_chunk_size |
38 | INITIALIZE_VALUE initialize_value zfs_initialize_value | |
39 | KEEP_LOG_SPACEMAPS_AT_EXPORT keep_log_spacemaps_at_export zfs_keep_log_spacemaps_at_export | |
3eabed74 | 40 | LUA_MAX_MEMLIMIT lua.max_memlimit zfs_lua_max_memlimit |
08532162 | 41 | L2ARC_MFUONLY l2arc.mfuonly l2arc_mfuonly |
37c22948 | 42 | L2ARC_NOPREFETCH l2arc.noprefetch l2arc_noprefetch |
9f0a21e6 MM |
43 | L2ARC_REBUILD_BLOCKS_MIN_L2SIZE l2arc.rebuild_blocks_min_l2size l2arc_rebuild_blocks_min_l2size |
44 | L2ARC_REBUILD_ENABLED l2arc.rebuild_enabled l2arc_rebuild_enabled | |
af524bf7 | 45 | L2ARC_TRIM_AHEAD l2arc.trim_ahead l2arc_trim_ahead |
37c22948 GA |
46 | L2ARC_WRITE_BOOST l2arc.write_boost l2arc_write_boost |
47 | L2ARC_WRITE_MAX l2arc.write_max l2arc_write_max | |
2476f103 RM |
48 | LIVELIST_CONDENSE_NEW_ALLOC livelist.condense.new_alloc zfs_livelist_condense_new_alloc |
49 | LIVELIST_CONDENSE_SYNC_CANCEL livelist.condense.sync_cancel zfs_livelist_condense_sync_cancel | |
50 | LIVELIST_CONDENSE_SYNC_PAUSE livelist.condense.sync_pause zfs_livelist_condense_sync_pause | |
51 | LIVELIST_CONDENSE_ZTHR_CANCEL livelist.condense.zthr_cancel zfs_livelist_condense_zthr_cancel | |
52 | LIVELIST_CONDENSE_ZTHR_PAUSE livelist.condense.zthr_pause zfs_livelist_condense_zthr_pause | |
53 | LIVELIST_MAX_ENTRIES livelist.max_entries zfs_livelist_max_entries | |
54 | LIVELIST_MIN_PERCENT_SHARED livelist.min_percent_shared zfs_livelist_min_percent_shared | |
55 | MAX_DATASET_NESTING max_dataset_nesting zfs_max_dataset_nesting | |
56 | MAX_MISSING_TVDS max_missing_tvds zfs_max_missing_tvds | |
57 | METASLAB_DEBUG_LOAD metaslab.debug_load metaslab_debug_load | |
58 | METASLAB_FORCE_GANGING metaslab.force_ganging metaslab_force_ganging | |
59 | MULTIHOST_FAIL_INTERVALS multihost.fail_intervals zfs_multihost_fail_intervals | |
964791ac | 60 | MULTIHOST_HISTORY multihost.history zfs_multihost_history |
2476f103 | 61 | MULTIHOST_IMPORT_INTERVALS multihost.import_intervals zfs_multihost_import_intervals |
9192f27c | 62 | MULTIHOST_INTERVAL multihost.interval zfs_multihost_interval |
2476f103 | 63 | OVERRIDE_ESTIMATE_RECORDSIZE send.override_estimate_recordsize zfs_override_estimate_recordsize |
a76e4e67 | 64 | PREFETCH_DISABLE prefetch.disable zfs_prefetch_disable |
b2255edc | 65 | REBUILD_SCRUB_ENABLED rebuild_scrub_enabled zfs_rebuild_scrub_enabled |
2476f103 RM |
66 | REMOVAL_SUSPEND_PROGRESS removal_suspend_progress zfs_removal_suspend_progress |
67 | REMOVE_MAX_SEGMENT remove_max_segment zfs_remove_max_segment | |
68 | RESILVER_MIN_TIME_MS resilver_min_time_ms zfs_resilver_min_time_ms | |
41035a04 | 69 | SCAN_LEGACY scan_legacy zfs_scan_legacy |
2476f103 RM |
70 | SCAN_SUSPEND_PROGRESS scan_suspend_progress zfs_scan_suspend_progress |
71 | SCAN_VDEV_LIMIT scan_vdev_limit zfs_scan_vdev_limit | |
72 | SEND_HOLES_WITHOUT_BIRTH_TIME send_holes_without_birth_time send_holes_without_birth_time | |
73 | SLOW_IO_EVENTS_PER_SECOND slow_io_events_per_second zfs_slow_io_events_per_second | |
74 | SPA_ASIZE_INFLATION spa.asize_inflation spa_asize_inflation | |
75 | SPA_DISCARD_MEMORY_LIMIT spa.discard_memory_limit zfs_spa_discard_memory_limit | |
76 | SPA_LOAD_VERIFY_DATA spa.load_verify_data spa_load_verify_data | |
77 | SPA_LOAD_VERIFY_METADATA spa.load_verify_metadata spa_load_verify_metadata | |
78 | TRIM_EXTENT_BYTES_MIN trim.extent_bytes_min zfs_trim_extent_bytes_min | |
79 | TRIM_METASLAB_SKIP trim.metaslab_skip zfs_trim_metaslab_skip | |
80 | TRIM_TXG_BATCH trim.txg_batch zfs_trim_txg_batch | |
964791ac | 81 | TXG_HISTORY txg.history zfs_txg_history |
a7929f31 | 82 | TXG_TIMEOUT txg.timeout zfs_txg_timeout |
2476f103 | 83 | UNLINK_SUSPEND_PROGRESS UNSUPPORTED zfs_unlink_suspend_progress |
37f6845c | 84 | VDEV_FILE_LOGICAL_ASHIFT vdev.file.logical_ashift vdev_file_logical_ashift |
c494aa7f | 85 | VDEV_FILE_PHYSICAL_ASHIFT vdev.file.physical_ashift vdev_file_physical_ashift |
37f6845c | 86 | VDEV_MAX_AUTO_ASHIFT vdev.max_auto_ashift zfs_vdev_max_auto_ashift |
2476f103 RM |
87 | VDEV_MIN_MS_COUNT vdev.min_ms_count zfs_vdev_min_ms_count |
88 | VDEV_VALIDATE_SKIP vdev.validate_skip vdev_validate_skip | |
89 | VOL_INHIBIT_DEV UNSUPPORTED zvol_inhibit_dev | |
90 | VOL_MODE vol.mode zvol_volmode | |
91 | VOL_RECURSIVE vol.recursive UNSUPPORTED | |
8ba748d4 | 92 | VOL_USE_BLK_MQ UNSUPPORTED zvol_use_blk_mq |
d92fbe21 TH |
93 | BCLONE_ENABLED bclone_enabled zfs_bclone_enabled |
94 | BCLONE_WAIT_DIRTY bclone_wait_dirty zfs_bclone_wait_dirty | |
5c006134 | 95 | XATTR_COMPAT xattr_compat zfs_xattr_compat |
5f087dda | 96 | ZEVENT_LEN_MAX zevent.len_max zfs_zevent_len_max |
4f072827 | 97 | ZEVENT_RETAIN_MAX zevent.retain_max zfs_zevent_retain_max |
2476f103 | 98 | ZIO_SLOW_IO_MS zio.slow_io_ms zio_slow_io_ms |
361a7e82 | 99 | ZIL_SAXATTR zil_saxattr zfs_zil_saxattr |
2476f103 RM |
100 | %%%% |
101 | while read name FreeBSD Linux; do | |
102 | eval "export ${name}=\$${UNAME}" | |
103 | done |