diff --git a/doc/configuration.txt b/doc/configuration.txt index 34b3f1667..ecdd87a45 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -1992,7 +1992,7 @@ cpu-policy systems, per thread-group. The number of thread-groups, if not set, will be set to 1. - - efficiency exactly like group-by-cluster below, except that CPU + - efficiency exactly like "group-by-ccx" below, except that CPU clusters composed of cores whose performance is more than 25% above that of the next less performant one are evicted. These are typically "big" or "performance" @@ -2098,7 +2098,7 @@ cpu-policy laptops and desktop machines used by developers and admins to validate setups. - - performance exactly like group-by-cluster above, except that CPU + - performance exactly like "group-by-ccx" above, except that CPU clusters composed of cores whose performance is less than 80% of those of the next more performant one are evicted. These are typically "little" or "efficient" @@ -2110,7 +2110,7 @@ cpu-policy auxiliary tools such as load generators and monitoring tools. - - resource this is like group-by-cluster above, except that only + - resource this is like "group-by-cluster" above, except that only the smallest and most efficient CPU cluster will be used, while all other ones will be ignored. This can be used to limit the resource usage to the strict minimum diff --git a/src/cpu_topo.c b/src/cpu_topo.c index a8019d061..45cff86ee 100644 --- a/src/cpu_topo.c +++ b/src/cpu_topo.c @@ -1353,8 +1353,10 @@ static int cpu_policy_performance(int policy, int tmin, int tmax, int gmin, int cpu_cluster_reorder_by_index(ha_cpu_clusters, cpu_topo_maxcpus); - /* and finish using the group-by-cluster strategy */ - return cpu_policy_group_by_cluster(policy, tmin, tmax, gmin, gmax, err); + /* and finish using the group-by-ccx strategy, which will split around + * L3 rather than just cluster types. + */ + return cpu_policy_group_by_ccx(policy, tmin, tmax, gmin, gmax, err); } /* the "efficiency" cpu-policy: @@ -1395,8 +1397,10 @@ static int cpu_policy_efficiency(int policy, int tmin, int tmax, int gmin, int g cpu_cluster_reorder_by_index(ha_cpu_clusters, cpu_topo_maxcpus); - /* and finish using the group-by-cluster strategy */ - return cpu_policy_group_by_cluster(policy, tmin, tmax, gmin, gmax, err); + /* and finish using the group-by-ccx strategy, which will split around + * L3 rather than just cluster types. + */ + return cpu_policy_group_by_ccx(policy, tmin, tmax, gmin, gmax, err); }