With a dataset, I can see ‘Details’ → ‘Resource usage metrics’ → ‘Disk Usage’ section
To check the disk usage value, I checked all the dataset branch, build history and added all Size of files of un deleted transactions + aborted/failed transactions.
I tried this for several dataset, but I always ended up with the value smaller than recorded disk usage value about 10%.
Per the Resource Management docs (Usage types > Foundry storage), disk usage is calculated in two steps:
Take every transaction ever committed or aborted on the dataset, across all branches, and sum the size of the files each one added.
Subtract only the transactions that were removed by Retention.
A few things that commonly explain a gap when you add it up manually:
DELETE transactions don’t free storage. Files removed from the view by a DELETE transaction stay in underlying storage and keep counting. If your sum skipped files that were later deleted from the view, they are still in the recorded number.
Branches and older transactions count. Every branch and every previous transaction contributes, not just the current view.
It’s measured in gigabyte-months, sampled hourly. The metric is time-based, so a point-in-time file-size sum won’t match it exactly, especially if the size changed during the period.
Units. Worth checking whether the file sizes you summed are in GiB and the metric in GB (or the other way round), since that alone is about a 7% difference.
The docs also note that Retention is the only way to reduce the number - committing a DELETE or updating branches does not.