Pushing SMB large multi-gigabyte files TO the NAS causes a large transfer to slow and then fail.

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
L2ARC not detected, skipping section

So as you posted, you accidentally created a second pool (L2ARC-01) rather than adding it as a vdev of type cache to your main pool (WolfTruePool) - you'll want to export and destroy the second pool (L2ARC-01) and then extend/Add Vdevs on the main pool (WolfTruePool) and use it as type cache.

The command is correct - it just doesn't produce any output if successful. It's also case-sensitive as shown below, so you'll need to match whatever your pool and dataset/volume name are.

Code:
root@badger:~ # zfs get secondarycache PerfVolume/testzvol

NAME                 PROPERTY        VALUE           SOURCE
PerfVolume/testzvol  secondarycache  all             default

root@badger:~ # zfs set secondarycache=metadata perfvolume/testzvol

cannot open 'perfvolume/testzvol': dataset does not exist

root@badger:~ # zfs set secondarycache=metadata PerfVolume/testzvol

root@badger:~ # zfs get secondarycache PerfVolume/testzvol

NAME                 PROPERTY        VALUE           SOURCE
PerfVolume/testzvol  secondarycache  metadata        local


The last line (zfs get) is verifying that your command stuck.

From your arc_summary output I can see a couple things:

You're almost exclusively hitting the metadata:

Code:
Cache hits by data type:
        Demand data:                                  < 0.1 %       2.0M
        Demand prefetch data:                         < 0.1 %      10.5k
        Demand metadata:                               99.9 %       8.3G
        Demand prefetch metadata:                       0.1 %       5.2M


And it's not being pinned there correctly:

Code:
ARC size (current):                                    92.3 %   53.1 GiB
        Metadata cache size (hard limit):              75.0 %   43.1 GiB
        Metadata cache size (current):                 10.7 %    4.6 GiB


This is something that I've seen before, and it has to do with ZFS preferring to evict filesystem metadata over data.

From that value we cooked up earlier from your zpool status -D which was 15441616288 bytes or 14.4GiB, I'd expect to see around that much metadata sitting in RAM.

So let's force the issue with another tunable:

Name: vfs.zfs.arc.meta_min
Type: sysctl
Value: 17179869184

That will tell ZFS not to evict metadata unless there's more than 16GiB of it in your RAM. Note that this means there will be 12GiB less data in your RAM; but I think your priority here is the write speeds over the reads.

Important note: This is only going to accelerate the reads of the deduplication table. If you perform an action that requires a whole lot of metadata/dedup table writes, such as a massive delete, or destroying snapshots/datasets, then you'll still have to pay that random I/O cost. Ultimately, it's up to you to determine if the perils of deduplication are worth the ~2x space gain.
 

SpiritWolf

Dabbler
Joined
Oct 21, 2022
Messages
29
So as you posted, you accidentally created a second pool (L2ARC-01) rather than adding it as a vdev of type cache to your main pool (WolfTruePool) - you'll want to export and destroy the second pool (L2ARC-01) and then extend/Add Vdevs on the main pool (WolfTruePool) and use it as type cache.
Ok, Destroyed... But i thought I HAD done the creation as a cache type... It said so as "Cache L2ARK" type and I selected as such. How did it manage to be a mistake?

As that's the type being displayed to me, I have to say I'm stuck; that's the choice I have. See Below:
1672772409547.png


That's the same thing I choose last time. So I'm doing something wrong but I'm not sure what.
The command is correct - it just doesn't produce any output if successful. It's also case-sensitive as shown below, so you'll need to match whatever your pool and dataset/volume name are.

Code:
root@badger:~ # zfs get secondarycache PerfVolume/testzvol

NAME                 PROPERTY        VALUE           SOURCE
PerfVolume/testzvol  secondarycache  all             default

root@badger:~ # zfs set secondarycache=metadata perfvolume/testzvol

cannot open 'perfvolume/testzvol': dataset does not exist

root@badger:~ # zfs set secondarycache=metadata PerfVolume/testzvol

root@badger:~ # zfs get secondarycache PerfVolume/testzvol

NAME                 PROPERTY        VALUE           SOURCE
PerfVolume/testzvol  secondarycache  metadata        local


The last line (zfs get) is verifying that your command stuck.

From your arc_summary output I can see a couple things:

You're almost exclusively hitting the metadata:

Code:
Cache hits by data type:
        Demand data:                                  < 0.1 %       2.0M
        Demand prefetch data:                         < 0.1 %      10.5k
        Demand metadata:                               99.9 %       8.3G
        Demand prefetch metadata:                       0.1 %       5.2M


And it's not being pinned there correctly:

Code:
ARC size (current):                                    92.3 %   53.1 GiB
        Metadata cache size (hard limit):              75.0 %   43.1 GiB
        Metadata cache size (current):                 10.7 %    4.6 GiB


This is something that I've seen before, and it has to do with ZFS preferring to evict filesystem metadata over data.

From that value we cooked up earlier from your zpool status -D which was 15441616288 bytes or 14.4GiB, I'd expect to see around that much metadata sitting in RAM.

So let's force the issue with another tunable:

Name: vfs.zfs.arc.meta_min
Type: sysctl
Value: 17179869184

