CPU expert pool: default worker count from physical cores, host socket, quota and a cap; warning for a configured count above it; setup caps what it writes

This commit is contained in:
Niko1221 committed 2026-10-18 11:20:20 +02:00
1 parent 0e58a652fb
commit 5ece068f7e
9 files changed
+554 -4

No files matched your search

+3
View File
@@ -5691,6 +5691,9 @@ int main(int argc, char** argv) {
o.pool_tasks ? o.pool_tasks : 3 * (pool.workers() + (pool.host_works() ? 1 : 0)),
o.pool_tasks ? " (capped by rows)" : " (automatic)",
pool.workers() + (pool.host_works() ? 1 : 0));
if (pool.plan_limit()[0] != '\0') // the default count: what it was bounded by (a configured count is never changed)
std::fprintf(stderr, "strata generate: CPU pool: %d workers by default (%d physical cores, %d logical processors; bounded by %s)\n",
pool.workers(), pool.plan_cores(), pool.plan_logical(), pool.plan_limit());
if (pool.is_hybrid() && pool.affinity() != strata::kernels::cpu::PoolAffinity::All) {
const char* aff_str = pool.affinity() == strata::kernels::cpu::PoolAffinity::PCores ? "p-cores" :
pool.affinity() == strata::kernels::cpu::PoolAffinity::All ? "all" : "auto";