Re:Everything I've seen on optimizing Postgres on ZFS
by R0b0t1 on Thursday December 23, 2021 @12:22AM
(#29658929)
Run it on really bad hardware, might be easier to see the differences. Could use some of the dm drivers to inject latency on disks too.
Re:Everything I've seen on optimizing Postgres on ZFS
by hardwaresofton on Thursday December 23, 2021 @12:56AM
(#29659074)
Ah thanks for this, I didn't know there was actually a dm driver to inject latency. TIL it's called dm-delay[0][1].
[0]: https://www.kernel.org/doc/html/latest/admin-guide/device-ma...
[1]: https://enodev.fr/posts/emulate-a-slow-block-device-with-dm-...
One of the things about this kind of benchmarking/testing is that it really requires multiple days worth of evaluation (index bloat, disk fragmentation, etc) and is really hard to get right... I'm afraid I'd add more noise than signal.
Some great resources out there though, like Percona's post on MySQL:
https://www.percona.com/blog/mysql-zfs-performance-update/
Even in there though, the comments are full of reasonable objections, with some really sage advice in terms of fragmentation and really measuring whether ZFS can coalesce your writes. It's a hard topic!