freebsd:zfs
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| freebsd:zfs [2020/10/26 05:57] – sleepy | freebsd:zfs [2025/07/07 23:10] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ===== PostgreSQL ===== | ===== PostgreSQL ===== | ||
| + | ~~REFNOTES~~ | ||
| ==== notes ==== | ==== notes ==== | ||
| * use ZFS's cache is postgresql dataset exceeds RAM, use postgres' | * use ZFS's cache is postgresql dataset exceeds RAM, use postgres' | ||
| * disable postgres cache, enable ZFS cache | * disable postgres cache, enable ZFS cache | ||
| * enable postgres cache, disable ZFS cache | * enable postgres cache, disable ZFS cache | ||
| + | |||
| ==== zfs ==== | ==== zfs ==== | ||
| * **atime=off** -- disable access time recording for files when they are read | * **atime=off** -- disable access time recording for files when they are read | ||
| Line 22: | Line 24: | ||
| * disable PostgreSQL TOAST compression | * disable PostgreSQL TOAST compression | ||
| * dedicate 15%-25% physical ram to ARC, and 50% to shared_buffers | * dedicate 15%-25% physical ram to ARC, and 50% to shared_buffers | ||
| + | === raw benchmark data === | ||
| + | {{tablelayout? | ||
| + | ^ pgbench -c 10 -j 2 -t 10000 ^ inc. connections est. ^ exc. connections est. ^ latency ^ | ||
| + | | BASE | 6775 | 6776 | 1.476 ms | | ||
| + | | primarycache=metadata | 3850 | 3850 | 2.597 ms | | ||
| + | | primarycache=metadata compression=lz4 | 4815 | 4816 | 2.077 ms | | ||
| + | | primarycache=metadata compression=lz4 recordsize=16k | 4160 | 4160 | 2.404 ms | | ||
| + | | primarycache=metadata, | ||
| + | | primarycache=metadata, | ||
| + | | primarycache=metadata, | ||
| + | | primarycache=metadata, | ||
| + | | compression=lz4, | ||
| + | | compression=lz4, | ||
| + | | compression=lz4, | ||
| + | | compression=lz4, | ||
| + | |||
| ---- | ---- | ||
freebsd/zfs.1603691868.txt.gz · Last modified: (external edit)
