From 3640ef403f2d904e2563b14b1fa04e7631a4f245 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Wed, 19 Oct 2022 12:55:47 +0000 Subject: Use 32M as mmap limit during decompression of documents --- searchlib/src/vespa/searchlib/docstore/value.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searchlib/src') diff --git a/searchlib/src/vespa/searchlib/docstore/value.cpp b/searchlib/src/vespa/searchlib/docstore/value.cpp index 6c2173393b9..bd4d75d944a 100644 --- a/searchlib/src/vespa/searchlib/docstore/value.cpp +++ b/searchlib/src/vespa/searchlib/docstore/value.cpp @@ -77,7 +77,7 @@ Value::set(vespalib::DataBuffer &&buf, ssize_t len, const CompressionConfig &com Value::Result Value::decompressed() const { - vespalib::DataBuffer uncompressed(_buf.get(), (size_t) 0); + vespalib::DataBuffer uncompressed(0, 1, Alloc::alloc(0, 16 * vespalib::alloc::MemoryAllocator::HUGEPAGE_SIZE)); decompress(getCompression(), getUncompressedSize(), vespalib::ConstBufferRef(*this, size()), uncompressed, true); uint64_t crc = XXH64(uncompressed.getData(), uncompressed.getDataLen(), 0); return std::make_pair(std::move(uncompressed), crc == _uncompressedCrc); -- cgit v1.2.3