Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5110611yba; Mon, 13 May 2019 05:38:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqylGmJe/0qGHNce42kuUQyDCwOzcO3asodKgnDnCFQGCuSRoLO2zEUIQTJs0+3oS5OYtpt1 X-Received: by 2002:a17:902:b492:: with SMTP id y18mr25387616plr.96.1557751119868; Mon, 13 May 2019 05:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557751119; cv=none; d=google.com; s=arc-20160816; b=eZhgv1W+XOgmSr7jqiWqBC2qNxzlzp6XlYKODJ5jMTrABUOcNyibKWRe/oS5hmhAqN NARHwjMFc1e0xv6qYDdjtlGQTib91Wnh7oefk5MlKqn9+r1fMR9nzcm4ZmhN085Zxt8A Q9WDYcLx7TImpVrjWeb2UZbDeM9rvjUe2AgVYyTQa8cM6UNUoS2BKPRTzJntzzcw28Bh 7IlNQfQzlsFawImd/XdLPnyyafyFiDkqIAnQvKOcGCewJDxhEcncOWLtJ6xy90exUi12 xyjzLmGwfmVf6S/1/8WdEBKakKh6bvwj64Svhk1bm9/EknxDCqXL3MXRIStwdevbb5gV 4C7Q== 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=0jKHovWkj7cxIrQ0X5J93JzH+HcvbEjnDPDSVCLfbu0=; b=zHccHrUjxV+9k5W9a9qt8t6TQKlCJVBBEuRLfc6iT/xMBff4vx0zA11FALsXpOvFsW tW47QW69z8lkA2Xw1U4RR2uN9ylgb703xSPAfLd1RJL/sBUNeGCuqN7nSZDh7AC2e3CT yqlLdhQRGl6Cq1K/35m0y5IhXHQDcMOw8Y0D8W9FcFLfxomluFeMypNd0ZS5Tl0cUI8g STojKCddZmA/dYC3KyYoxn2RDhp7rhkDVopnSmiBWR3Km7v3B7QGvGyl6CLgn/54Tn/b UDXpVS4Rcv2MnY2SUcSa2/XcpCkprwl/Qsk0FtbshjRvOH7dMmDWqdt4TQda4iWQMKG/ HMaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=A1fzvHen; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l10si17428759pls.49.2019.05.13.05.38.23; Mon, 13 May 2019 05:38:39 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=A1fzvHen; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728654AbfEMLf1 (ORCPT + 99 others); Mon, 13 May 2019 07:35:27 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:51734 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727903AbfEMLf1 (ORCPT ); Mon, 13 May 2019 07:35:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=0jKHovWkj7cxIrQ0X5J93JzH+HcvbEjnDPDSVCLfbu0=; b=A1fzvHenWBFJTS5Js0S8GC2ip 2ijSnUjcwuRiy+YDeghv0WkTfiiQ8yglpfr7Dxp94Oi9X2BFQ/lubsruO1ywjbdF8J2dtAJe51n6D BUHyEEtdJLb3/sGvv1RVC2zbtCtUzAspFX0dFZTzwaoHdUN9iBZ+mkBSSrs2RJCin2iKLLRcijHU8 ox3NqupE6nOmjFsA+ztnAu3XpE5i/jPmfjifXA242Q6oyxllO/RvcZ2Vlb1vNVj3BdjtRj8GyJn1v hNyTOmxQfewaVH0yBWll7rOmiuZYjZm9wNXdo9cqx7Bl+w+m6HWv95Til0hJA99rEUsoZOq8uUPxC B9fC2BYeQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQ9En-0003v1-2u; Mon, 13 May 2019 11:35:21 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 410592029F87D; Mon, 13 May 2019 13:35:18 +0200 (CEST) Date: Mon, 13 May 2019 13:35:18 +0200 From: Peter Zijlstra To: Viresh Kumar Cc: songliubraving@fb.com, Ingo Molnar , Vincent Guittot , tkjos@google.com, Daniel Lezcano , quentin.perret@linaro.org, chris.redpath@arm.com, Dietmar.Eggemann@arm.com, linux-kernel@vger.kernel.org, steven.sistare@oracle.com Subject: Re: [RFC V2 2/2] sched/fair: Fallback to sched-idle CPU if idle CPU isn't found Message-ID: <20190513113518.GQ2623@hirez.programming.kicks-ass.net> References: <59b37c56b8fcb834f7d3234e776eaeff74ad117f.1556182965.git.viresh.kumar@linaro.org> <20190510072125.GG2623@hirez.programming.kicks-ass.net> <20190513093418.altqhlhu4zsu75t4@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190513093418.altqhlhu4zsu75t4@vireshk-i7> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 13, 2019 at 03:04:18PM +0530, Viresh Kumar wrote: > On 10-05-19, 09:21, Peter Zijlstra wrote: > > I don't hate his per se; but the whole select_idle_sibling() thing is > > something that needs looking at. > > > > There was the task stealing thing from Steve that looked interesting and > > that would render your apporach unfeasible. > > I am surely missing something as I don't see how that patchset will > make this patchset perform badly, than what it already does. Nah; I just misremembered. I know Oracle has a patch set poking at select_idle_siblings() _somewhere_ (as do I), and I just found the wrong one. Basically everybody is complaining select_idle_sibling() is too expensive for checking the entire LLC domain, except for FB (and thus likely some other workloads too) that depend on it to kill their tail latency. But I suppose we could still do this, even if we scan only a subset of the LLC, just keep track of the last !idle CPU running only SCHED_IDLE tasks and pick that if you do not (in your limited scan) find a better candidate.