Zfs: Difference between revisions

No change in size ,  5 years ago
Line 58: Line 58:
[name@server]$ sudo zfs set compression=lz4 data
[name@server]$ sudo zfs set compression=lz4 data
</source>
</source>
This will use the [https://en.wikipedia.org/wiki/LZ4_(compression_algorithm) lz4] compression algorithm on the zpool <code>data</code>. If your data is largely binary you might not see large reduction in storage use, however, if your data is something more compressible such, as ascii data, you may see a larger reduction in storage use. Using compression can also speed up your file IO because less data needs to read and written. However this can depend on the particular compression algorithm chosen and some particularly computationally intensive algrothims may actually reduce file IO rates. The lz4 algorithm was choosen because it is a resonable compromise between speed and amount of compression achieved, other compression algorithms may provide better compression or speed but likely not both.
This will use the [https://en.wikipedia.org/wiki/LZ4_(compression_algorithm) lz4] compression algorithm on the zpool <code>data</code>. If your data is largely binary you might not see large reduction in storage use, however, if your data is something more compressible, such as ascii data, you may see a larger reduction in storage use. Using compression can also speed up your file IO because less data needs to read and written. However this can depend on the particular compression algorithm chosen and some particularly computationally intensive algrothims may actually reduce file IO rates. The lz4 algorithm was choosen because it is a resonable compromise between speed and amount of compression achieved, other compression algorithms may provide better compression or speed but likely not both.


Check settings
Check settings
cc_staff
1,486

edits