From 37f03da8ba6e1ab074b503e1dd63bfa7199d0537 Mon Sep 17 00:00:00 2001 From: Sara Hartse Date: Fri, 26 Jul 2019 10:54:14 -0700 Subject: Fast Clone Deletion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Deleting a clone requires finding blocks are clone-only, not shared with the snapshot. This was done by traversing the entire block tree which results in a large performance penalty for sparsely written clones. This is new method keeps track of clone blocks when they are modified in a "Livelist" so that, when it’s time to delete, the clone-specific blocks are already at hand. We see performance improvements because now deletion work is proportional to the number of clone-modified blocks, not the size of the original dataset. Reviewed-by: Sean Eric Fagan Reviewed-by: Matt Ahrens Reviewed-by: Brian Behlendorf Reviewed-by: Serapheim Dimitropoulos Signed-off-by: Sara Hartse Closes #8416 --- include/sys/dsl_destroy.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/sys/dsl_destroy.h') diff --git a/include/sys/dsl_destroy.h b/include/sys/dsl_destroy.h index c4dbea26b..208d75bac 100644 --- a/include/sys/dsl_destroy.h +++ b/include/sys/dsl_destroy.h @@ -33,6 +33,7 @@ extern "C" { struct nvlist; struct dsl_dataset; +struct dsl_pool; struct dmu_tx; int dsl_destroy_snapshots_nvl(struct nvlist *, boolean_t, -- cgit v1.2.3