Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp840489ybz; Wed, 22 Apr 2020 08:55:00 -0700 (PDT) X-Google-Smtp-Source: APiQypL0TJlN0eiqebiGfIN7wwGODpBb8GW6nX37JhtVH0UGgcWe4FLjVuP8nD2tIkhhIFX6mW/i X-Received: by 2002:a17:907:20b5:: with SMTP id pw21mr25645915ejb.227.1587570900604; Wed, 22 Apr 2020 08:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587570900; cv=none; d=google.com; s=arc-20160816; b=ytas0aSzZytR10cItqjjTiqB4eQLDUyCuCf0D4Y5EXcdAtBwyaGYQJesWw0hCregQm LjA7zcu5lpiqLknINBYHypGoaM4qusr1UaCvke0LkXQJDGFHAoSWXyI2jWq5PNezthiw TMypBl5gh5TB3mhLdHXwpGR88Q6QbHvjO/ZmyPEWBidbM0IwCozu48zPzhlr2r0AC/F1 cHBcI+RsgEOr1x6XJ3dxz1Wb47HvbBdCmSYJuhu+Bv8Sk36YN+V5nV/597udj1ydqQBc JOy9NOwTy8xHQEUH2IAwILxdolvnovK3eOkosaKOqVwuYBk88G6hNp/8Z2tTjoBO1Tig lNOw== 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=0udPE9EnePSlFarVuldYTggNRyQNC5Zk7MCG7l+KWZc=; b=ul9NUDkbFj4Hn3K7ESXTBvNduEb0xxUA+Uk/rPm/E2DtBeM3rx1YUV2/TYYUZIXELl C1U09xGk6YJy5jiT1bWXrtOi+i1abMlyzWuQmftYmfukoWJHzO2gr7GBF+B4AsNDLVi5 rbZ5BfTWUCKCA1VJ1gelq8eIeKtx/ki3BigvSOQ+UxL1w0u++aINWW1uKzOWF5pCNZG5 t3UFhJ6YlXoYmlk5b52sLO/uezD4DmYEXvBLvKu8hc0pRglFlIgAW+b0uACwBf2FZ9MP 6YPYG7HyfL3LBLmRL41PSMcaVWyrQQW2D0PTnUnIC8igzeKA1XQ2k1G8Be1K1AS0AzUl aK1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qUdGxncK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id k16si3645372ejr.429.2020.04.22.08.54.37; Wed, 22 Apr 2020 08:55:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qUdGxncK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726490AbgDVPxJ (ORCPT + 99 others); Wed, 22 Apr 2020 11:53:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbgDVPxJ (ORCPT ); Wed, 22 Apr 2020 11:53:09 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2AF6C03C1A9 for ; Wed, 22 Apr 2020 08:53:08 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id f8so2090267lfe.12 for ; Wed, 22 Apr 2020 08:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0udPE9EnePSlFarVuldYTggNRyQNC5Zk7MCG7l+KWZc=; b=qUdGxncKjL48ifOV0XDyL0sTKyG/EZjKG5C8HIRjgDIX5h+Sh2a12dWMuHuy9PpLnj +MnY47OTG88LNJIydi6UUAUuNCkpqpuz4NTmJf9XPDynqedL3FutsknAGPY0Fi0YRZTM KkM+MalPiSWZbFzYonetaNIwfAzWWfxbjgbWnRdrmz+PlL/HvTCo4fmzSkzBOUu5kzfY fN9A9QleyEhlQY+wFeHBbKYjzJz+d5+qV40tIiqYUajacYuhMVtnQBeZ6/eXkw23wZAy jTV4wSkGt9QIr4PbESLQiOmcWk5zIuaCjZFfFc43kfpLNmtnqrs8SqgTMxifh5F7Rrmc cr9A== 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=0udPE9EnePSlFarVuldYTggNRyQNC5Zk7MCG7l+KWZc=; b=Je5inqYFd9ytoXdJSx0GrnvXMk6avAInACIw2gZFxh2O8UOIzPAHxHM/Bx1o+WETU8 81w0mBB7uHithtefVTPvpohQz1f+k2IfQ8PTJ5TKjpRWbRAJK/uHwKzNDCJGesmDFMnU U//pU4YMIT1W+bR2IMb+XCGgSomRLTx8HBmCWgVF4YDpgJ3xh4DwsPGJkhntAD4WQRm8 3R29/5IzC3BRt3jqvufG4WSQg5cU8O36OFUJpiN57NP36ngEHR9krshCIYHkGRyd7ajX AezJt4KalRmO8Jq7sldPQWPPCkdSVdaWLgJmvD9xMYOa8DCDu2Aovn3qVCkal0CFg1S3 w2/g== X-Gm-Message-State: AGi0PuaW29peVrkk1Nf15lV+lA0vzPmjI6vofNI0jOXLbqjeP4SBDCCY B3KbhJ6GpXKirHpNl96RxiZVrlG/+QYhQkdQ8+bkmQ== X-Received: by 2002:ac2:46f9:: with SMTP id q25mr17725719lfo.149.1587570787276; Wed, 22 Apr 2020 08:53:07 -0700 (PDT) MIME-Version: 1.0 References: <20200422112719.826676174@infradead.org> <20200422112831.988065598@infradead.org> <20200422132923.GK20730@hirez.programming.kicks-ass.net> <20200422135921.GL20730@hirez.programming.kicks-ass.net> <20200422153910.GN20730@hirez.programming.kicks-ass.net> In-Reply-To: <20200422153910.GN20730@hirez.programming.kicks-ass.net> From: Vincent Guittot Date: Wed, 22 Apr 2020 17:52:55 +0200 Message-ID: Subject: Re: [PATCH 13/23] sched,ion: Convert to sched_set_normal() To: Peter Zijlstra Cc: Ingo Molnar , linux-kernel , Thomas Gleixner , Steven Rostedt , Qais Yousef , Juri Lelli , Dietmar Eggemann , Ben Segall , Mel Gorman , John Stultz 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 On Wed, 22 Apr 2020 at 17:39, Peter Zijlstra wrote: > > On Wed, Apr 22, 2020 at 05:09:15PM +0200, Vincent Guittot wrote: > > > It's not unbounded, like a true idle-time scheduler would be, but it can > > > still be pretty horrible. nice19 has some of that too of course, but > > > idle has it worse, esp. also because it begs others to preempt it. > > > > Yeah... you have to pay the benefit of letting other tasks to preempt > > faster. But both sched_idle and nice19 have the same weight > > #define WEIGHT_IDLEPRIO 3 > > /* 15 */ 36, 29, 23, 18, 15, > > 15 != 3 Good point Don't know why I thought they had same weight > > Also, like said elsewhere, idle is much more eager to let itself be > preempted.