mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
Introduce dedupused/dedupsaved pool properties
Currently there is only a dedup ratio reported via pool properties. If dedup is enabled only for some datasets, it is impossible to say how much space the ratio actually covers. Fix this by introducing dedupused/dedupsaved pool properties, similar to earlier added block cloning ones. Combined with work to expose allocation classes stats, it should give user-space enough visibility to correlate `zpool list` and `zfs list` space numbers. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Ryan Moeller <ryan.moeller@klarasystems.com> Signed-off-by: Alexander Motin <alexander.motin@TrueNAS.com> Closes #18245
This commit is contained in:
@@ -80,6 +80,21 @@ See
|
||||
.Xr zpool-prefetch 8 .
|
||||
.It Sy dedup_table_size
|
||||
Total on-disk size of the deduplication table.
|
||||
.It Sy dedupratio
|
||||
The ratio of the total amount of storage that would be required to store all
|
||||
the deduplicated blocks without deduplication to the actual storage used.
|
||||
The
|
||||
.Sy dedupratio
|
||||
property is calculated as:
|
||||
.Pp
|
||||
.Sy ( ( dedupsaved + dedupused ) * 100 ) / dedupused
|
||||
.It Sy dedupsaved
|
||||
The amount of additional storage that would be required if deduplication
|
||||
was not used.
|
||||
This represents the space saved by deduplication.
|
||||
.It Sy dedupused
|
||||
The amount of storage used by deduplicated blocks.
|
||||
This is the actual physical space occupied on disk after deduplication.
|
||||
.It Sy expandsize
|
||||
Amount of uninitialized space within the pool or device that can be used to
|
||||
increase the total capacity of the pool.
|
||||
|
||||
Reference in New Issue
Block a user