That will tell ZFS not to evict metadata unless there's more than 16GiB of it in your RAM. Note that this means there will be 12GiB less data in your RAM; but I think your priority here is the write speeds over the reads.

Important note: This is only going to accelerate the reads of the deduplication table. If you perform an action that requires a whole lot of metadata/dedup table writes, such as a massive delete, or destroying snapshots/datasets, then you'll still have to pay that random I/O cost. Ultimately, it's up to you to determine if the perils of deduplication are worth the ~2x space gain.
 

Etorix

Wizard
Joined
Dec 30, 2020
Messages
2,134
That's the same thing I choose last time. So I'm doing something wrong but I'm not sure what.
You're clicking the big button "ADD", which adds a pool.
Click the gear icon and select "Add Vdevs" to add a cache vdev to WolfTruePool.
 

SpiritWolf

Dabbler
Joined
Oct 21, 2022
Messages
29
What is your zpool status output?

Data Below. I'm going to try the other way to build the dev needed:
Code:
]# zpool status

  pool: WolfTruePool

 state: ONLINE

  scan: scrub repaired 0B in 1 days 04:38:08 with 0 errors on Mon Dec 26 04:38:09 2022

config:


    NAME                                            STATE     READ WRITE CKSUM

    WolfTruePool                                    ONLINE       0     0     0

      raidz2-0                                      ONLINE       0     0     0

        gptid/72fc28af-0216-11ed-9816-04421af0b180  ONLINE       0     0     0

        gptid/7305b845-0216-11ed-9816-04421af0b180  ONLINE       0     0     0

        gptid/72e94646-0216-11ed-9816-04421af0b180  ONLINE       0     0     0

        gptid/72dd14f9-0216-11ed-9816-04421af0b180  ONLINE       0     0     0

        gptid/72f2da11-0216-11ed-9816-04421af0b180  ONLINE       0     0     0

    cache

      gptid/20f3a9ff-8bbb-11ed-8c6d-80615f154a39    ONLINE       0     0     0


errors: No known data errors

  pool: boot-poo

 state: ONLINE


  scan: scrub repaired 0B in 00:00:03 with 0 errors on Fri Dec 30 03:45:03 2022

config:

    NAME        STATE     READ WRITE CKSUM

    boot-pool   ONLINE       0     0     0

      mirror-0  ONLINE       0     0     0

        nvd0p2  ONLINE       0     0     0

        nvd2p2  ONLINE       0     0     0



errors: No known data errors


(By Jove, I think he's got it!)
 
Last edited:

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222

SpiritWolf

Dabbler
Joined
Oct 21, 2022
Messages
29
I did almost nothing, the others are the true heores.
I beg to disagree...

EVERYONE contributes. When it's time, I'll pay it forward too. That's what a community does.

Props to Mr. Grinch, You, Etorix, HoneyBadger, et al.

It's not perfect yet and I know it's not even with my "Dabbler" knowledge, but Im getting better,

I'd have been all set had I just outright *bought* the box for Xi, cheaper too (by how much I'm actually scared to look), but it's been a ride. And throughout, it's still here.
So as you posted, you accidentally created a second pool (L2ARC-01) rather than adding it as a vdev of type cache to your main pool (WolfTruePool) - you'll want to export and destroy the second pool (L2ARC-01) and then extend/Add Vdevs on the main pool (WolfTruePool) and use it as type cache.

The command is correct - it just doesn't produce any output if successful. It's also case-sensitive as shown below, so you'll need to match whatever your pool and dataset/volume name are.

Code:
root@badger:~ # zfs get secondarycache PerfVolume/testzvol

NAME                 PROPERTY        VALUE           SOURCE
PerfVolume/testzvol  secondarycache  all             default

root@badger:~ # zfs set secondarycache=metadata perfvolume/testzvol

cannot open 'perfvolume/testzvol': dataset does not exist

root@badger:~ # zfs set secondarycache=metadata PerfVolume/testzvol

root@badger:~ # zfs get secondarycache PerfVolume/testzvol

NAME                 PROPERTY        VALUE           SOURCE
PerfVolume/testzvol  secondarycache  metadata        local


The last line (zfs get) is verifying that your command stuck.

From your arc_summary output I can see a couple things:

You're almost exclusively hitting the metadata:

Code:
Cache hits by data type:
        Demand data:                                  < 0.1 %       2.0M
        Demand prefetch data:                         < 0.1 %      10.5k
        Demand metadata:                               99.9 %       8.3G
        Demand prefetch metadata:                       0.1 %       5.2M


And it's not being pinned there correctly:

Code:
ARC size (current):                                    92.3 %   53.1 GiB
        Metadata cache size (hard limit):              75.0 %   43.1 GiB
        Metadata cache size (current):                 10.7 %    4.6 GiB


This is something that I've seen before, and it has to do with ZFS preferring to evict filesystem metadata over data.

From that value we cooked up earlier from your zpool status -D which was 15441616288 bytes or 14.4GiB, I'd expect to see around that much metadata sitting in RAM.

So let's force the issue with another tunable:

Name: vfs.zfs.arc.meta_min
Type: sysctl
Value: 17179869184

That will tell ZFS not to evict metadata unless there's more than 16GiB of it in your RAM. Note that this means there will be 12GiB less data in your RAM; but I think your priority here is the write speeds over the reads.

