From cebe689f7a2a361d61496db126bd2081b23abbe5 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Thu, 31 Aug 2023 13:43:23 +0200 Subject: Adjust limit for when mmap file allocator uses separate mmaps. --- vespalib/src/vespa/vespalib/util/mmap_file_allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vespalib') diff --git a/vespalib/src/vespa/vespalib/util/mmap_file_allocator.h b/vespalib/src/vespa/vespalib/util/mmap_file_allocator.h index c79dc8682ba..7dbe017705e 100644 --- a/vespalib/src/vespa/vespalib/util/mmap_file_allocator.h +++ b/vespalib/src/vespa/vespalib/util/mmap_file_allocator.h @@ -53,7 +53,7 @@ class MmapFileAllocator : public MemoryAllocator { void* map_premapped_offset_to_ptr(uint64_t offset, size_t size) const; uint64_t remove_allocation(PtrAndSize alloc, Allocations& allocations) const noexcept; public: - static constexpr uint32_t default_small_limit = 0; + static constexpr uint32_t default_small_limit = 128_Ki; static constexpr uint32_t default_premmap_size = 1_Mi; MmapFileAllocator(const vespalib::string& dir_name); MmapFileAllocator(const vespalib::string& dir_name, uint32_t small_limit, uint32_t premmap_size); -- cgit v1.2.3