Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1629935pxa; Thu, 6 Aug 2020 12:00:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyq4KxOMNIsvHMdEbUaRFua7JcVkzZKk03O4H7ohfYFs7SZozmqLuobnloFCAZFgy9zEhOA X-Received: by 2002:aa7:cc06:: with SMTP id q6mr5439262edt.10.1596740422467; Thu, 06 Aug 2020 12:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596740422; cv=none; d=google.com; s=arc-20160816; b=lbUkE8jHPZemBqS34W/WQ0J2M9jWzZKJHBkVf1Me5SNmRQqKqKUsYgQbDXdpgZFv6C SXYktH+nmmatJgwlz6Iav4eWjEReMtNON6nBKzIyYGbJWShvbxq3QC7Y/NuGQXrqoXhx Cztfe6MR5wn7Yo7hXoLzq/x5jgzUOJhRWrocje9qPLhsN1Lhb9ixLhxe4rjGuC1d8ELD BTQhvnJTo7ioe7smGd0wIeT5s84JUqiWagTZuP93ACiy/bbc5lrr8h07IqfnCvrhrF6A 5zUK1/23I7A1jSgoft0UMrGLXStPhQmB/Fe2qYj+heeDf0QywNUaXYIJyml/vo1cKMxE pntQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=Eq5i7/DrPIRMT4jncK281CDEQ+oCIA5XaA6tD+TJQss=; b=VlRg9Dj4XZaHFCVl6uagedTzKswOXHEy1d2Hf1OZsmOk5g0VCB6aRiyHyzFS3Zr9Hg dGU2Kbaetrh7wTe7Y61NqeltqWd5//40mMBlOx1bfN5qSA+k45ETvS1SrD3Vly5SqZWv e7SiVaqOVZ/glxq72w96oTF2n6fUDfQc8Ou8Uu/81LAj8aQCu43D7aeCqxLy5876uIBp Zeid/ab0s13gie2M5Hhyn3ZiXPFIRqBEkeOLi/gKPV2i5sC8u4KCOfGKhk7rkLV+WkZP D4Md7sc5I9pjhzJuMhSwqvCFLjmoeKTTCPXskRrPcRNeaRwBtLUcfcM4ijsBlAr+V3QJ TILw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=o6aefiq8; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="ExvAX/Uj"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by29si3750477edb.452.2020.08.06.12.00.00; Thu, 06 Aug 2020 12:00:22 -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=pass header.i=@linutronix.de header.s=2020 header.b=o6aefiq8; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="ExvAX/Uj"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728968AbgHFS6c (ORCPT + 99 others); Thu, 6 Aug 2020 14:58:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725272AbgHFS6b (ORCPT ); Thu, 6 Aug 2020 14:58:31 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 475E5C061574 for ; Thu, 6 Aug 2020 11:58:31 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1596740309; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Eq5i7/DrPIRMT4jncK281CDEQ+oCIA5XaA6tD+TJQss=; b=o6aefiq84HrrzcnIFcl9KjHhfvAUfOhORytwU+6oU9pMiAndAiryDPOnotC+4xslC4wlSP aNKG5/isaQd941YnZKMCHPbRUBTYjWuqFjxcSYQHQ4Ay8yEMikJj6qCJG9bm9z+yfyfG6+ aES/ohalCTTz3/L3Vr8ZBB+97ghv8XCa2WikKNiNG0k2qelcix1SovEgPxbu5DA8u5kk8j wbN585by6dy7UWCVhEG+CWeWwA87y3pItoYjprWrhs2lEr6UPOY+iGFLG+CaITuQBLY8Q9 Ws9tJEXcpzlRfR9SxAhwpELzrEy/ZHqOEKDhwmZe+qbJ7+aK2zxLNTkgj15tFw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1596740309; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Eq5i7/DrPIRMT4jncK281CDEQ+oCIA5XaA6tD+TJQss=; b=ExvAX/UjbAXVzKraaL9FKnQ5AuwydIzTPeXuFvEvrQfRzXRZKO+YBJk1SU6WIHzE843oUW Nj/Q+wgZClZhDtAg== To: peterz@infradead.org 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 In-Reply-To: <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> <20200806114545.GA2674@hirez.programming.kicks-ass.net> Date: Thu, 06 Aug 2020 20:58:26 +0200 Message-ID: <87mu37ha99.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Peter, peterz@infradead.org writes: > On Thu, Aug 06, 2020 at 11:41:06AM +0200, Thomas Gleixner wrote: >> 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. Of course not. But without irq accounting the runtime is accounted on the runaway task which causes it to throttle. > The further extreme is an interrupt storm, those have always taken a > machine down. If every interrupt is actually handled, then yes. > 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 :/ Right, but it's not totally out of the world either to make the throttler do: if (rt_runtime + irq_time > threshold) try_to_keep_the_box_alive() > This really is a no-win all round. That's not the question here :) > 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. I'm not against enforcing threaded IRQs. :) Thanks, tglx