Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp7111674ybf; Fri, 6 Mar 2020 10:34:41 -0800 (PST) X-Google-Smtp-Source: ADFU+vvnFmXH/TsUtLAixXicBnEzCj3kMlRvV1O+3tgeRuDAytkMHecEi/6BWYj/FMuv7ZrJAeL6 X-Received: by 2002:a9d:7745:: with SMTP id t5mr3860232otl.282.1583519681544; Fri, 06 Mar 2020 10:34:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583519681; cv=none; d=google.com; s=arc-20160816; b=U89xmQ230mzT99GUs9z/gSl+YSruaQzUb9/14UjWuyPrUuSAffDn8oj/XdCBwE/djs Y9zpDn4Tjb8zBFl4OnakBPjomdYzcZIFqtazfePkUlACqfnyduudg1/lJ5zp9q0N13yl 9syQ5cWlSSd/aJBrrzQo37GuMVZo4IoxMhk9bRpMOVTk9q/eZgecXbbTeV4PO9gYtVEL XrzeX9gqKFtLAoat+8M+JR0Vm3wa548khZLLe6kWKZ2wwCB5CnU2bky5WVb0ZjqFi11S 6GkgHbg3iEHjRDDhpJB+FEUxi36GggsnKVXP+gL2zI9s8BNaJ2baqoEzNOZzFvFQXjIn dA5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=51IIugSwsBjdfy5MvP+PidoijcdiR9fhmf60EnmBLsw=; b=HrM6avw46hBf1DIFEuNbx+61yLE+AYQXMuBriEVpB4CTMZTDjQwLT51c4/8Pe5wlqP jY7b9nXGxK+xSiWrpaNK3/0WMzsLpNmzru4SROEHg/DdOf7aWH7HE7NRuODGKgdl8U8w rK49b1WVIWJ7GEUiJRl4dWNtZK0RFqTxk4SOH/lwnWEhsxyLmfnqPKxc4qKHSzukGHbd ma035eI5CxEP0Yir2+baiWNkB3LWx43/puZ51qW0ZOiUpitog5bUAQXKzLxxyN5JG4R5 Mq1vaSRCJLtsLOucR4gpSutfniu4BdyQsxAqMDXUj5gNSpPZWzDPcWWsNGYLw1Pe1XzN mzOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="GoH/PZOh"; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f204si106873oia.43.2020.03.06.10.34.28; Fri, 06 Mar 2020 10:34:41 -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=@redhat.com header.s=mimecast20190719 header.b="GoH/PZOh"; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726676AbgCFSdy (ORCPT + 99 others); Fri, 6 Mar 2020 13:33:54 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:26510 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726167AbgCFSdy (ORCPT ); Fri, 6 Mar 2020 13:33:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583519632; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=51IIugSwsBjdfy5MvP+PidoijcdiR9fhmf60EnmBLsw=; b=GoH/PZOhEmBdL8Lne3/UVYZJXrWslzYDLeWKdpz1+4dPM/6lq5QEeuQIcGGgtp4ZmrZFjk sUQsrM07KnGjfMsjxnsx6IdBqhdpeq4UDmV9FUggFkAMt1362FBa4+qp29Voaf7TZzYAOo H3UYoM9WM9suc7q07YGKyX1VaryZQD4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-158-Z5xbXSL3NGmQd5kT5e7hnQ-1; Fri, 06 Mar 2020 13:33:48 -0500 X-MC-Unique: Z5xbXSL3NGmQd5kT5e7hnQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 96E5C18C8C00; Fri, 6 Mar 2020 18:33:44 +0000 (UTC) Received: from pauld.bos.csb (dhcp-17-51.bos.redhat.com [10.18.17.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9DF555C1B5; Fri, 6 Mar 2020 18:33:42 +0000 (UTC) Date: Fri, 6 Mar 2020 13:33:40 -0500 From: Phil Auld To: Tim Chen Cc: Aaron Lu , Aubrey Li , Vineeth Remanan Pillai , Julien Desfossez , Nishanth Aravamudan , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Dario Faggioli , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Kees Cook , Greg Kerr , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Subject: Re: [RFC PATCH v4 00/19] Core scheduling v4 Message-ID: <20200306183340.GC23145@pauld.bos.csb> References: <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> <20200306024116.GA16400@ziqianlu-desktop.localdomain> <98719a4e-f620-dc8c-f29f-fd63c43e1597@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <98719a4e-f620-dc8c-f29f-fd63c43e1597@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 06, 2020 at 10:06:16AM -0800 Tim Chen wrote: > On 3/5/20 6:41 PM, Aaron Lu wrote: > > >>> 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? > > > > Yes I would like to get us on the same page of the expected behaviour > > before jumping to the implementation details. As for how to achieve > > that: I'm thinking about to make core wide load balanced and then high > > weight task shall spread on different cores. This isn't just about load > > balance, the initial task placement will also need to be considered of > > course if the high weight task only runs a small period. > > > > I am wondering why this is not happening: > > When the low weight task group has exceeded its cfs allocation during a cfs period, the task group > should be throttled. In that case, the CPU cores that the low > weight task group occupies will become idle, and allow load balance from the > overloaded CPUs for the high weight task group to migrate over. > cpu.shares is not quota. I think it will only get throttled if it has and exceeds quota. Shares are supposed to be used to help weight contention without providing a hard limit. Cheers, Phil > Tim > --