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 | ||
| vm:proxmox:pbs:performance [2025/01/09 09:07] – niziak | vm:proxmox:pbs:performance [2026/11/12 08:33] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== performance ====== | ====== performance ====== | ||
| + | |||
| + | ===== pbs datastore tunning ===== | ||
| + | |||
| + | Overview of PBS Sync Levels | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | but significantly slows down performance on slower or network-attached storages. | ||
| + | * '' | ||
| + | It is the **fastest** option, but risks data loss or broken backups if a sudden power loss occurs. | ||
| ===== FS tuning ===== | ===== FS tuning ===== | ||
| Line 13: | Line 23: | ||
| * larger recordsize = less IOPS | * larger recordsize = less IOPS | ||
| * Create histogram from existing PBS chunks sizes. | * Create histogram from existing PBS chunks sizes. | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * ZFS on HDD: | ||
| + | * log on NVM do almost nothing | ||
| + | * add persistent metadata L2ARC on NVM | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * GC phase 1 needs to modify inodes. GC phase 2 stats every chunk so it spends its time on dnode misses. Ensure enough dnode cache in ARC. Tune '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| Line 21: | Line 45: | ||
| read/ | read/ | ||
| - | In general HDDs shouldn' | + | In general HDDs shouldn' |
| still do it, it's highly recommended to also use SSDs for storing the metadata. | still do it, it's highly recommended to also use SSDs for storing the metadata. | ||
| </ | </ | ||
| Line 31: | Line 55: | ||
| So: | So: | ||
| * RAIDZ on HDDS is very slow (due to IO OPS limit to single HDD). Throughput is n x HDD, but IOOPS equals single HDD | * RAIDZ on HDDS is very slow (due to IO OPS limit to single HDD). Throughput is n x HDD, but IOOPS equals single HDD | ||
| - | * For HDDs use stripped mirrors to multiply IOOPS (i.e. for 6 disk: 3 stripes per 2 hdd in mirror) | + | * For HDDs use stripped mirrors to multiply IOOPS (i.e. for 6 disk: 3 stripes per 2 x HDD in mirror) |
| + | * GC on HDD can takes days without metadata caching on SSD | ||
| + | * Use SSD as cache: | ||
| + | * MFU only or | ||
| + | * configure to cache metadata only | ||
| * Use DRAID - where groups of stripes are used by design. | * Use DRAID - where groups of stripes are used by design. | ||
| - | * Use at least separate ZFS dataset for backup, then set block size to <code bash>zfs set recordsize=1M YourPoolName/ | + | * Use at least separate ZFS dataset for backup, then set block size to <code bash>zfs set recordsize=16M YourPoolName/ |
| - | * Disable atime <code bash>zfs set atime=off backup2</ | + | * Disable atime <code bash>zfs set atime=off backup2</ |
| + | * Compression is performed on client side. So enable light compression <code bash>zfs set compression=lz4 YourPoolName/ | ||
| + | * For small RAM, prefer to cache metadata and data in L2ARC: '' | ||