From 9fddcb957f43bb89e68b6c7d16ba36f9cc5f0648 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Tue, 24 Mar 2026 19:26:31 -0600 Subject: [PATCH] chore: bump direct_io buffer from 256KiB to 1MiB --- core/src/util/direct_io.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/util/direct_io.rs b/core/src/util/direct_io.rs index 67617c22c..31661149b 100644 --- a/core/src/util/direct_io.rs +++ b/core/src/util/direct_io.rs @@ -8,7 +8,7 @@ use tokio::io::AsyncWrite; use tokio::task::JoinHandle; const BLOCK_SIZE: usize = 4096; -const BUF_CAP: usize = 256 * 1024; // 256KB +const BUF_CAP: usize = 1024 * 1024; // 1MiB /// Aligned buffer for O_DIRECT I/O. struct AlignedBuf {