]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/zns: Add zone-capacity support.
authorAravind Ramesh <Aravind.Ramesh@wdc.com>
Thu, 18 Aug 2022 15:42:13 +0000 (21:12 +0530)
committerAravind <aravind.ramesh@wdc.com>
Fri, 2 Sep 2022 05:07:05 +0000 (10:37 +0530)
commit792aed13a214a4ebba67084915c0ffc8c30d4129
treed8b40263d06cf2305bb5723997e922fdfc56e07f
parent83309bf3ec46e6899695c142656ec9ae7e1e36b0
crimson/zns: Add zone-capacity support.

ZNS SSDs have an attribute called zone_capacity which can be less than or
equal to zone_size. zone_capacity represents the actual writable media in
a zone. When zone_capacity is less than zone_size, writing to offsets
beyond zone_capacity will cause write errors.
Set the segment size as equal to zone_capacity, so that segment managers
writes only upto capacity of the zone/segment.
Update device size to actual available bytes so that the gc can kick in
at appropriate thresholds.

Signed-off-by: Aravind Ramesh <aravind.ramesh@wdc.com>
src/crimson/os/seastore/segment_manager/zns.cc
src/crimson/os/seastore/segment_manager/zns.h