Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp23010ybm; Mon, 20 May 2019 11:09:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMcnf80M/gxZzstJtgqi9rqE5mTZXktHWYqcvRhA0qIIAq0xGUZnNfJZbafCOY+FToiP7R X-Received: by 2002:a63:36c6:: with SMTP id d189mr61851285pga.8.1558375752572; Mon, 20 May 2019 11:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558375752; cv=none; d=google.com; s=arc-20160816; b=XTUqLTv3dezdzqRvWQmPGo5LY/1eKcwFZ1lH4arRWQGQA7oxnBN4hMeHwzSpc17AyW lVMqcBOxVN6YXcdNiT7szKqm99SdmoNCi5mKBmBnWarHzn+9Yz5raW+iLec07wUL4ADs JuxCdcmHG+pcBBhb0ZqksYUmk0e9TbjzlYGMdFoj3Ut7uunLZk6+bpXuDp1LgeAYKreh 1a0x776StlfT9ed8jFgn9IElSok2SiyS/8ExP4sKPTPAmJWRkz4t1I4Vsxyil9bBgPZT q+1u9JUlrN6N/bwrXqLeSpVOXkOH3NWmKOat61yh3Oo/hnHOYR8JB9HtTSDzxKoXgF9z 58SA== 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=3UHz2TGHKpk84+X3oUaIARldCLxF/39kE2NgJCOaNxI=; b=GZohn1tqaIgE0qKsGVjPjhamDXHsx4mCsoDN9363NA0Ce97lFciCrzg6JbXfxyHHvg k69LDu5neNM0/ddOj2AfDcqJzWj1D7ir5aGpzJaPcLOCK9XBTIHR/HfQYPVcayRpGHFe N/NJj4HFtwG8L5PY3LMhkwmE1HWx6Hz4ZMVd2ESFwEJqBmIi63+328IdT4QKecAD5l7E ptxvPUOWddkhsXf+/SrN+DRJazBJdsR/GquqR/85lj/0OWQZqBrvUf0WzsI746W8JcO6 P/7HTKQ0g2DrXrdn7GfaHFItJd/vKTrOUwoH+KMSgrWds//jN8Ve+s7CgH4pNqcQryXf aQBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digitalocean.com header.s=google header.b=VMqbRHpx; 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=REJECT sp=REJECT dis=NONE) header.from=digitalocean.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t24si3966727pgn.470.2019.05.20.11.08.57; Mon, 20 May 2019 11:09:12 -0700 (PDT) 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=@digitalocean.com header.s=google header.b=VMqbRHpx; 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=REJECT sp=REJECT dis=NONE) header.from=digitalocean.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732835AbfETOEN (ORCPT + 99 others); Mon, 20 May 2019 10:04:13 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:40932 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730588AbfETOEM (ORCPT ); Mon, 20 May 2019 10:04:12 -0400 Received: by mail-ot1-f66.google.com with SMTP id u11so13046484otq.7 for ; Mon, 20 May 2019 07:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digitalocean.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3UHz2TGHKpk84+X3oUaIARldCLxF/39kE2NgJCOaNxI=; b=VMqbRHpx49BNEYXrCjZOdO8zH2orgsVLn3xb+IAJcAx5Yz7tnL7IsEC5ZVjFwOIm3I lyqJ0DZ6EPMpzObwrOFB6zXvungD3rxlSF/27MZ/7GV0dybpD1YS0rW58A2Me+CI34cM 4lnnQwerU5gdQO/s+GRu/loFL1aMjbvzt2KBg= 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=3UHz2TGHKpk84+X3oUaIARldCLxF/39kE2NgJCOaNxI=; b=CTa+99MAFycV0jDTVsLsyRxTTRM/k+An0z+alSMu62W9JCwh+Ee0PuNDEEYoCiIuki i14TFMzvOPiFfIH9UmdBwHcTCj/PwmWxa9YxtTHwjOHy1P3HpZ/TmoXZbhK4ZQebaKMN TdMn2EoZ1Js+sJizI0KCwkYZdnjyUIeC3dDY65mwTKNImQgFlb/R+gR9WUB8heZt1Zrw H/+UKbfOOzonuvyVrc0M6l3qWIEs8Ep2cQNLpXec1DDG0tR0SGPtx1N3nN/de3Z9FOT5 9m+kigS8jIYNDlFTJ38+UyKEfiBXhFywGQb6ut2YWOHBCfe7l9fuPr7DEZnmK0EK5AIW QfTQ== X-Gm-Message-State: APjAAAUNTepgxPm5oHBw4wjZEAy4D+7o/ozJhNMKDNQNZCi4NfmDHAFk bHHJufwLhiQ6cCGDZNq0BQElQzRl4xL+qgQSylC1Ow== X-Received: by 2002:a9d:30d6:: with SMTP id r22mr45025112otg.33.1558361051850; Mon, 20 May 2019 07:04:11 -0700 (PDT) MIME-Version: 1.0 References: <20190520130454.GA677@pauld.bos.csb> In-Reply-To: <20190520130454.GA677@pauld.bos.csb> From: Vineeth Pillai Date: Mon, 20 May 2019 10:04:01 -0400 Message-ID: Subject: Re: [RFC PATCH v2 13/17] sched: Add core wide task selection and scheduling. To: Phil Auld Cc: Aubrey Li , Nishanth Aravamudan , Julien Desfossez , Peter Zijlstra , Tim Chen , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Subhra Mazumdar , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Kees Cook , Greg Kerr , Aaron Lu , 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 > > The following patch improved my test cases. > > Welcome any comments. > > > > This is certainly better than violating the point of the core scheduler :) > > If I'm understanding this right what will happen in this case is instead > of using the idle process selected by the sibling we do the core scheduling > again. This may start with a newidle_balance which might bring over something > to run that matches what we want to put on the sibling. If that works then I > can see this helping. > > But I'd be a little concerned that we could end up thrashing. Once we do core > scheduling again here we'd force the sibling to resched and if we got a different > result which "helped" him pick idle we'd go around again. > > I think inherent in the concept of core scheduling (barring a perfectly aligned set > of jobs) is some extra idle time on siblings. > I was also thinking along the same lines. This change basically always tries to avoid idle and there by constantly interrupting the sibling. While this change might benefit a very small subset of workloads, it might introduce thrashing more often. One other reason you might be seeing performance improvement is because of the bugs that caused both siblings to go idle even though there are runnable and compatible threads in the queue. Most of the issues are fixed based on all the feedback received in v2. We have a github repo with the pre v3 changes here: https://github.com/digitalocean/linux-coresched/tree/coresched Please try this and see how it compares with the vanilla v2. I think its time for a v3 now and we shall be posting it soon after some more testing and benchmarking. Thanks,