Important note: This is only going to accelerate the reads of the deduplication table. If you perform an action that requires a whole lot of metadata/dedup table writes, such as a massive delete, or destroying snapshots/datasets, then you'll still have to pay that random I/O cost. Ultimately, it's up to you to determine if the perils of deduplication are worth the ~2x space gain.

Name: vfs.zfs.arc.meta_min
Type: sysctl
Value: 17179869184

Completed. The writes have been ghastly after the first 5-7gigs throughput. Then the system strangles itself from 300MiB over a 2.5 connection and drops to half a meg a second.

I have a few more scans below..
 

SpiritWolf

Dabbler
Joined
Oct 21, 2022
Messages
29
I've completed the tunable. Im debating rebooting to see if that changes times to online or just awaiting results.

Do tunables take effect immediately? Or only after reboot?
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
Certain tunables are immediate; arc_meta_min should be as well, but ZFS still needs to read your deduplication tables from disk at least once to get them back into RAM.

Does your arc_summary output now show a higher value for "Metadata cache size (current)" if you run it again?
 

SpiritWolf

Dabbler
Joined
Oct 21, 2022
Messages
29
Code:
root@truenas[~]# arc_summary

(Part 1)

------------------------------------------------------------------------

ZFS Subsystem Report                            Tue Jan 03 18:50:58 2023

FreeBSD 13.1-RELEASE-p2                                    zpl version 5

Machine: truenas.local (amd64)                          spa version 5000



ARC status:                                                      HEALTHY

        Memory throttle count:                                         0



ARC size (current):                                    83.6 %   48.0 GiB

        Target size (adaptive):                        90.3 %   51.9 GiB

        Min size (hard limit):                          3.5 %    2.0 GiB

        Max size (high water):                           28:1   57.5 GiB

        Most Frequently Used (MFU) cache size:         28.6 %   13.2 GiB

        Most Recently Used (MRU) cache size:           71.4 %   32.9 GiB

        Metadata cache size (hard limit):              75.0 %   43.1 GiB

        Metadata cache size (current):                  7.2 %    3.1 GiB

        Dnode cache size (hard limit):                 37.1 %   16.0 GiB

        Dnode cache size (current):                     5.8 %  948.3 MiB



ARC hash breakdown:

        Elements max:                                               1.8M

        Elements current:                              77.1 %       1.4M

        Collisions:                                                 1.1M

        Chain max:                                                     5

        Chains:                                                   104.4k



ARC misc:

        Deleted:                                                   11.1M

        Mutex misses:                                                284

        Eviction skips:                                             1.5M

        Eviction skips due to L2 writes:                               0

        L2 cached evictions:                                     3.0 GiB

        L2 eligible evictions:                                  16.3 GiB

        L2 eligible MFU evictions:                     14.1 %    2.3 GiB

        L2 eligible MRU evictions:                     85.9 %   14.0 GiB

        L2 ineligible evictions:                                 1.3 TiB



ARC total accesses (hits + misses):                                11.9G

        Cache hit ratio:                              100.0 %      11.9G

        Cache miss ratio:                             < 0.1 %       2.6M

        Actual hit ratio (MFU + MRU hits):            100.0 %      11.9G

        Data demand efficiency:                        81.1 %       6.1M

        Data prefetch efficiency:                       2.8 %     616.8k



Cache hits by cache type:

        Most frequently used (MFU):                    99.8 %      11.8G

        Most recently used (MRU):                       0.1 %      17.7M

        Most frequently used (MFU) ghost:             < 0.1 %     225.3k

        Most recently used (MRU) ghost:               < 0.1 %      57.6k

        Anonymously used:                             < 0.1 %     161.3k



Cache hits by data type:

        Demand data:                                  < 0.1 %       5.0M

        Demand prefetch data:                         < 0.1 %      17.2k

        Demand metadata:                               99.9 %      11.8G

        Demand prefetch metadata:                       0.1 %       6.0M



Cache misses by data type:

        Demand data:                                   45.0 %       1.2M

        Demand prefetch data:                          23.2 %     599.7k

        Demand metadata:                               27.1 %     699.2k

        Demand prefetch metadata:                       4.7 %     122.1k



DMU prefetch efficiency:                                            1.8M

        Hit ratio:                                     39.7 %     723.4k

        Miss ratio:                                    60.3 %       1.1M



L2ARC status:                                                    HEALTHY

        Low memory aborts:                                             0

        Free on write:                                                 0

        R/W clashes:                                                   0

        Bad checksums:                                                 0

        I/O errors:                                                    0



L2ARC size (adaptive):                                           3.7 GiB

        Compressed:                                    16.9 %  641.8 MiB

        Header size:                                    0.0 %    0 Bytes

        MFU allocated size:                            50.0 %  321.1 MiB

        MRU allocated size:                            56.4 %  362.1 MiB

        Prefetch allocated size:                        0.2 %    1.1 MiB

        Data (buffer content) allocated size:           0.0 %    0 Bytes

        Metadata (buffer content) allocated size:     106.6 %  684.2 MiB



L2ARC breakdown:                                                  134.4k

        Hit ratio:                                     11.3 %      15.2k

        Miss ratio:                                    88.7 %     119.2k

        Feeds:                                                      2.7k



L2ARC writes:

        Writes sent:                                    100 %       1.5k



