diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-08-31 15:11:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 15:11:14 +0200 |
commit | ce5e46c2ed545a182374dbf72d789b8607437d71 (patch) | |
tree | 8d14da6e6b7184b496d99a9a7a228d2dbdf62a64 /vespalib | |
parent | 3c0574dacee144660f87685b86344d9b0292e6b3 (diff) | |
parent | cebe689f7a2a361d61496db126bd2081b23abbe5 (diff) |
Merge pull request #28321 from vespa-engine/toregge/bump-default-small-limit
Adjust limit for when mmap file allocator uses separate mmaps.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/util/mmap_file_allocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |