On 09/23/2014 09:38 PM, Vincent Guittot wrote:
add the SD_PREFER_SIBLING flag for SMT level in order to ensure that the scheduler will put at least 1 task per core.
Signed-off-by: Vincent Guittot vincent.guittot@linaro.org
kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index c7c8ac4..f72663e 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6134,6 +6134,7 @@ sd_init(struct sched_domain_topology_level *tl, int cpu) */
if (sd->flags & SD_SHARE_CPUCAPACITY) {
sd->imbalance_pct = 110; sd->smt_gain = 1178; /* ~15% */sd->flags |= SD_PREFER_SIBLING;
Reviewed-by: Preeti U. Murthy preeti@linux.vnet.ibm.com