westerndigitalcorporation / zenfs

ZenFS is a storage backend for RocksDB that enables support for ZNS SSDs and SMR HDDs.
GNU General Public License v2.0
238 stars 87 forks source link

zbd: add garbage collection stats interface #205

Closed yhr closed 2 years ago

yhr commented 2 years ago

Keep track of how many total bytes that are written and how many bytes that are moved during garbage collection to allow for write amp statistics to be calculated.

Signed-off-by: Hans Holmberg hans.holmberg@wdc.com

aravind-wdc commented 2 years ago

Can we log this stats information periodically (like we log the zone stats in debug mode, at least for now, until we can make it available in runtime) ?

yhr commented 2 years ago

Can we log this stats information periodically (like we log the zone stats in debug mode, at least for now, until we can make it available in runtime) ?

yes, we could add that to the garbage collection patch