Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp253589pxa; Thu, 27 Aug 2020 00:59:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSNNbv3tX52+v4ez5vPNOSFdyts+G/Qnz/MCFEM3ppfaalXE+GvZd+lARol/vIMr/TXWO2 X-Received: by 2002:a17:906:d182:: with SMTP id c2mr1909096ejz.378.1598515186341; Thu, 27 Aug 2020 00:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598515186; cv=none; d=google.com; s=arc-20160816; b=0poImJIIC70Ex21XADuBqlR/Wnhel6Z2EgnTCZhmVkBxGpGSZCbnMib8eKS5VXqfBD XXDISHQGjPaV/1yA5oXT4QEzcq/up+yiZyWTPHSQ60AFTZzkITD9Lbu5zuJe3TQ+7CKz FNta9MLJXmGLHBn/R2y72QKAkARVkpn0pTkuRyVNUZ1W3L7H7aRYtl3zu1ExRTngYzkr T/2oXemCcFHffmRoKceu2Hr07AL9Ld8w1/Ww5+CNx617N6pr1WcOk1g+vSAYi3Q3YE3g jvwPdIvo//2v1969LIvs0N1KqRIKRl7cGFsTRVLYcnY8Gprq311rn9YdsGsCKJ8JsaLk A0vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=/VwYgaI1w5KIG9TIKMB+coCvWg7uRAM5MhyfKNZYobg=; b=wITJsQXnsuE6Q4ZdjCdX8ysMvGmHhLK5MF1qM0Lr1CAWSXpiOTSFOAucSPxcdW5qqr POmGkiEvejvMOzhNN+18qE0wDk1I7rvl3bMmRljDYUSeY/L6pgpHiHaLFq/CmndKjJ/d r9XMENuxV8VFu4sX6N5aqcdn/+NcrYoEwnuKfrCp7XBUTprISGpGdm2WHw3OyKf7nhvF e4ICRnqWN/enS7QtBMYKJV1v/FA0d2BeH7JrP1AWbmiWj6MMhCq6zTzfHHe7d9M7PE8B RNlLsEQNSmmLAtCtDUAbG/LEmaL0U0hdTOdi/M7H38MWoost1+v+sKHUA6YtAA0WRUuL 4x0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=oYE7POQD; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=KVHrmND1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si984542ejl.476.2020.08.27.00.59.23; Thu, 27 Aug 2020 00:59:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=oYE7POQD; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=KVHrmND1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728548AbgH0Hzg (ORCPT + 99 others); Thu, 27 Aug 2020 03:55:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728473AbgH0Hyf (ORCPT ); Thu, 27 Aug 2020 03:54:35 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20B1FC061235; Thu, 27 Aug 2020 00:54:35 -0700 (PDT) Date: Thu, 27 Aug 2020 07:54:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1598514873; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/VwYgaI1w5KIG9TIKMB+coCvWg7uRAM5MhyfKNZYobg=; b=oYE7POQD8TXKXyayktnlYP7mPHjrO+OAyUmZT2NpByB5Zs2oqmL21ZmxDlEXlkdmZLnn+Z IkPVSXzLkyfqf8Hubs05FKGDwENaDInOrklIS+tMEY9ypxi0r9BhzxlQGOaH7KGx9uFLwx wSx/8DKa6lx9ehTfdXAyyyujwIFJlackpzqVpq9NzDCD+yFdAGfS3cfx3BLqUqIrp7ZaQt DHAO+vxs8hvaRRFrHFv/1BA0taGfSrRQnTbPT/PQgDdn2IXxmx4dPGOixkKArgJUoq0yWX Gp/5TUHg4LWkvx2nT7FUXF46r3qmepWO52qB+dGk08s1R/IdUC2Lak9+ztxkQw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1598514873; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/VwYgaI1w5KIG9TIKMB+coCvWg7uRAM5MhyfKNZYobg=; b=KVHrmND1r9ZvEHgmqVv7rJb7kSc11xYrcsBv59Nj3lrOvnu6vc6JnwxEDVxUkn1ejn640F j5auGE64UCMRmkAA== From: "tip-bot2 for Josh Don" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/fair: Ignore cache hotness for SMT migration Cc: Josh Don , "Peter Zijlstra (Intel)" , x86 , LKML In-Reply-To: <20200804193413.510651-1-joshdon@google.com> References: <20200804193413.510651-1-joshdon@google.com> MIME-Version: 1.0 Message-ID: <159851487304.20229.3769539649490715619.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: ec73240b1627cddfd7cef018c7fa1c32e64a721e Gitweb: https://git.kernel.org/tip/ec73240b1627cddfd7cef018c7fa1c32e64a721e Author: Josh Don AuthorDate: Tue, 04 Aug 2020 12:34:13 -07:00 Committer: Peter Zijlstra CommitterDate: Wed, 26 Aug 2020 12:41:57 +02:00 sched/fair: Ignore cache hotness for SMT migration SMT siblings share caches, so cache hotness should be irrelevant for cross-sibling migration. Signed-off-by: Josh Don Proposed-by: Venkatesh Pallipadi Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20200804193413.510651-1-joshdon@google.com --- kernel/sched/fair.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 1a68a05..abdb54e 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -7402,6 +7402,10 @@ static int task_hot(struct task_struct *p, struct lb_env *env) if (unlikely(task_has_idle_policy(p))) return 0; + /* SMT siblings share cache */ + if (env->sd->flags & SD_SHARE_CPUCAPACITY) + return 0; + /* * Buddy candidates are cache hot: */