We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c1f97a + c5ed7ce commit e288069Copy full SHA for e288069
src/crimson/os/seastore/segment_manager/block.cc
@@ -267,6 +267,9 @@ open_device_ret open_device(
267
).then([stat, &path, FNAME](auto file) mutable {
268
return file.size().then([stat, file, &path, FNAME](auto size) mutable {
269
stat.size = size;
270
+ // Use Seastar's DMA alignment requirement instead of stat's block_size
271
+ // to ensure writes are properly aligned for optimal performance
272
+ stat.block_size = file.disk_write_dma_alignment();
273
INFO("path={} successful, size=0x{:x}, block_size=0x{:x}",
274
path, stat.size, stat.block_size);
275
return std::make_pair(file, stat);
0 commit comments