Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1963142imm; Thu, 7 Jun 2018 03:13:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIVZc+wZTemC4w8Aq6srtCkN1cqwitCY+j84OcTBrQzNIFDffb4UiNZX9fCWX5P0pL9tL+/ X-Received: by 2002:a65:528c:: with SMTP id y12-v6mr1056769pgp.157.1528366429619; Thu, 07 Jun 2018 03:13:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528366429; cv=none; d=google.com; s=arc-20160816; b=K6VWqVpczbr3hCR6g1RwDyxe144vceLaX5PsLQwxhn0kM4WGlXw05DNHaUVCV9oCj1 1H65yECrM1coh1Ps3evLQNctGp8JuZyCGKqawCa7+QsTJEWRJhybP1lfwbkum5Hwk1MO OBb+HOOhqWSbf9UFcESfZPlF9Th0Te8kdyK7wXqPsUIC7CD9zl7p4h9IkwXZJDvEvWok U5LGftiFcNng4FWntRZJkQY0n8SBGLlA4png186RPgiqN9+J1NW9cSc0BHkBc9QtJ5/b HXCfImgwGOO8II6F5M6yHQo9HYyfaAeOcy2O4GxsIneR09MiRcSWjN9eo20tAN/Z690U 5mrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=IaFW3kn89eCq17QkolRVpzT9O+CRHviMdKfZdKpuXnw=; b=HJLuAyozUKLYMICSQ948UOcbxy3v7lq3hOwEbE2SN7TYtm7LDp+6ceZt43guZx+sMS bREi7dgGgz+iVEltwtI+Wm9xxQ3CpEsPcWE3+JdiDj5xuGOqtiA1SOE723YGG9hFnsCZ 8gmgUGYKuy67jZqu4uv1SvVv9sF3vifOWqDzV4RgfzfofQWO2+MMxjYtwztwcV37NoN6 0oNOY+IofrnE9KibT4sPiDjPn4200Oyr5UNvyMSJeqdA/8Vl6euWVhSMuzBjdmEClCPo /Vi+Bb31wX2cUp3ASBfEW8JKo5TasYRQaSe18GNSnVRdr8I9gjYXevY7IWUalt0qKga9 fS6A== ARC-Authentication-Results: i=1; mx.google.com; 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 be9-v6si10782304plb.583.2018.06.07.03.13.34; Thu, 07 Jun 2018 03:13:49 -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; 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 S932661AbeFGJGf (ORCPT + 99 others); Thu, 7 Jun 2018 05:06:35 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:48670 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753175AbeFGJGd (ORCPT ); Thu, 7 Jun 2018 05:06:33 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D75C515AB; Thu, 7 Jun 2018 02:06:32 -0700 (PDT) Received: from [0.0.0.0] (e107985-lin.cambridge.arm.com [10.1.210.41]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BBBED3F59D; Thu, 7 Jun 2018 02:06:30 -0700 (PDT) Subject: Re: [PATCH v5 07/10] sched/irq: add irq utilization tracking To: Vincent Guittot Cc: Peter Zijlstra , Ingo Molnar , linux-kernel , "Rafael J. Wysocki" , Juri Lelli , Morten Rasmussen , viresh kumar , Valentin Schneider , Quentin Perret References: <1527253951-22709-1-git-send-email-vincent.guittot@linaro.org> <1527253951-22709-8-git-send-email-vincent.guittot@linaro.org> <72473e6f-8ade-8e26-3282-276fcae4c4c7@arm.com> <4368a36c-3df4-1454-1837-473e569b9080@arm.com> From: Dietmar Eggemann Message-ID: <5ff5d418-ed84-9747-3868-597223ceb7e2@arm.com> Date: Thu, 7 Jun 2018 11:06:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/07/2018 10:44 AM, Vincent Guittot wrote: > On 7 June 2018 at 10:29, Dietmar Eggemann wrote: >> On 06/06/2018 06:06 PM, Vincent Guittot wrote: >>> >>> Hi Dietmar, >>> >>> Sorry for the late answer >>> >>> On 31 May 2018 at 18:54, Dietmar Eggemann >>> wrote: >>>> >>>> On 05/30/2018 08:45 PM, Vincent Guittot wrote: >>>>> >>>>> Hi Dietmar, >>>>> >>>>> On 30 May 2018 at 17:55, Dietmar Eggemann >>>>> wrote: >>>>>> >>>>>> On 05/25/2018 03:12 PM, Vincent Guittot wrote: [...] >> Can't buy this argument though because this is true with the current >> implementation as well since the 'decay load sum' - 'accrue load sum' >> sequence is not atomic. > > it's not a problem that the _sum variable are updated in different > step because there are internal variable > Only util_avg is used "outside" and the latter is updated after both > idle and running steps have been applied You're right here! >> What about calling update_irq_load_avg(rq, 0) in update_rq_clock_task() if >> (irq_delta + steal) eq. 0 and sched_feat(NONTASK_CAPACITY) eq. true in this >> #ifdef CONFIG_XXX_TIME_ACCOUNTING block? > > update_irq_load_avg(rq, 0) is called in update_blocked_averages to > decay smoothly like other blocked signals and replace the need to call > update_irq_load_avg(rq, 0) for every call to update_rq_clock_task() > which can be significant OK. >> Maintaining a irq/steal time signal makes only sense if at least one of the >> CONFIG_XXX_TIME_ACCOUNTING is set and NONTASK_CAPACITY is true. The call to >> update_irq_load_avg() in update_blocked_averages() isn't guarded my them. > > good point [...]