Modify the direct io align size to 4K (#158)

Co-authored-by: dev <noreply@deepseek.com>
This commit is contained in:
SF-Zhou 2025-03-12 13:49:07 +08:00 committed by GitHub
parent 3a30c53bf2
commit b71ffc5560
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ enum class FeatureFlags : uint32_t {
ALLOW_READ_UNCOMMITTED = 8, ALLOW_READ_UNCOMMITTED = 8,
}; };
constexpr auto kAIOAlignSize = 512ul; constexpr auto kAIOAlignSize = 4096ul;
class ChunkId { class ChunkId {
public: public:

View File

@ -1,7 +1,7 @@
use super::super::Size; use super::super::Size;
use std::alloc::Layout; use std::alloc::Layout;
pub const ALIGN_SIZE: Size = Size::new(512); pub const ALIGN_SIZE: Size = Size::new(4096);
pub struct AlignedBuffer(&'static mut [u8]); pub struct AlignedBuffer(&'static mut [u8]);