From d186067e1d81467e585204087e2757875b7aa8c6 Mon Sep 17 00:00:00 2001 From: Gregory Wlodarek Date: Wed, 12 Jan 2022 19:31:08 +0000 Subject: SERVER-62550 Lower BSONColumn roundtrip memory usage in validate --- src/mongo/db/catalog/collection_validation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mongo/db/catalog/collection_validation.cpp b/src/mongo/db/catalog/collection_validation.cpp index 6e58918350c..318b682689c 100644 --- a/src/mongo/db/catalog/collection_validation.cpp +++ b/src/mongo/db/catalog/collection_validation.cpp @@ -464,9 +464,9 @@ void _validateBSONColumnRoundtrip(OperationContext* opCtx, // This function is memory intensive as it needs to store the original documents prior to // compressing and decompressing them to check that the documents are the same afterwards. We'll - // limit the number of original documents we hold in-memory to be approximately 100MB to avoid + // limit the number of original documents we hold in-memory to be approximately 25MB to avoid // running out of memory. - constexpr size_t kMaxMemoryUsageBytes = 100 * 1024 * 1024; + constexpr size_t kMaxMemoryUsageBytes = 25 * 1024 * 1024; size_t currentMemoryUsageBytes = 0; BSONColumnBuilder columnBuilder(""); -- cgit v1.2.1