Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast Dedup: Dedup Quota #15889

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Commits on Jul 23, 2024

  1. ddt: dedup table quota enforcement

    This adds two new pool properties:
    - dedup_table_size, the total size of all DDTs on the pool; and
    - dedup_table_quota, the maximum possible size of all DDTs in the pool
    
    When set, quota will be enforced by checking when a new entry is about
    to be created. If the pool is over its dedup quota, the entry won't be
    created, and the corresponding write will be converted to a regular
    non-dedup write. Note that existing entries can be updated (ie their
    refcounts changed), as that reuses the space rather than requiring more.
    
    dedup_table_quota can be set to 'auto', which will set it based on the
    size of the devices backing the "dedup" allocation device. This makes it
    possible to limit the DDTs to the size of a dedup vdev only, such that
    when the device fills, no new blocks are deduplicated.
    
    Sponsored-by: iXsystems, Inc.
    Sponsored-By: Klara Inc.
    Co-authored-by: Rob Wing <[email protected]>
    Co-authored-by: Sean Eric Fagan <[email protected]>
    Co-authored-by: Allan Jude <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Signed-off-by: Don Brady <[email protected]>
    4 people committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    5a6dd55 View commit details
    Browse the repository at this point in the history