L2ARC evicts:

        Lock retries:                                                  0

        Upon reading:                                                  0



Tunables:

        abd_scatter_enabled                                            1

        abd_scatter_min_size                                        4097

        allow_redacted_dataset_mount                                   0

        anon_data_esize                                                0

        anon_metadata_esize                                            0

        anon_size                                                2392576

        arc.average_blocksize                                       8192

        arc.dnode_limit                                                0

        arc.dnode_limit_percent                                       10

        arc.dnode_reduce_percent                                      10

        arc.evict_batch_limit                                         10

        arc.eviction_pct                                             200

        arc.grow_retry                                                 0

        arc.lotsfree_percent                                          10

        arc.max                                              61713000000

        arc.meta_adjust_restarts                                    4096

        arc.meta_limit                                                 0

        arc.meta_limit_percent                                        75

        arc.meta_min                                         17179869184

        arc.meta_prune                                             10000

        arc.meta_strategy                                              1

        arc.min                                                        0

        arc.min_prefetch_ms                                            0

        arc.min_prescient_prefetch_ms                                  0

        arc.p_dampener_disable                                         1

        arc.p_min_shift                                                0

        arc.pc_percent                                                 0

        arc.prune_task_threads                                         1

        arc.shrink_shift                                               0

        arc.sys_free                                                   0

        arc_free_target                                           347464

        arc_max                                              61713000000

        arc_min                                                        0

        arc_no_grow_shift                                              5

        async_block_max_blocks                      18446744073709551615

        autoimport_disable                                             1

        btree_verify_intensity                                         0

        ccw_retry_interval                                           300

        checksum_events_per_second                                    20

        commit_timeout_pct                                             5

        compressed_arc_enabled                                         1

        condense.indirect_commit_entry_delay_ms                        0

        condense.indirect_obsolete_pct                                25

        condense.indirect_vdevs_enable                                 1

        condense.max_obsolete_bytes                           1073741824

        condense.min_mapping_bytes                                131072

        condense_pct                                                 200

        crypt_sessions                                                 0

        dbgmsg_enable                                                  1

        dbgmsg_maxsize                                           4194304

        dbuf.cache_shift                                               5

        dbuf.metadata_cache_max_bytes               18446744073709551615

        dbuf.metadata_cache_shift                                      6

        dbuf_cache.hiwater_pct                                        10

        dbuf_cache.lowater_pct                                        10

        dbuf_cache.max_bytes                        18446744073709551615

        dbuf_state_index                                               0

        ddt_data_is_special                                            1

        deadman.checktime_ms                                       60000

        deadman.enabled                                                1

        deadman.failmode                                            wait

        deadman.synctime_ms                                       600000

        deadman.ziotime_ms                                        300000

        debug                                                          0

        debugflags                                                     0

        dedup.prefetch                                                 0

        default_bs                                                     9

        default_ibs                                                   15

        delay_min_dirty_percent                                       60

        delay_scale                                               500000

        dirty_data_max                                        4294967296

        dirty_data_max_max                                    4294967296

        dirty_data_max_max_percent                                    25

        dirty_data_max_percent                                        10

        dirty_data_sync_percent                                       20

        disable_ivset_guid_check                                       0

        dmu_object_alloc_chunk_shift                                   7

        dmu_offset_next_sync                                           1

        dmu_prefetch_max                                       134217728

        dtl_sm_blksz                                                4096

        embedded_slog_min_ms                                          64

        flags                                                          0

        fletcher_4_impl [fastest] scalar superscalar superscalar4 sse2 ssse3 avx2

        free_bpobj_enabled                                             1

        free_leak_on_eio                                               0

        free_min_time_ms                                            1000

        history_output_max                                       1048576

        immediate_write_sz                                         32768

        initialize_chunk_size                                    1048576

        initialize_value                            16045690984833335022

        keep_log_spacemaps_at_export                                   0

        l2arc.exclude_special                                          0

        l2arc.feed_again                                               1

        l2arc.feed_min_ms                                            200

        l2arc.feed_secs                                                1

        l2arc.headroom                                                 2

        l2arc.headroom_boost                                         200

        l2arc.meta_percent                                            33

        l2arc.mfuonly                                                  0

        l2arc.noprefetch                                               0

        l2arc.norw                                                     0

        l2arc.rebuild_blocks_min_l2size                       1073741824

        l2arc.rebuild_enabled                                          1

        l2arc.trim_ahead                                               0

        l2arc.write_boost                                       40000000

        l2arc.write_max                                         10000000

        l2arc_feed_again                                               1

        l2arc_feed_min_ms                                            200

        l2arc_feed_secs                                                1

        l2arc_headroom                                                 2

        l2arc_noprefetch                                               0

        l2arc_norw                                                     0

        l2arc_write_boost                                       40000000

        l2arc_write_max                                         10000000

        l2c_only_size                                                  0

        livelist.condense.new_alloc                                    0

        livelist.condense.sync_cancel                                  0

        livelist.condense.sync_pause                                   0

        livelist.condense.zthr_cancel                                  0

        livelist.condense.zthr_pause                                   0

        livelist.max_entries                                      500000

        livelist.min_percent_shared                                   75

        lua.max_instrlimit                                     100000000

        lua.max_memlimit                                       104857600

        max_async_dedup_frees                                     100000

        max_auto_ashift                                               14

        max_dataset_nesting                                           50

        max_log_walking                                                5

        max_logsm_summary_length                                      10

        max_missing_tvds                                               0

        max_missing_tvds_cachefile                                     2

        max_missing_tvds_scan                                          0

        max_nvlist_src_size                                            0

        max_recordsize                                           1048576

        metaslab.aliquot                                         1048576

        metaslab.bias_enabled                                          1

 

