Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3457241ybi; Tue, 18 Jun 2019 00:49:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzItteeN175iu75EUWI+n6fHqfh1QvvleFc9/mfBviEap5HD6l3++Aw8JYvLl35uRhCGMh/ X-Received: by 2002:a17:902:7249:: with SMTP id c9mr6139826pll.25.1560844170579; Tue, 18 Jun 2019 00:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560844170; cv=none; d=google.com; s=arc-20160816; b=HlTPxq2HrYzE6sAX+OetBdQs4TjGc0178Awzqg5jvTUYSMor0KBrWyXmQmeo0R1jiI ccb/1f/HSnPeqJA38YaEoKsqk3/sbjm/ZGbAcufjffpfByNCSau3x9FUuE9jVL5QjWoI id/bH2Byhu3ZmDy9Oz5UT6joFM0s4MSqgGKCM4pvpoYo/fNBQpFe/T29u41kiWh6cP+c e8jqJ1BRjhbYIF0puid8OzyZ92fKnktFt89apoKsG5aN8oMLmvN8lc0cDkJv+cdvIcz6 IncyWD9jUQAOsMjI6ly+w4kpc2GCxfqcHgOCVgjo4BNrNORAEV+/jyCcotsV6YFCcr8t SA4g== 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=m9kWU4Wyh0nUtIn5ZBz57UUg5pTNFygG2evwRUANN1M=; b=0oTzrvpuwBFxg+AInA+45YbiSjVOcx2zqYl1xOcFUSzwruiX7GjKyWFVIuKzK4oPAv /MQvEVGecNcUX/JyHIwlkr7v0TBvecdUl/O69agFA5RCX7rIOH6aEw6C2FEiaGNaeiNn uofQmTyeeh2qgiBLrwrvsnSuMMta6B2Elxg5CcV29vt3djugX+5wRgmanAmIGEr2Fb3S n4qaCqZ9Lz56Hd8RwUvdyZyJuXceQvtsxMRFgcUELgmUX76VhRPaEMlIvELwKZqD9myP NdhOqw5kGvUeyESDIvVez7xcJZKmSMYwtuhSgOMjVZ4VOF5HfJu/WMzgMydqbYxtnl7o aNHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i9Kme+Vb; 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 b5si1660946pjo.26.2019.06.18.00.49.15; Tue, 18 Jun 2019 00:49:30 -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=i9Kme+Vb; 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 S1729279AbfFRHrd (ORCPT + 99 others); Tue, 18 Jun 2019 03:47:33 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:40668 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbfFRHrc (ORCPT ); Tue, 18 Jun 2019 03:47:32 -0400 Received: by mail-pf1-f193.google.com with SMTP id p184so7154085pfp.7 for ; Tue, 18 Jun 2019 00:47:32 -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=m9kWU4Wyh0nUtIn5ZBz57UUg5pTNFygG2evwRUANN1M=; b=i9Kme+VbcXRi1zjpBD7iIzvpMagzeVyhTd4n/VvOx4aaVfkgJh/bzhahGNYtAwCCOA DwDF6m7/Xucseh1RMtbpnynAOM8o9ukJePgNWNAQUcgS8sx7k5GKF/vLxGQSpmAXwV4f buEqIn1OqmfOGJh63tAffQ0Uw8DnWuzX3ATtRm54T2N8DhTzeTVct40nlRbLaFlWoDH+ JLZ0k8dG8L5EZ/Rjv1GHyAWDooqo06Om6s2QGClxw4rE5HWBOu4U1L1Wr8JsKxWMrLTI cMSmddzuJYIidMUaGNAajZOVOPx0GEN2iNuZJMDjksiomojZf3DDcYdxC7Bi53cp4P/P KK+Q== 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=m9kWU4Wyh0nUtIn5ZBz57UUg5pTNFygG2evwRUANN1M=; b=Kqmy+onl1W3qHwY1chxnqU+TmViTwwai8mBb61vflXo37vWEMJM6jKzyYN+LT24vhX vmI78Lm9FA7lfETm1987XH3tSwrDA9MUbSzbqkv28GHcxtcV8BhnpftqRHpZJVtcTqM0 bZxnSHn249q/27WarMAXwRCF01pDuQ+qryedXX0Xo6vlafrUFOrZGwsk1pl+dXa+3hMO UV+fMY58Bb4kPhaWae+asiPq+9oZreTTe2j8faNbH96Tinqo/EXFrTFaRaFFJkg/Wq/3 ogUCXLiwGuTvFFH0GScutStyIXSlLavR52QZLQ8SsmU48zcCSo9/YkZx0lzfzuIfiT5U i58g== X-Gm-Message-State: APjAAAU5WRQgvSN7VXu1J8GATIyT4IJOPNeceqhAynetrCHssLfg72P5 zmVNBaSNyDxbM82oDvpdS7fyUg== X-Received: by 2002:a63:1d10:: with SMTP id d16mr1416444pgd.446.1560844051594; Tue, 18 Jun 2019 00:47:31 -0700 (PDT) Received: from localhost ([122.172.66.84]) by smtp.gmail.com with ESMTPSA id ci15sm2914468pjb.12.2019.06.18.00.47.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2019 00:47:30 -0700 (PDT) Date: Tue, 18 Jun 2019 13:17:28 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Peter Zijlstra , Quentin Perret , Ingo Molnar , Linux Kernel Mailing List , Vincent Guittot Subject: Re: [PATCH] sched/fair: Introduce fits_capacity() Message-ID: <20190618074728.gf6wugkbndhhcqql@vireshk-i7> References: <20190605091644.w3g7hc7r3eiscz4f@queper01-lin> <20190606025204.qe5v7j6fysjkgxc6@vireshk-i7> <20190617150204.GG3436@hirez.programming.kicks-ass.net> <20190618031217.63md32da5pzydqia@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 18-06-19, 09:26, Rafael J. Wysocki wrote: > On Tue, Jun 18, 2019 at 5:12 AM Viresh Kumar wrote: > > > > +Rafael > > > > On 17-06-19, 17:02, Peter Zijlstra wrote: > > > On Thu, Jun 06, 2019 at 08:22:04AM +0530, Viresh Kumar wrote: > > > > Hmm, even if the values are same currently I am not sure if we want > > > > the same for ever. I will write a patch for it though, if Peter/Rafael > > > > feel the same as you. > > > > > > Is it really the same variable or just two numbers that happen to be the > > > same? > > > > In both cases we are trying to keep the load under 80% of what can be supported. > > But I am not sure of the answer to your question. > > > > Maybe Rafael knows :) > > Which variable? Schedutil multiplies the target frequency by 1.25 (20% more capacity eventually) to get enough room for more load and similar thing is done in fair.c at several places to see if the new task can fit in a runqueue without overloading it. Quentin suggested to use common code for this calculation and that is what is getting discussed here. -- viresh