Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp633588ybi; Wed, 3 Jul 2019 02:14:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVppmUgd650m4w+BDZ6rnYQect60IL+GjmAy0AN8jIEZy27JUfozwVrN/6ZgE9P0PzL0Aa X-Received: by 2002:a63:f953:: with SMTP id q19mr35875660pgk.367.1562145256537; Wed, 03 Jul 2019 02:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562145256; cv=none; d=google.com; s=arc-20160816; b=MdCWwjPneZArKjeAsWTcHNycgiLU6iVCRhJFQIaqoRHb11xRh8ySHXFbjCOk2CgMx2 x5vW7flazAhBtgT+Z9z3I+lCpUX5GDizGR8/QuJkgkY3VcG36hqa87Khw2V95/UpLxqu sO8PAb2c/ZqL6duQLpFiAm1msMzF9U6YrL1jDBIh+8GBAmjGS0Gv7DbhQaocLCg1NYOB CgBBZ81gKZBNBgwCAmpiBCnpGP0/JbIo2/eDNf4HXSyijJU4iDIulb1wK/6InLJPgPCe jFVJgy/7nT7/nkJuF0CPUlH0DojWRQehcRBQOUCAJSFSfYx6rWilNdJT6zn0iwi5H5+A TxaQ== 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=Qoaq7jYEK9Y8KU+pev6G7OqMMzQ0hfC8Vclv9dGTDQ8=; b=IbppuGq5hokjLy9czSgQQxSXbj6Afk6e8sJ6W4dOHm/MZ6EMtvDBg7TZS96uevowiR 2zfnfTHAAqvxJWSy5smcgOIi2FZ4JZLuthEVkY+FbwMokHJq+jtzS/AS8dmQ8PDwAZxl AovBj7aFxrUi85z8UIP4OZLY3gowEWAgzFpR4GGKF/CiRRcx6MilyOf3iuktHg07aeig fgeVKuS4uIu4HrW42kxjCwyjiGbTsFDFn0I36jlH4QQdOCeNPmtlarB63IoM4WHdrHcK cdfjfzv8BhDbt9A1WZn9N118m5gZJGdvLGJrhZ1YhFSqyEXnKoyAjIN4QeAQxqqBnZaK LCXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BcbpZBvd; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si1859425pfa.223.2019.07.03.02.14.01; Wed, 03 Jul 2019 02:14:16 -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=@linaro.org header.s=google header.b=BcbpZBvd; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727186AbfGCJNg (ORCPT + 99 others); Wed, 3 Jul 2019 05:13:36 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:44910 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725796AbfGCJNf (ORCPT ); Wed, 3 Jul 2019 05:13:35 -0400 Received: by mail-pf1-f193.google.com with SMTP id t16so927501pfe.11 for ; Wed, 03 Jul 2019 02:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Qoaq7jYEK9Y8KU+pev6G7OqMMzQ0hfC8Vclv9dGTDQ8=; b=BcbpZBvdQV9VM97tdih7Nj70BFB4ybXqpDQOTw8WW74AR8dY9v86m17IoGXnZQ+Zsh 8Avb61Z0egDKTnBfA4vAtGFEPhpmNzNUOSC85xArM8GrFqN6RwABSbjF4qPBXb0/OCRn BgXqNO57YJzN4JwqTuC8bTMNH2H3hboyI5G/ZvDVFXHrpjxz9I4cWNEeEFmJQ+QIB4JE yVsUi0wKFBNwl95/8E4NNbq/MRJIQj2DdsD5pk1rGo33lS228FkHSdvEPHkSZ9OhgIXi K0oVwRjiDu4l/QrdJl107y5ZeLy9QZRFezCA6l/rgCzR15LaW9VfmHYtalKx4yi4o5wl OYtw== 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:in-reply-to:user-agent; bh=Qoaq7jYEK9Y8KU+pev6G7OqMMzQ0hfC8Vclv9dGTDQ8=; b=pwV+b1rNL71GksrawdgzNok6MCHa5d94sp8FIuPhojD0cqXL08NOHgQ8t8GlPBrSmG rc3DMMC0i2TEubKGYrZMlkUIawMMngYJMxA7DvbdOclMsX+qAZ06wM5+MrrVmqE35QtA 2h6l+14qjxJW9RaT87k0+UIUpV0o+I3u02ksd4PLcZtcdCJpy+fS9CqRBzw9A9ZRsMQt zS10KTWF9RfdHBksH5/0qwar991EPK0fG0qyuh6TcpmjEPdU6LbcfZJc4BcGvFF/F0zB yJ9MzTN1YpeHlE4tfb2uNCLYoVmlgp2RDWqpU0Y2Hva9cbp2XpkqMmmk1gY61TdtiD/f y49w== X-Gm-Message-State: APjAAAVoo630fdwr4SoCSeA5HX3e+6iVLBBRYmR7jYF2OxIjwZ/81vrV z+4oTJoRARmhlO4CLw05z1PiuYHXSCw= X-Received: by 2002:a17:90a:2190:: with SMTP id q16mr11139641pjc.23.1562145214989; Wed, 03 Jul 2019 02:13:34 -0700 (PDT) Received: from localhost ([122.172.21.205]) by smtp.gmail.com with ESMTPSA id y16sm3810478pff.89.2019.07.03.02.13.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jul 2019 02:13:33 -0700 (PDT) Date: Wed, 3 Jul 2019 14:43:31 +0530 From: Viresh Kumar To: Peter Zijlstra Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Vincent Guittot , tkjos@google.com, Daniel Lezcano , quentin.perret@linaro.org, chris.redpath@arm.com, steven.sistare@oracle.com, subhra.mazumdar@oracle.com, songliubraving@fb.com Subject: Re: [PATCH V3 0/2] sched/fair: Fallback to sched-idle CPU in absence of idle CPUs Message-ID: <20190703091331.gnoouol3hn77r65b@vireshk-i7> References: <20190701134343.GT3402@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190701134343.GT3402@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01-07-19, 15:43, Peter Zijlstra wrote: > On Wed, Jun 26, 2019 at 10:36:28AM +0530, Viresh Kumar wrote: > > Hi, > > > > We try to find an idle CPU to run the next task, but in case we don't > > find an idle CPU it is better to pick a CPU which will run the task the > > soonest, for performance reason. > > > > A CPU which isn't idle but has only SCHED_IDLE activity queued on it > > should be a good target based on this criteria as any normal fair task > > will most likely preempt the currently running SCHED_IDLE task > > immediately. In fact, choosing a SCHED_IDLE CPU over a fully idle one > > shall give better results as it should be able to run the task sooner > > than an idle CPU (which requires to be woken up from an idle state). > > > > This patchset updates both fast and slow paths with this optimization. > > So this basically does the trivial SCHED_IDLE<-* wakeup preemption test; Right. > one could consider doing the full wakeup preemption test instead. I am not sure what you meant by "full wakeup preemption test" :( > Now; the obvious argument against doing this is cost; esp. the cgroup > case is very expensive I suppose. But it might be a fun experiment to > try. > That said; I'm tempted to apply these patches.. Please do, who is stopping you :) -- viresh