Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1567477pxa; Thu, 6 Aug 2020 10:26:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLaUkeVqK0LNU0CveiYZzv+iQnmz7k11FQz+qyQdC7nsALBHd9xLX9pwd/aqHaAi24PWIe X-Received: by 2002:a17:906:1b0e:: with SMTP id o14mr5334189ejg.472.1596734791167; Thu, 06 Aug 2020 10:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596734791; cv=none; d=google.com; s=arc-20160816; b=zkUfP5j75b1qU3LY8+GLJFLeOSQq1PWq2ZWm7QK2mj65UMnaV7BgBWU8vHrd4Ol7bW 8i9vR+iKoXYyOND4yO3e2kP4IhIVc9wXS/wMjWjd2mNOmFzXuFw6sDF9msxOTnp0RMYb +BVZwA0sA9IdVqCAsY1LuXhADk72d0vAjsr5HQ12fcYDPBgNGl26ZY9E5YMzF+qVXd08 NPupTQs1RMnGbll/XkpeqPbLSxg0ZNNuwPN2jGJDcXMxWJk+eeUA6EJxMpJCbCdMuIPp Y0joxoN/mHjtyYZidYPbuembs2lFq4RQjApV2fA64wi9m72G17Tsr/35WH7BjCVfG8AG SAAQ== 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=mb6Pcn8GA5zfSJfRuHB/gTx/1/FB8gTP4+5zdNlmjw4=; b=ZQd6t/dC+5URMDZtAOT3wCoiyYjeM+tqwNXAXSZogzeuHpKzlOz6qt9ac6nUuvMaR6 D77e6dTcv2IDiG/EKhWgE800fAgLOX0LU7rQda6c3aHF4MXW1cV2dQ/XadepZT+PFp2h jRay7eOOhFafU9TjcGgBwJAzY1pIh5zCIc56isHdzW8ivPCkcLlhGnhIFeP72eo4FOa0 KxezGNAjfU0uycn4Gnxwg8DKpfypmOr01pwG0HWah9Jf8vO8ZgIwIjAhcxBw8VU2IfOx 4DQxNkxKkjdBwgk9hYmr3K9SCFAJx+8WBm+zmKfQTYapD2LU9MkKrI5tBH+9ZY1kat8z VhVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=mN0bUej5; 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 n28si3902753eda.478.2020.08.06.10.26.09; Thu, 06 Aug 2020 10:26:31 -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=mN0bUej5; 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 S1729958AbgHFRZP (ORCPT + 99 others); Thu, 6 Aug 2020 13:25:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729466AbgHFRDB (ORCPT ); Thu, 6 Aug 2020 13:03:01 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D474CC0617B1 for ; Thu, 6 Aug 2020 04:45:58 -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=mb6Pcn8GA5zfSJfRuHB/gTx/1/FB8gTP4+5zdNlmjw4=; b=mN0bUej55+bDD24xUR681m+tcG ZB+jUoAwwJi6Gl04PymXuUnXRU+GAYQndtdvwKjFt78vP+XYFznahcCJZydD337JRLxZHyYXoy9Jk GQzh7jleA1wnTGkCGKk5Ekch+iU0Vxm2YhVSnub0AGBvR70dx0+7r4UN2b+wghZI3LXy8LPvy6oOn RG4w9ujsEHcqSiC/iNVhVjJuChPM1kCFrs3k4L7mJQ6u2woPIMyznJ59SW8wMI0RfyBfyoBTslya9 vLGoz7GUsA3GKoT03uk0SZthK0XrevlLBEcB2RyH9Nv4QTNz/OWuCIslqGHMXa7OIMot3719dAmbr 3xZ3HOcQ==; 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 1k3eLC-0006pL-Cf; Thu, 06 Aug 2020 11:45:46 +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 AECBF301A66; Thu, 6 Aug 2020 13:45:45 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8CCD2220F91B8; Thu, 6 Aug 2020 13:45:45 +0200 (CEST) Date: Thu, 6 Aug 2020 13:45:45 +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: <20200806114545.GA2674@hirez.programming.kicks-ass.net> References: <873654m9zi.fsf@kurt> <87lfiwm2bj.fsf@nanos.tec.linutronix.de> <20200803114112.mrcuupz4ir5uqlp6@skbuf> <87d047n4oh.fsf@nanos.tec.linutronix.de> <875z9zmt4i.fsf@nanos.tec.linutronix.de> <20200805134002.GQ2674@hirez.programming.kicks-ass.net> <20200805153120.GU2674@hirez.programming.kicks-ass.net> <874kpgi025.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874kpgi025.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 Thu, Aug 06, 2020 at 11:41:06AM +0200, Thomas Gleixner wrote: > peterz@infradead.org writes: > > On Wed, Aug 05, 2020 at 02:56:49PM +0100, Valentin Schneider wrote: > > > >> I've been tempted to say the test case is a bit bogus, but am not familiar > >> enough with the RT throttling details to stand that ground. That said, from > >> both looking at the execution and the stress-ng source code, it seems to > >> unconditionally spawn 32 FIFO-50 tasks (there's even an option to make > >> these FIFO-99!!!), which is quite a crowd on monoCPU systems. > > > > Oh, so it's a case of: we do stupid without tuning and the system falls > > over. I can live with that. > > It's not a question of whether you can live with that behaviour for a > particular silly test case. > > The same happens with a single RT runaway task with enough interrupt > load on a UP machine. Just validated that. Of course. > And that has nothing to do > with a silly test case. Sporadic runaways due to a bug in a once per > week code path simply can happen and having the safety net working > depending on a config option selected or not is just wrong. The safety thing is concerned with RT tasks. It doesn't pretend to help with runnaway IRQs, never has, never will. The further extreme is an interrupt storm, those have always taken a machine down. Accounting unrelated IRQ time to RT tasks is equally wrong, the task execution is unrelated to the IRQs. The config option at least offers insight into where time goes -- and it's a config option because doing time accounting on interrupts adds overhead :/ This really is a no-win all round. The only 'sensible' option here is threaded IRQs, where the IRQ line gets disabled until the handler thread has ran, that also helps with IRQ storms.