menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Databases

>

PostgreSQL...
source image

Dbi-Services

1d

read

336

img
dot

PostgreSQL: Maybe we should give ZFS a chance (2) – testing

  • In this post we’ll look at how they compare when it comes to performance and the data size on disk.
  • We’ve ended with two PostgreSQL clusters, one running on the ext4 file system while the other is running on top of the ZFS file system.
  • The size of the empty cluster is 39MB and 4.7MB on ext4 and ZFS file system respectively due to ZFS compression.
  • Loading data with pgbench shows the size for ext4 is 16GB while for ZFS is 914MB. The runtime was 382.58s for ext4 and 267.87s for ZFS.
  • The instance running on ZFS is slower than the instance running on ext4 for reading with simple pgbench tests.
  • pgbench test results for the same workload show ext4 is faster than the ZFS file system.
  • No clear winner between the two file systems, it depends on the workload and requirements.
  • Testing in your own environment is highly recommended.
  • ZFS might be worth considering for space on disk and snapshots and replication on the file system level.
  • ZFS might not be the best option for workloads that are mostly about reads.

Read Full Article

like

20 Likes

For uninterrupted reading, download the app