zfs write stalls fixed but cant remember how, any ideas?

zenowl77

Active Member
Feb 22, 2024
251
45
33
okay so not sure if anyone can help with this but i have a ZFS drive in a single drive for one pool setup and it was experiencing issues where it would begin to write, fill the cache stall where writes dropped to 0 for 30-60 sec or so then repeat until writes were finished, it was pretty annoying to say the least.

somehow i fixed it on the one drive and another i was using, where now the drive writes at whatever it can manage and continues till the end of the transfer with zero issues.

but i cannot for the life of me remember what setting i changes and i just got some new drives and they are having the same problem and need the same setting applied...

all zpool features are the same, dataset settings are the same, etc, it was a simple fix i remember, it was only one little thing i needed to change, i have been digging around in all my settings, conf files and parameters i can think of but i cannot find what could have done it
 
Maybe one of these?

zfs set sync=disabled POOL/DATASET

zfs set logbias=throughput POOL/DATASET
 
Maybe one of these?

zfs set sync=disabled POOL/DATASET

zfs set logbias=throughput POOL/DATASET
thank you for the suggestion, all the dataset parameters are the same, i set it up to match the other drive.

i am using sync standard and logbias latency for those settings

what i changed completely fixed the issue across all datasets even those with high compression and dedup, i should have written it down... haha
 
Ok, global parameter…

zfs_dirty_data_max ?

zfs_txg_timeout ?

zfs_vdev_async_write_max_active ?

zfs_delay_min_dirty_percent ?
 
Ok, global parameter…

zfs_dirty_data_max ?

zfs_txg_timeout ?

zfs_vdev_async_write_max_active ?

zfs_delay_min_dirty_percent ?
well, its not a global parameter as it had to be applied per drive, i do remember that part and if it were global it would have applied to the new drives when added, so i know its a per drive setting somewhere. question is what was it haha