From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A02C8C433E0 for ; Wed, 5 Aug 2020 13:41:37 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5ECD82065C for ; Wed, 5 Aug 2020 13:41:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oeDh526p"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="o4UNyU+E" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5ECD82065C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2S0Lq1OhcppV53lTFfNCYxhSKG+6mjoeXZtEa6pbGJo=; b=oeDh526pRGtg+TsEAuEY3Zk4l Ptrd1yre/CEv8Juf+DGLAlXEiBObgBlf7n9Jh2kvWHAn7XyGm4vvJPwo74qyMa4bAPb/QMmXRpt+X wucOcXa/z0Qgo9WamRAIpqujqzx3/8DlbXtOEorkAixiNCtuCY7t4GjlRaTBQfkxEVWM55gmOsOrX oBKm9++5yd7bmgF92U3jVUkAMPRJJpU/RL+z3ihmHRK+XDyc8rR9b7QNlB2kCNOdAJ6j5RTqzMBDq IpUPSAxTo/5MZGbsHTvtL1d9slPCA+B0l1qSsW6yZlgncWiFcydQBHP0BbcK+GIdUuM8id+9Dpa2K 8AzqT8yiQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k3JeP-0005jp-IX; Wed, 05 Aug 2020 13:40:13 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k3JeN-0005jT-5f for linux-arm-kernel@merlin.infradead.org; Wed, 05 Aug 2020 13:40:11 +0000 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 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-Disposition: inline In-Reply-To: <875z9zmt4i.fsf@nanos.tec.linutronix.de> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mw@semihalf.com, paulmck@kernel.org, Anna-Maria Gleixner , catalin.marinas@arm.com, Alison Wang , linux-kernel@vger.kernel.org, leoyang.li@nxp.com, vladimir.oltean@nxp.com, Kurt Kanzenbach , Vladimir Oltean , will@kernel.org, Valentin Schneider , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel