Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1635448pxa; Thu, 6 Aug 2020 12:06:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNfAZZ92p9AR+FXjeTr0AAMhj+Dljm+9e2HfaH+F0IF6KXeKFxVaEwBdbqj24qS64M4RMR X-Received: by 2002:a17:906:a4e:: with SMTP id x14mr745374ejf.40.1596740792209; Thu, 06 Aug 2020 12:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596740792; cv=none; d=google.com; s=arc-20160816; b=Gty4688epn6JReh/OX6mg1xJQvDlhWlg1e9Gp2XaW61CQZqOcG4dmmjQAg+U794Zcl E1IQATkyZl7rwU4A6BE7GAgJqkkZ//JfLsRof61guFkPGDVF6hXGB7qQfO6FRcplSIFI WYFA+rG/EY7ayWPbCJ91VpeFeOYR/P5hQTBI2ZeZHBEodge8owrQBMRL/LItegYrfx+z ixern3FGAwocm9sDE09DYVAnLmf+wAht5huHBnuTeHd20oD0yIb+yuOJeQmP466qQhxY STuduPvFSqi1H5bKWOYg8rLPiUIsvhVQrT15IQcGf8+LTsqJ3coD7TUOd8sm+2Zhk/6w hAGg== 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=VB5BucQx5bpvgXTjit7Tp0UjVe4bVgUOv+xvLbLyxrU=; b=ge7/3qDg6WeEfY+YY5DjyWXBWQtl0Il8xTOASkKpb9AwjfZF8YokiB2fBZYkNUFI69 S5dakMyArQpsgD1ePBo8Lq4zIAoL6aH44UuQLJza77SYmbmtBngsWt3R6jZ+FvRLtzBz 9JtAEA14rHwAZL8jvOP3Do71C0AXII9Dl8u/S1BZbW4xdHAETLb0oWzwVUYytDVPal1t Z2jeR0/92kdx/OAFhnZfv3O8wyQtsA55lk2hTnZT/LgjjcQZLalUS6xIfbHkeNpgpHLE u9HA82Itl/E0IxfXaIP670D/esuJqTCOBGUDd+Uu/Osu18v/MNWp5M/8NooR2jsrMqxL Ur4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=U7gIsbri; dkim=neutral (no key) header.i=@vger.kernel.org; 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 j2si3556160edp.166.2020.08.06.12.06.08; Thu, 06 Aug 2020 12:06:32 -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=U7gIsbri; dkim=neutral (no key) header.i=@vger.kernel.org; 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 S1729876AbgHFTD2 (ORCPT + 99 others); Thu, 6 Aug 2020 15:03:28 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:59622 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728346AbgHFTD0 (ORCPT ); Thu, 6 Aug 2020 15:03:26 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1596740604; 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=VB5BucQx5bpvgXTjit7Tp0UjVe4bVgUOv+xvLbLyxrU=; b=U7gIsbriuFfDgYrSTfYmSEZxoXdCZO49gi9xVPbIJ4f/gxXyJSm/+FuFAuNe0IkJk4WX3e WH3NkPlXmihhh7Ln8CQ22mIbw2xl8/tYEoZJZnr+Jj4G7OTbohd+L1sLHY2gR5CX836Pr4 pLS9t4qnhTAtPVoyD9ApWPv/oWqAJHJLkHkkry2cEsfFTU6TdL3/ohvEishyH1MIsiSyCV GfH1IjS+pmdKRg43a44I1NCfEgKzSCf1wQytanduVnf4RGf7TcaNLLIXCCEASpXvKEIuve jMfLbU1yNHSBzGsrBHfWQfM80zJ41QZJuSWcEQVRxDwXO9s0JNQN2v0LKG9Osg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1596740604; 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=VB5BucQx5bpvgXTjit7Tp0UjVe4bVgUOv+xvLbLyxrU=; b=Sads8gc+ZuOg1bshtFmy5iMjP2tqRRHMZgt6TZnKHEZnCAr3UtFrwwQAUVC+WsM0fiBzdQ G3hhFGBb+CBBVWCQ== To: paulmck@kernel.org, peterz@infradead.org Cc: Valentin Schneider , Vladimir Oltean , Kurt Kanzenbach , Alison Wang , catalin.marinas@arm.com, will@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: <20200806132710.GL4295@paulmck-ThinkPad-P72> References: <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> <20200806132710.GL4295@paulmck-ThinkPad-P72> Date: Thu, 06 Aug 2020 21:03:24 +0200 Message-ID: <87k0ybha0z.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 Paul, "Paul E. McKenney" writes: > On Thu, Aug 06, 2020 at 01:45:45PM +0200, peterz@infradead.org wrote: >> The safety thing is concerned with RT tasks. It doesn't pretend to help >> with runnaway IRQs, never has, never will. > > Getting into the time machine back to the 1990s... > > DYNIX/ptx had a discretionary mechanism to deal with excessive interrupts. > There was a function that long-running interrupt handlers were supposed > to call periodically that would return false if the system felt that > the CPU had done enough interrupts for the time being. In that case, > the interrupt handler was supposed to schedule itself for a later time, > but leave the interrupt unacknowledged in order to prevent retriggering > in the meantime. > > Of course, this mechanism would be rather less helpful in Linux. > > For one, Linux has way more device drivers and way more oddball devices. > In contrast, the few devices that DYNIX/ptx supported were carefully > selected, and the selection criteria included being able to put up > with this sort of thing. Also, the fact that there was but a handful > of device drivers meant that changes like this could be more easily > propagated through all drivers. We could do that completely at the core interrupt handling level. > Also, Linux supports way more workloads. In contrast, DYNIX/ptx could > pick a small percentage of each CPU that would be permitted to be used > by hardware interrupt handlers. As in there are probably Linux workloads > that run >90% of some poor CPU within hardware interrupt handlers. Yet another tunable. /me runs