Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Is the ZFS compression actually worth it? #9

@jdvorak001

Description

@jdvorak001

Thank you for sharing the details of your setup and the thoughts behind it.

I'm wondering a little how big, in your case, the benefits of using the compression are.
From #2 I understood it actually saves space only if a 16KB block is compressed to 8KB or less, while the CPU cycles are burnt in any case. So the effect of the compression is kind of just binary and it can't get better than 50%.
On the other hand, the InnoDB reads & writes (actually happening on an mmap()-ed file) would be much more straightforward for the filesystem & the kernel if the ZFS compression were not used.

A couple of questions if you allow:

  1. What is the compression ratio you are actually experiencing?
  2. Based on the demand surge you are expecting in the future, when would you be out of storage space (a) with your current setup, and (b) without using the ZFS compression?
  3. Could you possibly estimate the effect of the compression being on/off on your server's CPU utilisation and on its energy consumption?
  4. Should compression be justifiable, wouldn't it be more efficient to partition the big transaction table(s) into a live partition and a series of read-only, archival ones, with a more aggresive compression applied on the latter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions