Skip to content

Commit

Permalink
[native] Change SSD Cache Executor to use CPUThreadPool
Browse files Browse the repository at this point in the history
  • Loading branch information
duxiao1212 authored and kewang1024 committed Dec 7, 2024
1 parent 6717776 commit b68af58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions presto-native-execution/presto_cpp/main/PrestoServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,7 @@ std::unique_ptr<velox::cache::SsdCache> PrestoServer::setupSsdCache() {

constexpr int32_t kNumSsdShards = 16;
cacheExecutor_ = std::make_unique<folly::CPUThreadPoolExecutor>(
kNumSsdShards,
std::make_shared<folly::NamedThreadFactory>("SsdCache"));
kNumSsdShards, std::make_shared<folly::NamedThreadFactory>("SsdCache"));
velox::cache::SsdCache::Config cacheConfig(
systemConfig->asyncCacheSsdPath(),
systemConfig->asyncCacheSsdGb() << 30,
Expand Down

0 comments on commit b68af58

Please sign in to comment.