]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/zbd: increase padding byte buffer size.
authorAravind Ramesh <aravind.ramesh@wdc.com>
Wed, 5 Jul 2023 16:58:24 +0000 (18:58 +0200)
committerAravind Ramesh <aravind.ramesh@wdc.com>
Tue, 11 Jul 2023 08:46:20 +0000 (10:46 +0200)
Before closing a segment, seastore writes a tail information
at the end of the segment, since ZBD zones are serially write
required, if a zone is not fully written to the end, it writes
padding bytes till the tail section.
Increase the size of write chunks to reduce the number of writes.

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

index 97344b858a90764408e7c57716fffb962868af1d..4f8103d785f859a993b8a35e4e4160879db1a2e1 100644 (file)
@@ -16,7 +16,7 @@ SET_SUBSYS(seastore_device);
 #define SECT_SHIFT     9
 #define RESERVED_ZONES         1
 // limit the max padding buf size to 1MB
-#define MAX_PADDING_SIZE 1048576
+#define MAX_PADDING_SIZE 4194304
 
 using z_op = crimson::os::seastore::segment_manager::zbd::zone_op;
 template <> struct fmt::formatter<z_op>: fmt::formatter<std::string_view> {