SpiritWolf

Dabbler
Joined
Oct 21, 2022
Messages
29
Part 2
Code:
        metaslab.debug_load                                            0

        metaslab.debug_unload                                          0

        metaslab.df_alloc_threshold                               131072

        metaslab.df_free_pct                                           4

        metaslab.df_max_search                                  16777216

        metaslab.df_use_largest_segment                                0

        metaslab.find_max_tries                                      100

        metaslab.force_ganging                                  16777217

        metaslab.fragmentation_factor_enabled                          1

        metaslab.fragmentation_threshold                              70

        metaslab.lba_weighting_enabled                                 1

        metaslab.load_pct                                             50

        metaslab.max_size_cache_sec                                 3600

        metaslab.mem_limit                                            25

        metaslab.preload_enabled                                       1

        metaslab.preload_limit                                        10

        metaslab.segment_weight_enabled                                1

        metaslab.sm_blksz_no_log                                   16384

        metaslab.sm_blksz_with_log                                131072

        metaslab.switch_threshold                                      2

        metaslab.try_hard_before_gang                                  0

        metaslab.unload_delay                                         32

        metaslab.unload_delay_ms                                  600000

        mfu_data_esize                                       13069415936

        mfu_ghost_data_esize                                 36915280384

        mfu_ghost_metadata_esize                              1011759104

        mfu_ghost_size                                       37927039488

        mfu_metadata_esize                                     204483584

        mfu_size                                             14173811712

        mg.fragmentation_threshold                                    95

        mg.noalloc_threshold                                           0

        min_auto_ashift                                                9

        min_metaslabs_to_flush                                         1

        mru_data_esize                                       35066393600

        mru_ghost_data_esize                                   738983936

        mru_ghost_metadata_esize                             16305059328

        mru_ghost_size                                       17044043264

        mru_metadata_esize                                      24771072

        mru_size                                             35304022528

        multihost.fail_intervals                                      10

        multihost.history                                              0

        multihost.import_intervals                                    20

        multihost.interval                                          1000

        multilist_num_sublists                                         0

        no_scrub_io                                                    0

        no_scrub_prefetch                                              0

        nocacheflush                                                   0

        nopwrite_enabled                                               1

        obsolete_min_time_ms                                         500

        pd_bytes_max                                            52428800

        per_txg_dirty_frees_percent                                    5

        prefetch.array_rd_sz                                     1048576

        prefetch.disable                                               0

        prefetch.max_distance                                   67108864

        prefetch.max_idistance                                  67108864

        prefetch.max_sec_reap                                          2

        prefetch.max_streams                                           8

        prefetch.min_distance                                    4194304

        prefetch.min_sec_reap                                          1

        read_history                                                   0

        read_history_hits                                              0

        rebuild_max_segment                                      1048576

        rebuild_scrub_enabled                                          1

        rebuild_vdev_limit                                      33554432

        reconstruct.indirect_combinations_max                       4096

        recover                                                        0

        recv.queue_ff                                                 20

        recv.queue_length                                       16777216

        recv.write_batch_size                                    1048576

        removal_suspend_progress                                       0

        remove_max_segment                                      16777216

        resilver_disable_defer                                         0

        resilver_min_time_ms                                        3000

        scan_blkstats                                                  0

        scan_checkpoint_intval                                      7200

        scan_fill_weight                                               3

        scan_ignore_errors                                             0

        scan_issue_strategy                                            0

        scan_legacy                                                    0

        scan_max_ext_gap                                         2097152

        scan_mem_lim_fact                                             20

        scan_mem_lim_soft_fact                                        20

        scan_strict_mem_lim                                            0

        scan_suspend_progress                                          0

        scan_vdev_limit                                          4194304

        scrub_min_time_ms                                           1000

        send.corrupt_data                                              0

        send.no_prefetch_queue_ff                                     20

        send.no_prefetch_queue_length                            1048576

        send.override_estimate_recordsize                              0

        send.queue_ff                                                 20

        send.queue_length                                       16777216

        send.unmodified_spill_blocks                                   1

        send_holes_without_birth_time                                  1

        slow_io_events_per_second                                     20

        spa.asize_inflation                                           24

        spa.discard_memory_limit                                16777216

        spa.load_print_vdev_tree                                       0

        spa.load_verify_data                                           1

        spa.load_verify_metadata                                       1

        spa.load_verify_shift                                          4

        spa.slop_shift                                                 5

        space_map_ibs                                                 14

        special_class_metadata_reserve_pct                            25

        standard_sm_blksz                                         131072

        super_owner                                                    0

        sync_pass_deferred_free                                        2

        sync_pass_dont_compress                                        8

        sync_pass_rewrite                                              2

        sync_taskq_batch_pct                                          75

        top_maxinflight                                             1000

        traverse_indirect_prefetch_limit                              32

        trim.extent_bytes_max                                  134217728

        trim.extent_bytes_min                                      32768

        trim.metaslab_skip                                             0

        trim.queue_limit                                              10

        trim.txg_batch                                                32

        txg.history                                                  100

        txg.timeout                                                    5

        unflushed_log_block_max                                   131072

        unflushed_log_block_min                                     1000

        unflushed_log_block_pct                                      400

        unflushed_log_txg_max                                       1000

        unflushed_max_mem_amt                                 1073741824

        unflushed_max_mem_ppm                                       1000

        user_indirect_is_special                                       1

        validate_skip                                                  0

        vdev.aggregate_trim                                            0

        vdev.aggregation_limit                                   1048576

        vdev.aggregation_limit_non_rotating                       131072

        vdev.async_read_max_active                                     3

        vdev.async_read_min_active                                     1

        vdev.async_write_active_max_dirty_percent                     60

        vdev.async_write_active_min_dirty_percent                     30

        vdev.async_write_max_active                                    5

        vdev.async_write_min_active                                    1

        vdev.bio_delete_disable                                        0

        vdev.bio_flush_disable                                         0

        vdev.cache_bshift                                             16

        vdev.cache_max                                             16384

        vdev.cache_size                                                0

        vdev.def_queue_depth                                          32

        vdev.default_ms_count                                        200

        vdev.default_ms_shift                                         29

        vdev.file.logical_ashift                                       9

        vdev.file.physical_ashift                                      9

        vdev.initializing_max_active                                   1

        vdev.initializing_min_active                                   1

        vdev.max_active                                             1000

        vdev.max_auto_ashift                                          14

        vdev.min_auto_ashift                                           9

        vdev.min_ms_count                                             16

        vdev.mirror.non_rotating_inc                                   0

        vdev.mirror.non_rotating_seek_inc                              1

        vdev.mirror.rotating_inc                                       0

        vdev.mirror.rotating_seek_inc                                  5

        vdev.mirror.rotating_seek_offset                         1048576

        vdev.ms_count_limit                                       131072

        vdev.nia_credit                                                5

        vdev.nia_delay                                                 5

        vdev.queue_depth_pct                                        1000

        vdev.read_gap_limit                                        32768

        vdev.rebuild_max_active                                        3

        vdev.rebuild_min_active                                        1

        vdev.removal_ignore_errors                                     0

        vdev.removal_max_active                                        2

        vdev.removal_max_span                                      32768

        vdev.removal_min_active                                        1

        vdev.removal_suspend_progress                                  0

        vdev.remove_max_segment                                 16777216

        vdev.scrub_max_active                                          3

        vdev.scrub_min_active                                          1

        vdev.sync_read_max_active                                     10

        vdev.sync_read_min_active                                     10

        vdev.sync_write_max_active                                    10

        vdev.sync_write_min_active                                    10

        vdev.trim_max_active                                           2

        vdev.trim_min_active                                           1

        vdev.validate_skip                                             0

        vdev.write_gap_limit                                        4096

        version.acl                                                    1

        version.ioctl                                                 15

        version.module                         v2022101100-zfs_2a0dae1b7

        version.spa                                                 5000

        version.zpl                                                    5

        vnops.read_chunk_size                                    1048576

        vol.mode                                                       2

        vol.recursive                                                  0

        vol.unmap_enabled                                              1

        wrlog_data_max                                        8589934592

        xattr_compat                                                   1

        zap_iterate_prefetch                                           1

        zevent.len_max                                               512

        zevent.retain_expire_secs                                    900

        zevent.retain_max                                           2000

        zfetch.max_distance                                     67108864

        zfetch.max_idistance                                    67108864

        zil.clean_taskq_maxalloc                                 1048576

        zil.clean_taskq_minalloc                                    1024

        zil.clean_taskq_nthr_pct                                     100

        zil.maxblocksize                                          131072

        zil.nocacheflush                                               0

        zil.replay_disable                                             0

        zil.slog_bulk                                             786432

        zio.deadman_log_all                                            0

        zio.dva_throttle_enabled                                       1

        zio.exclude_metadata                                           0

        zio.requeue_io_start_cut_in_line                               1

        zio.slow_io_ms                                             30000

        zio.taskq_batch_pct                                           80

        zio.taskq_batch_tpq                                            0

        zio.use_uma                                                    1



