-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fast Dedup: Dedup Quota #15889
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
.\" Copyright (c) 2021, Colm Buckley <[email protected]> | ||
.\" Copyright (c) 2023, Klara Inc. | ||
.\" | ||
.Dd January 2, 2024 | ||
.Dd January 14, 2024 | ||
.Dt ZPOOLPROPS 7 | ||
.Os | ||
. | ||
|
@@ -73,6 +73,8 @@ The amount of storage used by cloned blocks. | |
Percentage of pool space used. | ||
This property can also be referred to by its shortened column name, | ||
.Sy cap . | ||
.It Sy dedup_table_size | ||
Total on-disk size of the deduplication table. | ||
.It Sy expandsize | ||
Amount of uninitialized space within the pool or device that can be used to | ||
increase the total capacity of the pool. | ||
|
@@ -348,6 +350,27 @@ See | |
and | ||
.Xr zpool-upgrade 8 | ||
for more information on the operation of compatibility feature sets. | ||
.It Sy dedup_table_quota Ns = Ns Ar number Ns | Ns Sy none Ns | Ns Sy auto | ||
This property sets a limit on the on-disk size of the pool's dedup table. | ||
Entries will not be added to the dedup table once this size is reached; | ||
if a dedup table already exists, and is larger than this size, they | ||
will not be removed as part of setting this property. | ||
Existing entries will still have their reference counts updated. | ||
.Pp | ||
The actual size limit of the table may be above or below the quota, | ||
depending on the actual on-disk size of the entries (which may be | ||
approximated for purposes of calculating the quota). | ||
That is, setting a quota size of 1M may result in the maximum size being | ||
slightly below, or slightly above, that value. | ||
Set to | ||
.Sy 'none' | ||
to disable. | ||
In automatic mode, which is the default, the size of a dedicated dedup vdev | ||
is used as the quota limit. | ||
.Pp | ||
The | ||
.Sy dedup_table_quota | ||
property works for both legacy and fast dedup tables. | ||
.It Sy dedupditto Ns = Ns Ar number | ||
This property is deprecated and no longer has any effect. | ||
.It Sy delegation Ns = Ns Sy on Ns | Ns Sy off | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
* Copyright 2011 Nexenta Systems, Inc. All rights reserved. | ||
* Copyright (c) 2012, 2018 by Delphix. All rights reserved. | ||
* Copyright (c) 2021, Colm Buckley <[email protected]> | ||
* Copyright (c) 2021, Klara Inc. | ||
* Copyright (c) 2021, 2023, Klara Inc. | ||
*/ | ||
|
||
#include <sys/zio.h> | ||
|
@@ -125,6 +125,9 @@ zpool_prop_init(void) | |
zprop_register_number(ZPOOL_PROP_BCLONERATIO, "bcloneratio", 0, | ||
PROP_READONLY, ZFS_TYPE_POOL, "<1.00x or higher if cloned>", | ||
"BCLONE_RATIO", B_FALSE, sfeatures); | ||
zprop_register_number(ZPOOL_PROP_DEDUP_TABLE_SIZE, "dedup_table_size", | ||
0, PROP_READONLY, ZFS_TYPE_POOL, "<size>", "DDTSIZE", B_FALSE, | ||
sfeatures); | ||
|
||
/* default number properties */ | ||
zprop_register_number(ZPOOL_PROP_VERSION, "version", SPA_VERSION, | ||
|
@@ -133,6 +136,9 @@ zpool_prop_init(void) | |
zprop_register_number(ZPOOL_PROP_ASHIFT, "ashift", 0, PROP_DEFAULT, | ||
ZFS_TYPE_POOL, "<ashift, 9-16, or 0=default>", "ASHIFT", B_FALSE, | ||
sfeatures); | ||
zprop_register_number(ZPOOL_PROP_DEDUP_TABLE_QUOTA, "dedup_table_quota", | ||
UINT64_MAX, PROP_DEFAULT, ZFS_TYPE_POOL, "<size>", "DDTQUOTA", | ||
B_FALSE, sfeatures); | ||
|
||
/* default index (boolean) properties */ | ||
zprop_register_index(ZPOOL_PROP_DELEGATION, "delegation", 1, | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.