meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:fs:zfs:compression [2021/03/02 13:09] niziaklinux:fs:zfs:compression [2026/01/19 13:02] (current) – [switch to ZSTD] niziak
Line 7: Line 7:
 zfs get compressratio  zfs get compressratio 
 zfs get compressratio /rpool zfs get compressratio /rpool
 +
 +zfs get compression,compressratio,used,logicalused,referenced,logicalreferenced rpool/data/subvol-118-disk-0
 </code> </code>
  
Line 31: Line 33:
 cannot set property for 'rpool/data': pool and or dataset must be upgraded to set this property or value cannot set property for 'rpool/data': pool and or dataset must be upgraded to set this property or value
 </code> </code>
 +
 +OpenZFS ZSTD compression level is 3 (available range is 1-19). To change it to 9:
 +<code bash>
 +zfs set compression=zstd-9 rpool/data
 +</code>
 +NOTE: it significantly increase CPU usage when writing huge amount of data (RAW movies). The best results for RAW movies is ''off'' or ''lz4''.