VDEV cache disabled, skipping section



ZIL committed transactions:                                         3.3k

        Commit requests:                                             830

        Flushes to stable storage:                                   830

        Transactions to SLOG storage pool:            0 Bytes          0

        Transactions to non-SLOG storage pool:        4.3 MiB        783
 
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
VDEV cache disabled, skipping section
I am confused about what this should be. I doubt it's for special vdevs since they are not really a cache.
 

SpiritWolf

Dabbler
Joined
Oct 21, 2022
Messages
29
Part 2
Code:
        metaslab.debug_load                                            0

        metaslab.debug_unload                                          0

        metaslab.df_alloc_threshold                               131072

        metaslab.df_free_pct                                           4

        metaslab.df_max_search                                  16777216

        metaslab.df_use_largest_segment                                0

        metaslab.find_max_tries                                      100

        metaslab.force_ganging                                  16777217

        metaslab.fragmentation_factor_enabled                          1

        metaslab.fragmentation_threshold                              70

        metaslab.lba_weighting_enabled                                 1

        metaslab.load_pct                                             50

        metaslab.max_size_cache_sec                                 3600

        metaslab.mem_limit                                            25

        metaslab.preload_enabled                                       1

        metaslab.preload_limit                                        10

        metaslab.segment_weight_enabled                                1

        metaslab.sm_blksz_no_log                                   16384

        metaslab.sm_blksz_with_log                                131072

        metaslab.switch_threshold                                      2

        metaslab.try_hard_before_gang                                  0

        metaslab.unload_delay                                         32

        metaslab.unload_delay_ms                                  600000

        mfu_data_esize                                       13069415936

        mfu_ghost_data_esize                                 36915280384

        mfu_ghost_metadata_esize                              1011759104

        mfu_ghost_size                                       37927039488

        mfu_metadata_esize                                     204483584

        mfu_size                                             14173811712

        mg.fragmentation_threshold                                    95

        mg.noalloc_threshold                                           0

        min_auto_ashift                                                9

        min_metaslabs_to_flush                                         1

        mru_data_esize                                       35066393600

        mru_ghost_data_esize                                   738983936

        mru_ghost_metadata_esize                             16305059328

        mru_ghost_size                                       17044043264

        mru_metadata_esize                                      24771072

        mru_size                                             35304022528

        multihost.fail_intervals                                      10

        multihost.history                                              0

        multihost.import_intervals                                    20

        multihost.interval                                          1000

        multilist_num_sublists                                         0

        no_scrub_io                                                    0

        no_scrub_prefetch                                              0

        nocacheflush                                                   0

        nopwrite_enabled                                               1

        obsolete_min_time_ms                                         500

        pd_bytes_max                                            52428800

        per_txg_dirty_frees_percent                                    5

        prefetch.array_rd_sz                                     1048576

        prefetch.disable                                               0

        prefetch.max_distance                                   67108864

        prefetch.max_idistance                                  67108864

        prefetch.max_sec_reap                                          2

        prefetch.max_streams                                           8

        prefetch.min_distance                                    4194304

        prefetch.min_sec_reap                                          1

        read_history                                                   0

        read_history_hits                                              0

        rebuild_max_segment                                      1048576

        rebuild_scrub_enabled                                          1

        rebuild_vdev_limit                                      33554432

        reconstruct.indirect_combinations_max                       4096

        recover                                                        0

        recv.queue_ff                                                 20

        recv.queue_length                                       16777216

        recv.write_batch_size                                    1048576

        removal_suspend_progress                                       0

        remove_max_segment                                      16777216

        resilver_disable_defer                                         0

        resilver_min_time_ms                                        3000

        scan_blkstats                                                  0

        scan_checkpoint_intval                                      7200

        scan_fill_weight                                               3

        scan_ignore_errors                                             0

        scan_issue_strategy                                            0

        scan_legacy                                                    0

        scan_max_ext_gap                                         2097152

        scan_mem_lim_fact                                             20

        scan_mem_lim_soft_fact                                        20

        scan_strict_mem_lim                                            0

        scan_suspend_progress                                          0

        scan_vdev_limit                                          4194304

        scrub_min_time_ms                                           1000

        send.corrupt_data                                              0

        send.no_prefetch_queue_ff                                     20

        send.no_prefetch_queue_length                            1048576

        send.override_estimate_recordsize                              0

        send.queue_ff                                                 20

        send.queue_length                                       16777216

        send.unmodified_spill_blocks                                   1

        send_holes_without_birth_time                                  1

        slow_io_events_per_second                                     20

        spa.asize_inflation                                           24

        spa.discard_memory_limit                                16777216

        spa.load_print_vdev_tree                                       0

        spa.load_verify_data                                           1

        spa.load_verify_metadata                                       1

        spa.load_verify_shift                                          4

        spa.slop_shift                                                 5

        space_map_ibs                                                 14

        special_class_metadata_reserve_pct                            25

        standard_sm_blksz                                         131072

        super_owner                                                    0

        sync_pass_deferred_free                                        2

        sync_pass_dont_compress                                        8

        sync_pass_rewrite                                              2

        sync_taskq_batch_pct                                          75

        top_maxinflight                                             1000

        traverse_indirect_prefetch_limit                              32

        trim.extent_bytes_max                                  134217728

        trim.extent_bytes_min                                      32768

        trim.metaslab_skip                                             0

        trim.queue_limit                                              10

        trim.txg_batch                                                32

        txg.history                                                  100

        txg.timeout                                                    5

        unflushed_log_block_max                                   131072

        unflushed_log_block_min                                     1000

        unflushed_log_block_pct                                      400

        unflushed_log_txg_max                                       1000

        unflushed_max_mem_amt                                 1073741824

        unflushed_max_mem_ppm                                       1000

        user_indirect_is_special                                       1

        validate_skip                                                  0

        vdev.aggregate_trim                                            0

        vdev.aggregation_limit                                   1048576

        vdev.aggregation_limit_non_rotating                       131072

        vdev.async_read_max_active                                     3

        vdev.async_read_min_active                                     1

        vdev.async_write_active_max_dirty_percent                     60

        vdev.async_write_active_min_dirty_percent                     30

        vdev.async_write_max_active                                    5

        vdev.async_write_min_active                                    1

        vdev.bio_delete_disable                                        0

        vdev.bio_flush_disable                                         0

        vdev.cache_bshift                                             16

        vdev.cache_max                                             16384

        vdev.cache_size                                                0

        vdev.def_queue_depth                                          32

        vdev.default_ms_count                                        200

        vdev.default_ms_shift                                         29

        vdev.file.logical_ashift                                       9

        vdev.file.physical_ashift                                      9

        vdev.initializing_max_active                                   1

        vdev.initializing_min_active                                   1

        vdev.max_active                                             1000

        vdev.max_auto_ashift                                          14

        vdev.min_auto_ashift                                           9

        vdev.min_ms_count                                             16

        vdev.mirror.non_rotating_inc                                   0

        vdev.mirror.non_rotating_seek_inc                              1

        vdev.mirror.rotating_inc                                       0

        vdev.mirror.rotating_seek_inc                                  5

        vdev.mirror.rotating_seek_offset                         1048576

        vdev.ms_count_limit                                       131072

        vdev.nia_credit                                                5

        vdev.nia_delay                                                 5

        vdev.queue_depth_pct                                        1000

        vdev.read_gap_limit                                        32768

        vdev.rebuild_max_active                                        3

        vdev.rebuild_min_active                                        1

        vdev.removal_ignore_errors                                     0

        vdev.removal_max_active                                        2

        vdev.removal_max_span                                      32768

        vdev.removal_min_active                                        1

        vdev.removal_suspend_progress                                  0

        vdev.remove_max_segment                                 16777216

        vdev.scrub_max_active                                          3

        vdev.scrub_min_active                                          1

        vdev.sync_read_max_active                                     10

        vdev.sync_read_min_active                                     10

        vdev.sync_write_max_active                                    10

        vdev.sync_write_min_active                                    10

        vdev.trim_max_active                                           2

        vdev.trim_min_active                                           1

        vdev.validate_skip                                             0

        vdev.write_gap_limit                                        4096

        version.acl                                                    1

        version.ioctl                                                 15

        version.module                         v2022101100-zfs_2a0dae1b7

        version.spa                                                 5000

        version.zpl                                                    5

        vnops.read_chunk_size                                    1048576

        vol.mode                                                       2

        vol.recursive                                                  0

        vol.unmap_enabled                                              1

        wrlog_data_max                                        8589934592

        xattr_compat                                                   1

        zap_iterate_prefetch                                           1

        zevent.len_max                                               512

        zevent.retain_expire_secs                                    900

        zevent.retain_max                                           2000

        zfetch.max_distance                                     67108864

        zfetch.max_idistance                                    67108864

        zil.clean_taskq_maxalloc                                 1048576

        zil.clean_taskq_minalloc                                    1024

        zil.clean_taskq_nthr_pct                                     100

        zil.maxblocksize                                          131072

        zil.nocacheflush                                               0

        zil.replay_disable                                             0

        zil.slog_bulk                                             786432

        zio.deadman_log_all                                            0

        zio.dva_throttle_enabled                                       1

        zio.exclude_metadata                                           0

        zio.requeue_io_start_cut_in_line                               1

        zio.slow_io_ms                                             30000

        zio.taskq_batch_pct                                           80

        zio.taskq_batch_tpq                                            0

        zio.use_uma                                                    1



