diff options
author | Geir Storli <geirst@oath.com> | 2018-01-26 13:54:38 +0000 |
---|---|---|
committer | Geir Storli <geirst@oath.com> | 2018-01-26 13:54:38 +0000 |
commit | fb56646d7bea7b0bdb667c9af34748b6eaa0fd30 (patch) | |
tree | dd94da1fb6d1d18d5c0f5d261e90e928212de763 /searchlib | |
parent | 780f672e5aa11e9048a134563456dd83cfc1e347 (diff) |
Use definition of huge page size from memory allocator.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/attribute/multivalueattribute.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/multivalueattribute.hpp b/searchlib/src/vespa/searchlib/attribute/multivalueattribute.hpp index b9042ac5f6c..c63f03ed44e 100644 --- a/searchlib/src/vespa/searchlib/attribute/multivalueattribute.hpp +++ b/searchlib/src/vespa/searchlib/attribute/multivalueattribute.hpp @@ -8,7 +8,6 @@ namespace search { namespace multivalueattribute { -constexpr size_t HUGE_MEMORY_PAGE_SIZE = 2 * 1024 * 1024; constexpr size_t SMALL_MEMORY_PAGE_SIZE = 4 * 1024; } @@ -19,7 +18,7 @@ MultiValueAttribute(const vespalib::string &baseFileName, const AttributeVector::Config &cfg) : B(baseFileName, cfg), _mvMapping(MultiValueMapping::optimizedConfigForHugePage(1023, - multivalueattribute::HUGE_MEMORY_PAGE_SIZE, + vespalib::alloc::MemoryAllocator::HUGEPAGE_SIZE, multivalueattribute::SMALL_MEMORY_PAGE_SIZE, 8 * 1024, cfg.getGrowStrategy().getMultiValueAllocGrowFactor()), |