MCPcopy Create free account
hub / github.com/Niko1221/Strata / pool_chunks

Function pool_chunks

engine/src/core/layer.cpp:645–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643std::vector<std::unique_ptr<ElasticPool>> g_pools;
644
645int64_t pool_chunks(const ElasticPool& p, size_t a, int64_t slots) {
646 const uint64_t G = strata::core::vmm_granularity();
647 return (int64_t) (((uint64_t) slots * p.per_slot[a] + G - 1) / G);
648}
649int64_t pool_slots(const ElasticPool& p, int64_t cells) {
650 return std::min<int64_t>(p.n_slots, std::max<int64_t>((cells + p.page_size - 1) / p.page_size, 1));
651}

Callers 3

pool_growFunction · 0.70
qsa_kv_elastic_needFunction · 0.70
qsa_kv_elastic_shrinkFunction · 0.70

Calls 1

vmm_granularityFunction · 0.70

Tested by

no test coverage detected