Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7119481ybi; Thu, 13 Jun 2019 09:53:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHviPIglvveF0supDg5WMOFowV4hRHM/p5zsVz3sHm/siTMZBaIpX2tPw9qpCiD5tK1HAw X-Received: by 2002:a17:902:7591:: with SMTP id j17mr89427576pll.200.1560444839255; Thu, 13 Jun 2019 09:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560444839; cv=none; d=google.com; s=arc-20160816; b=Jw/E/ruodNP6980j08vCXJt5xq5y+j2+QZavPeSV6sQPmlakVdLKAByrF4zDbOVboQ cv4hadNw9jIBX5EyjxFg8ROREG9Hjq8QUxEeeykaHg00Xygk1PQAPd2n66o8VS50o3Pi a6vzzKQXpidcr+frzKKOjHuMR9c1d1NqiuhZtNkdxQEbA8qVK8QEnYejl68uhudEOXsV WVGOajvtnGQzyzagfEMvFY2QemE7Il4zMSbva+kY7LAL7jlrEQjExcaloVx6eGdt5GcP q2mtp94GPCWRjVGqevfzQiOMZjGHNzdc1TpM9psFFZxssVAbWqGjtO/dC/fZh8Y9cbfY aH0A== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LMV8qmRyYz+ACjw7vTpB3a3X9PpgtIV1RY8/GE0Ksi8=; b=t5iCeUXgFCXAB92MEw+DJSrbGFx8/oNuVfZegIZs6dapKud1LayL8jpVtJKZCWwCrt /jzPPs0EDL+iJHPmdYpB97cs9PWHYDrUd3Nofquj6jtlIGKN0EQqCBsadqcQMPYpgPK/ sLQ7QENo5lTuo+n9aKvlzG+e5gv1FezlAdaRKtzhD+HMnSEIgYjIJM2ua/NVSD6CQ85J cG6gZwlpKdXY6pSDJ+gvHYT36jLr4AkXMOkhxwC5DnSGREp8L2qfErDJVY+AFiIztGLk 70iVXvbBnV0h3sGCD+BYHryJYz039IkB+JIoXPCXAckEp/OANhBfOFrAcjRYMw4u5S2+ lJfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digitalocean.com header.s=google header.b=PlAlSnaO; 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 y11si100744pll.213.2019.06.13.09.53.44; Thu, 13 Jun 2019 09:53:59 -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=PlAlSnaO; 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 S1730398AbfFMQwS (ORCPT + 99 others); Thu, 13 Jun 2019 12:52:18 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:32991 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730125AbfFMDW4 (ORCPT ); Wed, 12 Jun 2019 23:22:56 -0400 Received: by mail-qt1-f194.google.com with SMTP id x2so20056581qtr.0 for ; Wed, 12 Jun 2019 20:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digitalocean.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=LMV8qmRyYz+ACjw7vTpB3a3X9PpgtIV1RY8/GE0Ksi8=; b=PlAlSnaOIx0F1iguX+ksulHPvQfnoA0CZXjUwI7XykDfXBWZ/5Amzv7U06xkkG8gi+ a25nxcJm27v1g4+k/29+6WjsC1A8RNJBXl3x61IxxPFl7bghmocNeNLpTsQDAdmkwQMF Etv46nTQ3rmCcAw0p/wBiNsdIKsFRaqI6wYvs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=LMV8qmRyYz+ACjw7vTpB3a3X9PpgtIV1RY8/GE0Ksi8=; b=elWP43nIoOxhu+GtSpKwwrK1IsPW3txnJPReD+quJuhpkpzGb6JATwMZEG3u0ACkng c0o9POq0qw+y68RiVZxC75inZzi5qr+zgOWOzfIx/S0JYUeF5787J2JerN2x2XuFSpwT 547FqUyJhNSud/rCJboEKSLpy6Y142yYQ0IQZT1r1kOyAcslb38kxlSIeHQfE8S4R9U+ +S+G6stNldGAa/EjiYwWus3cSZ/6D8WdceLic2yDzKm8e7PhMh9dI/nPrw3wXZcVTlRq YInGiKPV2sW2zIuR7O7+PNjcZV1z0/EjL+Ac04IdeSuxCWIhcB1q4VCFmMf1hQC4/rAp VuMA== X-Gm-Message-State: APjAAAUxounOECxkcGpPKZBwuUNYS3+MPkVFvgX/3PysZbtpS8ZtqUDz eHaJvEvk1CuXrig3szQIzu1AYQ== X-Received: by 2002:ac8:26dc:: with SMTP id 28mr71243705qtp.88.1560396175685; Wed, 12 Jun 2019 20:22:55 -0700 (PDT) Received: from sinkpad (192-222-189-155.qc.cable.ebox.net. [192.222.189.155]) by smtp.gmail.com with ESMTPSA id r5sm871085qkc.42.2019.06.12.20.22.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jun 2019 20:22:54 -0700 (PDT) Date: Wed, 12 Jun 2019 23:22:46 -0400 From: Julien Desfossez To: Subhra Mazumdar Cc: Aaron Lu , Aubrey Li , Vineeth Remanan Pillai , Nishanth Aravamudan , Peter Zijlstra , Tim Chen , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Kees Cook , Greg Kerr , Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Subject: Re: [RFC PATCH v3 00/16] Core scheduling v3 Message-ID: <20190613032246.GA17752@sinkpad> References: <20190531210816.GA24027@sinkpad> <20190606152637.GA5703@sinkpad> <20190612163345.GB26997@sinkpad> <635c01b0-d8f3-561b-5396-10c75ed03712@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <635c01b0-d8f3-561b-5396-10c75ed03712@oracle.com> X-Mailer: Mutt 1.5.24 (2015-08-30) User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12-Jun-2019 05:03:08 PM, Subhra Mazumdar wrote: > > On 6/12/19 9:33 AM, Julien Desfossez wrote: > >After reading more traces and trying to understand why only untagged > >tasks are starving when there are cpu-intensive tasks running on the > >same set of CPUs, we noticed a difference in behavior in ‘pick_task’. In > >the case where ‘core_cookie’ is 0, we are supposed to only prefer the > >tagged task if it’s priority is higher, but when the priorities are > >equal we prefer it as well which causes the starving. ‘pick_task’ is > >biased toward selecting its first parameter in case of equality which in > >this case was the ‘class_pick’ instead of ‘max’. Reversing the order of > >the parameter solves this issue and matches the expected behavior. > > > >So we can get rid of this vruntime_boost concept. > > > >We have tested the fix below and it seems to work well with > >tagged/untagged tasks. > > > My 2 DB instance runs with this patch are better with CORESCHED_STALL_FIX > than NO_CORESCHED_STALL_FIX in terms of performance, std deviation and > idleness. May be enable it by default? Yes if the fix is approved, we will just remove the option and it will always be enabled. Thanks, Julien