zfs/tests/zfs-tests/include
Allan Jude c7ada64bb6
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.
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Signed-off-by: Don Brady <don.brady@klarasystems.com>
Co-authored-by: Don Brady <don.brady@klarasystems.com>
Co-authored-by: Rob Wing <rob.wing@klarasystems.com>
Co-authored-by: Sean Eric Fagan <sean.fagan@klarasystems.com>
Closes #15889
2024-07-25 09:47:36 -07:00
..
.gitignore Add zpool events tests 2017-05-22 12:34:42 -04:00
blkdev.shlib ZTS: get_persistent_disk_name can return truncated names 2023-11-29 09:34:29 -08:00
commands.cfg Fix cloning into mmaped and cached file. 2024-01-17 08:51:07 -08:00
default.cfg.in Allowing PERFPOOL to be defined by zfs-test users 2024-02-09 10:02:46 -08:00
libtest.shlib ZTS: handle FreeBSD version numbers correctly (#16340) 2024-07-12 10:58:03 -07:00
math.shlib Block cloning tests. 2023-12-26 12:01:53 -08:00
properties.shlib Add options to zfs redundant_metadata property 2022-10-19 17:07:51 -07:00
tunables.cfg ddt: dedup table quota enforcement 2024-07-25 09:47:36 -07:00
zpool_script.shlib tests: review every awk(1) invocation 2022-04-01 17:57:55 -07:00