Skip to content

Commit 135c035

Browse files
committed
crimson/os/seastore: increase OI_MAX_LENGTH to avoid storing OI data in the omap tree
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 <[email protected]>
1 parent d2175d2 commit 135c035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crimson/os/seastore/onode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace crimson::os::seastore {
1616

1717
struct onode_layout_t {
1818
// The expected decode size of object_info_t without oid.
19-
static constexpr int MAX_OI_LENGTH = 232;
19+
static constexpr int MAX_OI_LENGTH = 236;
2020
// We might want to move the ss field out of onode_layout_t.
2121
// The reason is that ss_attr may grow to relative large, as
2222
// its clone_overlap may grow to a large size, if applications

0 commit comments

Comments
 (0)