MCPcopy Create free account
hub / github.com/facebook/CacheLib / getPoolsOverLimit

Method getPoolsOverLimit

cachelib/allocator/memory/MemoryPoolManager.cpp:239–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239std::set<PoolId> MemoryPoolManager::getPoolsOverLimit() const {
240 std::set<PoolId> res;
241 std::shared_lock l(lock_);
242 for (const auto& kv : poolsByName_) {
243 const auto poolId = kv.second;
244 const auto& pool = getPoolById(poolId);
245 if (pool.overLimit()) {
246 res.insert(poolId);
247 }
248 }
249 return res;
250}
251
252// Helper routine to determine the target number of slabs to be advised in
253// each pool. This first assigns the target based on integer division and

Callers 2

TEST_FFunction · 0.45

Calls 2

overLimitMethod · 0.80
insertMethod · 0.45

Tested by 1

TEST_FFunction · 0.36