diff --git a/pandaserver/taskbuffer/db_proxy_mods/worker_module.py b/pandaserver/taskbuffer/db_proxy_mods/worker_module.py index 3e9da5798..29a71176c 100644 --- a/pandaserver/taskbuffer/db_proxy_mods/worker_module.py +++ b/pandaserver/taskbuffer/db_proxy_mods/worker_module.py @@ -1868,7 +1868,8 @@ def get_cpu_benchmarks_by_host(self, site: str, host_name: str) -> list[tuple[st "WHERE wn.site = :site " "AND wn.host_name = :host_name " "AND cb.cpu_type_normalized = wn.cpu_model_normalized " - "AND wn.threads_per_core = cb.smt_enabled + 1" + "AND wn.threads_per_core = cb.smt_enabled + 1 " + "AND wn.n_logical_cpus = cb.ncores " # protects against site misreporting SMT, e.g. due to VMs ) var_map = {"site": site, "host_name": host_name_clean}