aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/basicfile.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2026-01-29 12:41:55 +0100
committerGitHub Enterprise <[email protected]>2026-01-29 12:41:55 +0100
commit8aab9458098c29b4bc9e9bff1d4591ced7c9a970 (patch)
tree4d28bd7f02a7d4a05edb406dd174068cddd3720e /src/zencore/basicfile.cpp
parentdon't do full cb-object validation on cache records when read from disk (#739) (diff)
downloadzen-8aab9458098c29b4bc9e9bff1d4591ced7c9a970.tar.xz
zen-8aab9458098c29b4bc9e9bff1d4591ced7c9a970.zip
reduce batch size for reads (#740)
* reduce maximum size per chunk to read to reduce disk contention * increase timeout before warning on slow shut down of zenserver * reduce default window size for blockstore chunk iteration
Diffstat (limited to 'src/zencore/basicfile.cpp')
-rw-r--r--src/zencore/basicfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zencore/basicfile.cpp b/src/zencore/basicfile.cpp
index 2fa02937d..bd4d119fb 100644
--- a/src/zencore/basicfile.cpp
+++ b/src/zencore/basicfile.cpp
@@ -181,7 +181,7 @@ BasicFile::ReadRange(uint64_t FileOffset, uint64_t ByteCount)
void
BasicFile::Read(void* Data, uint64_t BytesToRead, uint64_t FileOffset)
{
- const uint64_t MaxChunkSize = 2u * 1024 * 1024 * 1024;
+ const uint64_t MaxChunkSize = 512u * 1024u;
std::error_code Ec;
ReadFile(m_FileHandle, Data, BytesToRead, FileOffset, MaxChunkSize, Ec);
if (Ec)