LZ4 vs. ZStd

ilmarmors

Dabbler
Joined
Dec 27, 2014
Messages
25
What is the most efficient way how to recompress existing data if I would like to use zstd intead of lz4? I created Replication task via TrueNAS UI (remember to take out checkbox for recursive and include dataset properties checkboxes, otherwise old compression settings will be copied over to new dataset). I will delete old dataset and rename new one after send / recv will complete. Both datasets are in the same pool. My use case allows to stop writes to original dataset.

I see following processed created with ps

zfs send -V -L -c <pool>/<srcdataset>@<auto snapshot name>
zfs recv -s -F <pool>/<dstdataset>


My dataset is quite big, will now the answer only after few days. Can somebody confirm that zfs send <existing dataset> / recv <dataset with zstd as default compression type> will do the trick and data will be recompressed?
 

kspare

Guru
Joined
Feb 19, 2015
Messages
508
Can you print out the CLI specs of your dataset and post it here?

just starting to pick this up again with all the updates (my hardware and tn)

My server has Dual E5-2697 v2 cpus with HT turned off and 1tb of ram, dual 9300i controllers, 1 for the 12 sata ssds, and 1 for the 24 4tb sata drives. I have 100gb p4801x for slog and 2 800gb p3700 for meta (testing this)
 
Top