Skip to content

Commit

Permalink
[native] Remove mmap arena exposure from Prestissimo
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjialiang authored and xiaoxmeng committed Jan 17, 2024
1 parent 0c76a0d commit 87c1fec
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions presto-native-execution/presto_cpp/main/PrestoServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,6 @@ void PrestoServer::initializeVeloxMemory() {
options.allocatorCapacity = memoryGb << 30;
if (systemConfig->useMmapAllocator()) {
options.useMmapAllocator = true;
options.useMmapArena = systemConfig->useMmapArena();
options.mmapArenaCapacityRatio = systemConfig->mmapArenaCapacityRatio();
}
options.checkUsageLeak = systemConfig->enableMemoryLeakCheck();
options.trackDefaultUsage =
Expand Down
10 changes: 0 additions & 10 deletions presto-native-execution/presto_cpp/main/common/Configs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ SystemConfig::SystemConfig() {
STR_PROP(kAsyncCacheSsdPath, "/mnt/flash/async_cache."),
STR_PROP(kAsyncCacheSsdDisableFileCow, "false"),
STR_PROP(kEnableSerializedPageChecksum, "true"),
STR_PROP(kUseMmapArena, "false"),
NUM_PROP(kMmapArenaCapacityRatio, 10),
STR_PROP(kUseMmapAllocator, "true"),
STR_PROP(kMemoryArbitratorKind, ""),
NUM_PROP(kQueryMemoryGb, 38),
Expand Down Expand Up @@ -431,14 +429,6 @@ bool SystemConfig::enableVeloxExprSetLogging() const {
return optionalProperty<bool>(kEnableVeloxExprSetLogging).value();
}

bool SystemConfig::useMmapArena() const {
return optionalProperty<bool>(kUseMmapArena).value();
}

int32_t SystemConfig::mmapArenaCapacityRatio() const {
return optionalProperty<int32_t>(kMmapArenaCapacityRatio).value();
}

bool SystemConfig::useMmapAllocator() const {
return optionalProperty<bool>(kUseMmapAllocator).value();
}
Expand Down
8 changes: 0 additions & 8 deletions presto-native-execution/presto_cpp/main/common/Configs.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,6 @@ class SystemConfig : public ConfigBase {
/// cache entries.
static constexpr std::string_view kCacheVeloxTtlCheckInterval{
"cache.velox.ttl-check-interval"};

static constexpr std::string_view kUseMmapArena{"use-mmap-arena"};
static constexpr std::string_view kMmapArenaCapacityRatio{
"mmap-arena-capacity-ratio"};
static constexpr std::string_view kUseMmapAllocator{"use-mmap-allocator"};

/// Specifies the memory arbitrator kind. If it is empty, then there is no
Expand Down Expand Up @@ -588,10 +584,6 @@ class SystemConfig : public ConfigBase {

bool enableVeloxExprSetLogging() const;

bool useMmapArena() const;

int32_t mmapArenaCapacityRatio() const;

bool useMmapAllocator() const;

std::string memoryArbitratorKind() const;
Expand Down

0 comments on commit 87c1fec

Please sign in to comment.