VDEV cache disabled, skipping section



ZIL committed transactions:                                         3.3k

        Commit requests:                                             830

        Flushes to stable storage:                                   830

        Transactions to SLOG storage pool:            0 Bytes          0

        Transactions to non-SLOG storage pool:        4.3 MiB        783
[CODE}

I am confused about what this should be. I doubt it's the special vdev.
I'm just following the gurus' advice. I'm not sure I'm the droid you're looking for.

I'm way to new at this to offer a coherent answer. It's *supposed* to assist in my server that fails on uploads to it. I frequently send large movie files to it for storage (DVDs to Drone footage) and uploads are a disaster. They start at 2.5 ethernet speeds and then go down to kibibytes.

I can say *something* has changed. Im' throwing multi-gigabyte files at it now and it's not stalling as it did and halt after a handful of gigs. It now varies (with a non-compressible series of files I'm sending it) from about 300MB/second to 150MB in pulses. That seems consistent with a buffer fill/empty.

Why it's skipping I don't know.
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
If you go to the reporting section of the GUI then ZFS you have the graphs about arch. Taking a look there might help you understand better.

Cache also needs time to grow.

I suppose that section is for metadata vdevs but... calling them cache feels strange to me.
 

SpiritWolf

Dabbler
Joined
Oct 21, 2022
Messages
29
If you go to the reporting section of the GUI then ZFS you have the graphs about arch. Taking a look there might help you understand better.

I suppose that section is for metadata vdevs but... calling them cache it strange to me.
Im' not blowing wind up your skirt, but if *you* don't know, I have no chance.

But I do see it now..

Here's the screenshot that I'm going to shrink to fit here.
1672792114626.png


It's grown a few more entries than the last time I remember looking at it.
 
Last edited:

SpiritWolf

Dabbler
Joined
Oct 21, 2022
Messages
29
All in all, the system is working far better than it did..it's not perfect, and uploads to it pulse from 250MB/sec down to 150ish, but it's far better than it was. Honestly, the Ryzen 5600X is kinda loafing so it seems odd to me that there are such variations in i/o. More to learn :)
 
Top