Received: by 10.192.165.156 with SMTP id m28csp886655imm; Wed, 11 Apr 2018 08:46:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Hktel3/1UxEVRUWw12dneqLk4YaZ1dkBIJBdH4T4NipLejNucFyCqyNR3G+amu7t51eiW X-Received: by 10.98.21.209 with SMTP id 200mr4420360pfv.232.1523461564650; Wed, 11 Apr 2018 08:46:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523461564; cv=none; d=google.com; s=arc-20160816; b=j+ykAUB6+ws6jTD+wEyNp89lIZ/ZzJQHbjv/hCPr1qVHmo3jM89Dorn398/8V9vOcN B3AFpJ2U9hy5eNQefdMRDRZCpOkLf0j3t9PCcRUxbJfj78tnjuV1atbLX0Yv2qUQu+nK GvfyAPBLOyT+hnGk2gFPbEfjKCGR5PHg1MR80gzWA5oFBVzg/on0nwI0ZpkSAYMOlbSm MFVt+bXi+AjQZoTTZsPydtpeEJNE6QbOQUjbLYZtB3tS95eSmLncavJUh3xe0H3YZ1fI qU2Z4FQHWYv0iSRv65LzeOdV4ugtyvF8GiGPL961bO3A7jyeXThiTkPjjnNHwEhRf8Dc tcNQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=BbBMuJQAFfVhVTLfcB5dft3prw0L7W1OacuoqzAgYDQ=; b=ZSS9bTs0YXVZRyFzKrnl5KrdMdqmYJ4zNB+V+bGUW7KVynlXuaDNig/YvTIYnOhCxU dKYj3NGT9PA8MCw7387j62rBJ8qpONfnnUwRcvwD0SU6uV7E4We98IwQJZir3aI+Y47P DVIEco9KzlIRBZs5pk4nIJm0dzrXAl9fMb/EHAhgtVert2wwuTaB9y51NvDUdli7Xdee sHaehKzBpEhBYz5rUinB5e7bHAzw6k+Vw3NsyhlNz3PKBAeszqP+E9tJv1f0YrN3clvE eUW88Ugfd2L5aKGzJeq/sjWlWgDWMlExdbP1xmYSOoRm8I/SYHHvWEgQ7c0D06tQJe9y 99dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Di90j4Pq; 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 186si1077928pfe.49.2018.04.11.08.45.27; Wed, 11 Apr 2018 08:46:04 -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=Di90j4Pq; 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 S1753679AbeDKPlr (ORCPT + 99 others); Wed, 11 Apr 2018 11:41:47 -0400 Received: from mail-it0-f48.google.com ([209.85.214.48]:56135 "EHLO mail-it0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752735AbeDKPlq (ORCPT ); Wed, 11 Apr 2018 11:41:46 -0400 Received: by mail-it0-f48.google.com with SMTP id 142-v6so3308081itl.5 for ; Wed, 11 Apr 2018 08:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BbBMuJQAFfVhVTLfcB5dft3prw0L7W1OacuoqzAgYDQ=; b=Di90j4Pq8bVuLulXn2MN8O1EfBzMsogPKxZ1wqDqH9WsRx+gSKpG2w8mZdeO+ZMWg1 BJTvXIypxyX3vjOQzVX1n80laByjYKqxt2Nabc/RWGPfI6BXe9ehSO0sEXJxR/2ZG8HL 0QCa99w3OTLnkaNI2rXHpJzlIkEIqhlQIUnuo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BbBMuJQAFfVhVTLfcB5dft3prw0L7W1OacuoqzAgYDQ=; b=PND+klMmA2gple5RQ78fYCsH3gKvzqgzkZmdJlkptXRXwoulsZZbVqYxd6xtqOKnXF w0PnbaX8l2uWXKWWW4t3rqC0sb/8n4yBpREahTifuOIA+FXStGw4kc3w4JOPGmK8+LY9 PKflyPv0MYVMDNAVbDnGPwMjcnp+PS/uW9wq8tQsl6A3EHLnPt/hI1/P1qzt+la0+NXN uCB70HOmsZaYXH6GAIAua6P5e+n+eIAkMUERpXp0/nutUNvwTtI/54oQPv1M2p3D2jCC qlkeW+0fGPw14IgEb/6uKOLjCGZiOX4ySJBUt9H6r1u4kmCQZinBDIfL4eeUX4sJ3+7k sIdg== X-Gm-Message-State: ALQs6tBPziwZO/pdd4SN8H1jfU9grOYA1S8xBTHkkXi2xJFWLno8gBB8 2eRgSdR60ymvy86afiS6sTgLnm0wPgASttG5Nw+WBg== X-Received: by 2002:a24:46cd:: with SMTP id j196-v6mr4343410itb.8.1523461305354; Wed, 11 Apr 2018 08:41:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.222.20 with HTTP; Wed, 11 Apr 2018 08:41:24 -0700 (PDT) In-Reply-To: <20180411153710.GN4082@hirez.programming.kicks-ass.net> References: <20180406172835.20078-1-patrick.bellasi@arm.com> <20180410110412.GG14248@e110439-lin> <20180411151450.GK4043@hirez.programming.kicks-ass.net> <20180411153710.GN4082@hirez.programming.kicks-ass.net> From: Vincent Guittot Date: Wed, 11 Apr 2018 17:41:24 +0200 Message-ID: Subject: Re: [PATCH] sched/fair: schedutil: update only with all info available To: Peter Zijlstra Cc: Patrick Bellasi , linux-kernel , "open list:THERMAL" , Ingo Molnar , "Rafael J . Wysocki" , Viresh Kumar , Juri Lelli , Joel Fernandes , Steve Muckle , Dietmar Eggemann , Morten Rasmussen 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 11 April 2018 at 17:37, Peter Zijlstra wrote: > On Wed, Apr 11, 2018 at 05:29:01PM +0200, Vincent Guittot wrote: >> On 11 April 2018 at 17:14, Peter Zijlstra wrote: >> > On Tue, Apr 10, 2018 at 12:04:12PM +0100, Patrick Bellasi wrote: >> >> On 09-Apr 10:51, Vincent Guittot wrote: >> > >> >> > Peter, >> >> > what was your goal with adding the condition "if >> >> > (rq->cfs.h_nr_running)" for the aggragation of CFS utilization >> >> >> >> The original intent was to get rid of sched class flags, used to track >> >> which class has tasks runnable from within schedutil. The reason was >> >> to solve some misalignment between scheduler class status and >> >> schedutil status. >> >> >> >> The solution, initially suggested by Viresh, and finally proposed by >> >> Peter was to exploit RQ knowledges directly from within schedutil. >> >> >> >> The problem is that now schedutil updated depends on two information: >> >> utilization changes and number of RT and CFS runnable tasks. >> >> >> >> Thus, using cfs_rq::h_nr_running is not the problem... it's actually >> >> part of a much more clean solution of the code we used to have. >> >> >> >> The problem, IMO is that we now depend on other information which >> >> needs to be in sync before calling schedutil... and the patch I >> >> proposed is meant to make it less likely that all the information >> >> required are not aligned (also in the future). >> > >> > Specifically, the h_nr_running test was get rid of >> > >> > if (delta_ns > TICK_NSEC) { >> > j_sg_cpu->iowait_boost = 0; >> > j_sg_cpu->iowait_boost_pending = false; >> > - j_sg_cpu->util_cfs = 0; >> > >> > ^^^^^^^^^^^^^^^^^^^^^^^ that.. >> > >> > - if (j_sg_cpu->util_dl == 0) >> > - continue; >> > } >> > >> > >> > because that felt rather arbitrary. >> >> yes I agree. >> >> With the patch that updates blocked idle load, we should not have the >> problem of blocked utilization anymore and get rid of the code above >> and h_nr_running test > > Yes, these patches predate those, but indeed, now that we age the > blocked load consistently it should no longer be required. > > Of course, you still have that weird regression report against those > patches... :-) Yes. and to be honest I don't have any clues of the root cause :-( Heiner mentioned that it's much better in latest linux-next but I haven't seen any changes related to the code of those patches