Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5711762ybf; Thu, 5 Mar 2020 05:46:10 -0800 (PST) X-Google-Smtp-Source: ADFU+vvWtvHtcVtszkR52xxozbZ3w0cWphMTfkFh5S8ijX67XH9voeGyxwkVYObhbRjXBGU4e0J9 X-Received: by 2002:aca:d457:: with SMTP id l84mr3296768oig.5.1583415970782; Thu, 05 Mar 2020 05:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583415970; cv=none; d=google.com; s=arc-20160816; b=VyIsr9pVcMcK1r80ArI6QAVF6ZISwnKJYqW6RNzXeh9ZzsXSEqinQee8hZtIqn8E+L HeIUtU6wl92lr+WLXxZ9E15O0XBYxPWDwNrnPKaGQpxx5TOgkc54s3d37Q1nNOY6CiAb Qc/ADJ+pWqJrbKubaVSNNfkYX9BbhzY0yY/EGbGuKxZQNCLCU2TrPlYoeOoRtPBztwwb YhZO9E7Qo6ZZiIbQdKoRzBdRhClLhKJI1xMP54PE0Z+WGXY9uE+gb1Q+Ak/dOKxRKD8Q J+BqOmqA0YnaBsW/rr9xACDmZKs2dE97fODanWZn16H/KGUsqCeUgc4xbDufunePr+8N HTIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mfRXCkijjGukN/t07iDLcTZPJvbGA5z5Fo+H7p/ksAc=; b=temPiNvOpWec68ttvlfAdDZHWaBZaZbDOhsk/y+JmTHfKmKfU9M+W6x6ASnwx1WJvP ANL2pPsu70t+abEchEr4ufCDJQEjTQDsDvvofQIpYPP7an8XuRfGlRG77VLrn+/taLvZ Sox7lOpNa7ockMW1Tr6sNT32n4IgvIzYSGiaeNrXZYkqp5Fz7BAeDhU9O1+LCYcRYzyU PQh+/xZQM0qcJXaxm2ja4zzDubVz8bLNGVGa2sSjHo+YpdBR9WbjFvNyOCylnC9B/Rof eKfZ9AojJQqZWU/mg2x/4SsQd6JDhODvq91rz8DIf3erID+pWBmpqeX0Y/QseQSTEa/A RH4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uxEPrEvk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l11si3691057oth.235.2020.03.05.05.45.57; Thu, 05 Mar 2020 05:46:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uxEPrEvk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726020AbgCENp3 (ORCPT + 99 others); Thu, 5 Mar 2020 08:45:29 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:45561 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbgCENp3 (ORCPT ); Thu, 5 Mar 2020 08:45:29 -0500 Received: by mail-lj1-f196.google.com with SMTP id e18so6118711ljn.12 for ; Thu, 05 Mar 2020 05:45:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mfRXCkijjGukN/t07iDLcTZPJvbGA5z5Fo+H7p/ksAc=; b=uxEPrEvkE9IKadewACdH/6OJXeQ+idS/CjBdkFtEQIy58nLJkZ/tvR9ZGKzrUcjHht EjoWw2/Lxg5wiE6V3xMln8zVpCMW4CyT+t/ha175mEseW1aQeXepH6lpMoYYA4nUoDvr oR63e3aqiwaPIM4vj0tbPHLU6LgxLKHE5WF2xv9q6P6kTXCurB7DRn+NggdficjcHOWL 0JCegqo30T6C93TDb9rHGtVqurhRfXlVffztDAJjAB/nA3Tdne2Va+POOU/11iEBrNzX mFOujBXOW113jSUKvjUG/VOSwlJpXsgzjVKxdvM3PNUCR0jlW69UXG4zqv8UPHekagRG 6Gvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mfRXCkijjGukN/t07iDLcTZPJvbGA5z5Fo+H7p/ksAc=; b=hKwuPvV7LhwdQFC1RMrhpThpQBn9OhpzKwhPEIE1UEQMyTlxnsi5TofV4RerQGJyZi HI2WYzsP5kWL4WafaRNP74qxx6B584owWCCbVukgc/W0ZOGuhttAqpJYmPSTTUCMoSuO b3tTBYmLX1B/Ficr3Q+b3aaoGPeX750+lXnKmW5dCPjqeiAT++sHOn+BJemZ4Ve/TWDT OqRWryN2ri9oBGM4ZbemoEK/T5hEK3wHZINMQaKNFXyw/Jq5IvRTWe52xbekh8A+j3PK O7nNZ4RYQyf9IrXMTCgGn8jz23rk0oNpc9cG8TpTJx6ris/jgwRDUdA/VmPVFHXZ3UQt GhSg== X-Gm-Message-State: ANhLgQ1p8V9HfkEkcPLIO8Y+ZhGtE+ZwFA94qZe5XPEZqc7Jp8GhA0WP 3ZirbjKuP3SKKZ19cN8YDCRxjjbX1BDfeeIelMQ= X-Received: by 2002:a2e:8112:: with SMTP id d18mr1366333ljg.137.1583415927033; Thu, 05 Mar 2020 05:45:27 -0800 (PST) MIME-Version: 1.0 References: <3c3c56c1-b8dc-652c-535e-74f6dcf45560@linux.intel.com> <20200212230705.GA25315@sinkpad> <29d43466-1e18-6b42-d4d0-20ccde20ff07@linux.intel.com> <20200225034438.GA617271@ziqianlu-desktop.localdomain> <20200227020432.GA628749@ziqianlu-desktop.localdomain> <20200227141032.GA30178@pauld.bos.csb> <20200228025405.GA634650@ziqianlu-desktop.localdomain> In-Reply-To: <20200228025405.GA634650@ziqianlu-desktop.localdomain> From: Aubrey Li Date: Thu, 5 Mar 2020 21:45:15 +0800 Message-ID: Subject: Re: [RFC PATCH v4 00/19] Core scheduling v4 To: Aaron Lu Cc: Phil Auld , Vineeth Remanan Pillai , Tim Chen , Julien Desfossez , Nishanth Aravamudan , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Dario Faggioli , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Kees Cook , Greg Kerr , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 28, 2020 at 10:54 AM Aaron Lu wrote: > > When the core wide weight is somewhat balanced, yes I definitely agree. > But when core wide weight mismatch a lot, I'm not so sure since if these > high weight task is spread among cores, with the feature of core > scheduling, these high weight tasks can get better performance. It depends. Say TaskA(cookie 1) and TaskB(cookie1) has high weight, TaskC(cookie 2) and Task D(cookie 2) has low weight. And we have two cores 4 CPU. If we dispatch - TaskA and TaskB on Core0, - TaskC and TaskD on Core1, with coresched enabled, all 4 tasks can run all the time. But if we dispatch - TaskA on Core0.CPU0, TaskB on Core1.CPU2, - TaskC on Core0.CPU1, TaskB on Core1.CPU3, with coresched enabled, when TaskC is running, TaskA will be forced off CPU and replaced with a forced idle thread. Things get worse if TaskA and TaskB share some data and can get benefit from the core level cache. > So this appeared to me like a question of: is it desirable to protect/enhance > high weight task performance in the presence of core scheduling? This sounds to me a policy VS mechanism question. Do you have any idea how to spread high weight task among the cores with coresched enabled? Thanks, -Aubrey