]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: increase OI_MAX_LENGTH to avoid storing OI data in the omap... 63459/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Fri, 23 May 2025 13:52:14 +0000 (13:52 +0000)
committermyoungwon oh <ohmyoungwon@gmail.com>
Fri, 23 May 2025 14:10:18 +0000 (14:10 +0000)
Due to a recent change (adding shard_versions in object_info_t),
the size of OI has increased to 236. This causes to store OI data to the omap tree
because the size is over than OI_MAX_LENGTH. As a result, this results in
performance drop in small random write.

Signed-off-by: Myoungwon Oh <ohmyoungwon@gmail.com>
src/crimson/os/seastore/onode.h

index 5d507460ded47761fbd189934f784a4b0da33e81..71326c89167a4ebdb44b3c15283c8501f2f2f097 100644 (file)
@@ -16,7 +16,7 @@ namespace crimson::os::seastore {
 
 struct onode_layout_t {
   // The expected decode size of object_info_t without oid.
-  static constexpr int MAX_OI_LENGTH = 232;
+  static constexpr int MAX_OI_LENGTH = 236;
   // We might want to move the ss field out of onode_layout_t.
   // The reason is that ss_attr may grow to relative large, as
   // its clone_overlap may grow to a large size, if applications