Skip to content

Commit

Permalink
NAS-107309 / 12.1 / Add ZSTD and ZSTD-FAST to WebUI
Browse files Browse the repository at this point in the history
Openzfs2.0 adds ZSTD and ZSTD-fast compression.
See: openzfs/zfs/pull/10278

This commit adds the following compression values to be accepted by the pool middleware:
- ZSTD
- ZSTD-5
- ZSTD-7
- ZSTD-FAST

These levels give an acceptable and balanced spread of both compression ratio and performance.
(see graphs in openzfs/zfs/pull/10278 )

Notes:
- Requires an update to OpenZFS before being able to be used
- Might also want to backport to 12U1 or even 12RC1
- Related middleware changes are also required, see: truenas/middleware/pull/5517

Signed-off-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
  • Loading branch information
kjeld Schouten-Lebbing committed Aug 20, 2020
1 parent f603046 commit 606c75a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ export class DatasetFormComponent implements Formconfiguration{
options: [
{ label: 'off', value: 'OFF' },
{ label: 'lz4 (recommended)', value: 'LZ4' ,},
{ label: 'zstd (default level, 3)', value: 'ZSTD' },
{ label: 'zstd (Medium, slow)', value: 'ZSTD-5' },
{ label: 'zstd (Maximum, very slow)', value: 'ZSTD-7' },
{ label: 'zstd-fast (default level, 1)', value: 'ZSTD-FAST' },
{ label: 'gzip (fastest)', value: 'GZIP-1' },
{ label: 'gzip (default level, 6)', value: 'GZIP' },
{ label: 'gzip (maximum, slow)', value: 'GZIP-9' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ export class ZvolFormComponent {
options: [
{label : T('Off'), value : "OFF"},
{label : T('lz4 (recommended)'), value : "LZ4"},
{label : T('zstd (default level, 3)'), value : "ZSTD" },
{label : T('zstd (Medium, slow)'), value : "ZSTD-5" },
{label : T('zstd (Maximum, very slow)'), value : "ZSTD-7" },
{label : T('zstd-fast (default level, 1)'), value : "ZSTD-FAST" },
{label : T('gzip (default level, 6)'), value : "GZIP"},
{label : T('gzip (fastest)'), value : "GZIP-1"},
{label : T('gzip (maximum, slow)'), value : "GZIP-9"},
Expand Down

0 comments on commit 606c75a

Please sign in to comment.