Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1558824imm; Fri, 6 Jul 2018 02:15:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfh6/tuOyhXe0tXVbC+UwEABHT3meWCD6ylxsQotCaJ1ogNjzx3CpQTnrJj8mYnCqOxhHC3 X-Received: by 2002:a62:cd3:: with SMTP id 80-v6mr2667755pfm.184.1530868542543; Fri, 06 Jul 2018 02:15:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530868542; cv=none; d=google.com; s=arc-20160816; b=LTpMFgQ9FwryFDD/gzumTFsN1DzNHQ2BcDpqVY4Oa0pVuTqpPRNlJzQfnULmc91SAi M+/EuU/2UIfg/cEWrGs2J5pXRhrXb9sjKtouykT9ufLmNOvR9hNLoIFVP7K3ERccnKqm +Vkp8ZbrKrCNQ+QERH4/GxhG9I3GKwQhJnCw9oWATioEgNUUtk3ewzL91EZCD4ZlfHqc Kwi8h8q21noz1O1hsq3Xb275S0J/lbPUE/0k7k7dBM6eOYhdP9n9gUSGIxJwGID882KI 1Lq4MALgFdSeUpCadZ5Z+Em1FmzxjqeBuwF8vU9Wa0zJzpeHCZmzUkfJgvqd4Xa4VnLx 0ksw== 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:arc-authentication-results; bh=gKR+oYdc7LwjQZafHpW8uMEL81WnzH5yBD+p+u/u9Ds=; b=q5gZOo89HFaHdWTHVv/y2jgfDC1ABYz+IZUVKVkTigeZQya0zlxasPSD9sw/42RalF t3AroUHKXJmI2IS6QQNrYUzerAgK+R3f8gb2ZowH3umMj1aN0xxf5zNQDgsuM18/ntbn YaTWPIzPEl+H3w58LdieP6SUchVixkLN57/iadO2Plco8Pe/ejRjP/KYtwODa7OWD22A 5Qb6mzlDNI5DEluxOuXhoqtZdzwtdDFyfeVCGU59efFnHyNGQwyT+XHe7MoQh6GL4FAj JDUZFOsBrZK5AC8uqqokrRqYfJOehaLVXae627mhUt05yXH1QyMiLTgv+E/VoFIzSpIE NDqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=mlfNQfKY; 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 t24-v6si7695242plr.240.2018.07.06.02.15.27; Fri, 06 Jul 2018 02:15:42 -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=mlfNQfKY; 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 S1753641AbeGFJOn (ORCPT + 99 others); Fri, 6 Jul 2018 05:14:43 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38500 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753177AbeGFJOl (ORCPT ); Fri, 6 Jul 2018 05:14:41 -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=gKR+oYdc7LwjQZafHpW8uMEL81WnzH5yBD+p+u/u9Ds=; b=mlfNQfKYBluT0G3CzQ2RqNhdx Q7LLBTt732rGN3mf9hUuV8Qx6zSzia/NYbVZB8iTE0+apNLTqloy3BfRwDx2bKZ0k05+rj96eUsrC I3RlWX9TkCqHRk0zUIL2CshR0InIgl4y42Gy/7YshrLFrDNUrQsVJ1YQ3Z7K/2ojY4ogxxyCweRiN oT3FYwIW2xVeiaOXvjKTPXoW0Qku6VHFqAc2O482qGqDG39xU+OFoc8DOLKCqA5XUPyitH26CEv76 RZKVMczH3MaCZc7pGWw2ENk7tMch6KZSAOvsWjpo6iwpDI4gCP2SGDOTybxQROjevgPPXEZDEMFYB vqAKEutHQ==; 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 1fbMoy-0002ko-1i; Fri, 06 Jul 2018 09:14:32 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 901BC20298BAE; Fri, 6 Jul 2018 11:14:29 +0200 (CEST) Date: Fri, 6 Jul 2018 11:14:29 +0200 From: Peter Zijlstra To: Viresh Kumar Cc: Vincent Guittot , mingo@kernel.org, linux-kernel@vger.kernel.org, rjw@rjwysocki.net, juri.lelli@redhat.com, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, valentin.schneider@arm.com, patrick.bellasi@arm.com, joel@joelfernandes.org, daniel.lezcano@linaro.org, quentin.perret@arm.com, luca.abeni@santannapisa.it, claudio@evidence.eu.com, Ingo Molnar Subject: Re: [PATCH 07/11] cpufreq/schedutil: take into account interrupt Message-ID: <20180706091429.GJ2494@hirez.programming.kicks-ass.net> References: <1530200714-4504-1-git-send-email-vincent.guittot@linaro.org> <1530200714-4504-8-git-send-email-vincent.guittot@linaro.org> <20180706060033.rcgzfs6pouqssiqh@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180706060033.rcgzfs6pouqssiqh@vireshk-i7> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 06, 2018 at 11:30:33AM +0530, Viresh Kumar wrote: > On 28-06-18, 17:45, Vincent Guittot wrote: > > The time spent under interrupt can be significant but it is not reflected > > in the utilization of CPU when deciding to choose an OPP. Now that we have > > access to this metric, schedutil can take it into account when selecting > > the OPP for a CPU. > > rqs utilization don't see the time spend under interrupt context and report > > their value in the normal context time window. We need to compensate this when > > adding interrupt utilization > > > > The CPU utilization is : > > irq util_avg + (1 - irq util_avg / max capacity ) * /Sum rq util_avg > > > > A test with iperf on hikey (octo arm64) gives: > > iperf -c server_address -r -t 5 > > > > w/o patch w/ patch > > Tx 276 Mbits/sec 304 Mbits/sec +10% > > Rx 299 Mbits/sec 328 Mbits/sec +09% > > > > 8 iterations > > stdev is lower than 1% > > Only WFI idle state is enable (shallowest diel state) Also s/diel/idle/ > > + /* > > + * Interrupt time is not seen by rqs utilization nso we can compare > > nso ? > > > + * them with the CPU capacity > > + */ Already fixed ;-)