Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp665270pxa; Wed, 5 Aug 2020 09:53:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIXt65joXXKC5RD4pSslekfyz8QTKiq7iw1v87ejMCIVXbMtESXax79s0BSIEF0vNQ+Lfw X-Received: by 2002:a05:6402:1282:: with SMTP id w2mr143308edv.183.1596646408426; Wed, 05 Aug 2020 09:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596646408; cv=none; d=google.com; s=arc-20160816; b=JBdgu6tJSO+P5gg8Qk0JHyZsZlo8IyA3pVeSN0UOPhC4Y9D9TDaCPTROTMH+YUhbnV cQRJavplIlBkfmETKDgumpWDC136LF1G69g0thPjX5+FTvmFj4g7JB33BSUzjz0tmLlj QmAIalCbY/SWmR7mG9HtkFPUETnUNjc1IxL51svPVgPyLajZvOIB7c/ADmEl5u2jdvgN p4NftMRim5q+kAcTczMavoxrrUzuavfanHbPQgnmETAYSghvVwHCPx9dj/VCI2eJ7Mff lAlnReG4HcfY4U5LvvlpnwLpYs96IZ/vR8EgujyPMLeFqgWliU5tFFmB91dL0KkIsX5E waCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=llIYIkPywN6VGT1iqwpwmXkEgVsOT9bHfxBPZgYYoF8=; b=HWWszcDLA1KIIemaFBNULADrE8AqbqfPL3ZeyvSAxMdtHiR7NHAtP1j0yy26YizOJn qrsdJh8YwG9+z26FKcX5wya70pBBCi5Fuf0QJxeIV1KcmpqSjgoggwiu7sLXQ9LUITP4 MZ3bn8ILF3dVXPPKzQbliShRrcd7T62rTZgXzki9coqbVLMpi92h6BPImc8uWTVU3Tqz Q8rzbMB3rMRp+kuGEwookggSc5dmw2+7PzaLDzKAUqSlGVFEEhLdQbl61YikJjzskHmn cPGIfSs375GEPfLOqeaXhuil6RI2YVouc5cFTr5YlAwuhDKzvbSy6bHkfFoSHyliTL94 1fPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=o4UNyU+E; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr26si1740561ejb.47.2020.08.05.09.53.03; Wed, 05 Aug 2020 09:53:28 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=o4UNyU+E; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726923AbgHEQvV (ORCPT + 99 others); Wed, 5 Aug 2020 12:51:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728067AbgHEQsi (ORCPT ); Wed, 5 Aug 2020 12:48:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CA28C0A8884 for ; Wed, 5 Aug 2020 06:40:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=llIYIkPywN6VGT1iqwpwmXkEgVsOT9bHfxBPZgYYoF8=; b=o4UNyU+E39IT4QDuCejLtxHLZI thdkTL4uS6ye9ug0ZJAGEmJ0+HVj6nrHtSXGzb+yMCXvbi/09nQDQiaqX4t104slsVHrykO/7ISsd +6OxjB6CNIi/9ssmDwqJa26GxYwv9V7XJUr+LzsEHFrPXMqJHmPLnVBf5WZeAz4es1lhzJ/9Wj4E8 TmSoIAKMxdvUUF1HQh7o3iKtENypMXYi7ybnFfBJlZqG810rPcmTz0BcPWNmn9RaKzBOMoptwU1sD chpgZFLM2FhVXGe0Pgz8MspmVNYmSqfy48HzxRysKF+6sUYZEHG8zfd7MHG7WVmnC2s56MQ/m6Rxp FOFRijbg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1k3JeK-0005Gc-Uv; Wed, 05 Aug 2020 13:40:09 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 0CA653012DC; Wed, 5 Aug 2020 15:40:02 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C6BBF22B957C1; Wed, 5 Aug 2020 15:40:02 +0200 (CEST) Date: Wed, 5 Aug 2020 15:40:02 +0200 From: peterz@infradead.org To: Thomas Gleixner Cc: Valentin Schneider , Vladimir Oltean , Kurt Kanzenbach , Alison Wang , catalin.marinas@arm.com, will@kernel.org, paulmck@kernel.org, mw@semihalf.com, leoyang.li@nxp.com, vladimir.oltean@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Anna-Maria Gleixner Subject: Re: [RFC PATCH] arm64: defconfig: Disable fine-grained task level IRQ time accounting Message-ID: <20200805134002.GQ2674@hirez.programming.kicks-ass.net> References: <877dumbtoi.fsf@kurt> <20200729094943.lsmhsqlnl7rlnl6f@skbuf> <87mu3ho48v.fsf@kurt> <20200730082228.r24zgdeiofvwxijm@skbuf> <873654m9zi.fsf@kurt> <87lfiwm2bj.fsf@nanos.tec.linutronix.de> <20200803114112.mrcuupz4ir5uqlp6@skbuf> <87d047n4oh.fsf@nanos.tec.linutronix.de> <875z9zmt4i.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <875z9zmt4i.fsf@nanos.tec.linutronix.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 03, 2020 at 09:22:53PM +0200, Thomas Gleixner wrote: > totaltime = irqtime + tasktime > > Ignoring irqtime and pretending that totaltime is what the scheduler > can control and deal with is naive at best. Well no, that's what we call system overhead and is assumed to be included in the 'error margin'. The way things are set up is that we say that, by default, RT tasks can consume 95% of cputime and the remaining 5% is sufficient to keep the system alive. Those 5% include all system overhead, IRQs, RCU, !RT workqueues etc.. Obviously IRQ_TIME accounting changes the balance a bit, but that's what it is. We can't really do anything better. Apparently this SoC has significant IRQ time for some reason. Also, relying on RT throttling for 'correct' behaviour is also wrong. What needs to be done is find who is using all this RT time and why, that isn't right.