meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:fs:zfs:tuning [2025/03/04 15:17] – niziak | linux:fs:zfs:tuning [2025/08/23 08:45] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== ZFS performance tuning tips ====== | ====== ZFS performance tuning tips ====== | ||
| + | |||
| + | Copy-paste snippet: | ||
| + | <code bash> | ||
| + | zfs set recordsize=1M hddpool | ||
| + | zfs set recordsize=1M nvmpool | ||
| + | zfs set compression=zstd hddpool | ||
| + | zfs set compression=zstd nvmpool | ||
| + | </ | ||
| ===== zil limit ===== | ===== zil limit ===== | ||
| ZFS parameter [[https:// | ZFS parameter [[https:// | ||
| + | |||
| + | <file ini / | ||
| + | options zfs zil_slog_bulk=67108864 | ||
| + | options zfs l2arc_write_max=67108864 | ||
| + | </ | ||
| See similar for L2ARC: [[https:// | See similar for L2ARC: [[https:// | ||
| Line 33: | Line 46: | ||
| * less metadata | * less metadata | ||
| * less fragmentation | * less fragmentation | ||
| - | * zvol: huge overhead if guest is using small block sizes | + | * zvol: huge overhead if guest is using small block sizes - try to match guest FS block size to volblock - do not set 4kB volblock size ! |
| Note: '' | Note: '' | ||
| Line 46: | Line 59: | ||
| <code bash> | <code bash> | ||
| zpool iostat -r | zpool iostat -r | ||
| + | |||
| </ | </ | ||
| + | |||
| + | ===== zvol for guest ===== | ||
| + | |||
| + | * match volblock size to guest block size | ||
| + | * do not use guest CoW filesystem on CoW (ZFS) | ||
| + | * do not use qcow2 files on ZFS | ||
| + | * use 2 zvols per guest FS - one for storage and second one for journal | ||
| ===== Tune L2ARC for backups ===== | ===== Tune L2ARC for backups ===== | ||