Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2155858pxa; Mon, 3 Aug 2020 08:49:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJy1k5+OmOFihmpvJYMyCjCik3WpSBdTyUMPzauAyq1pUxhHeEDLon8w//J69w70ZO0GQ6 X-Received: by 2002:a17:906:4d4f:: with SMTP id b15mr16970343ejv.534.1596469778383; Mon, 03 Aug 2020 08:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596469778; cv=none; d=google.com; s=arc-20160816; b=eXYWK/tITiGXbzcGRUeK7/W8vRFLwmQCI4meLuQkp3ebAuObW6z9jhnnrBd/YQKaS1 kMdB1BTq7XLtcIF9+AeMQx7Ypa8YM882hPxXXRHRDJpDrJ0d267W/YYYNZ/tGPL+uHJu 6/2onw3isZTkWOoVMesWu1Svdk9nwQRB/CwOb9u8QgoFcJfXH5y3RkY/YZSDS52X5vjz +N77HKF2x2hqB9MUkI6ISjRBs85W/H7BSTRivzw2fgXoF/jHG9OVA5FA9mkKiIGzmlKw kpIo4siF+jDK9HRmNlhMP26Rl8jjD9v0VS5rZUwBQG7bX47B4TpdJSQsrkGi6DyropPx kbCQ== 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:in-reply-to :subject:cc:to:from:user-agent:references; bh=9VLEQiYCK9I04Prc1Gzggk38JJpDdRSu/4Bjs/hhx/Q=; b=qYrc5c7BIoBjlisSGegg2Wse2NsS3uG32P6Ed8gec6TSE22AyoI1go+ERUgMD7Z4FN pUCIs2IHiZl5phOo7CKeolAwwcIucZ7aogOC22df1pDGFYnWyrPSp7Nbczexy+xlI6wO XcR5z4dsl4wOU+cZzKfRqQ8gi7Jn7sFofSUuLOP3TBtPqqRVSTpZ2KkmALb4lXWQEufe 0Nr7p5xeAWR71nPvhIqmHlbXwr8nMu61gZhSAdkrE2StrTzAoK4nCqTefx1t2CcGfbpn /xbBbqXQa0SzC7mbkUt8rcMQUhxKPG00sCFA05YQK9KZgGCMmVMRlEtBk3syTW4FE9aw wa6Q== ARC-Authentication-Results: i=1; mx.google.com; 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 e11si2475604ejk.250.2020.08.03.08.49.15; Mon, 03 Aug 2020 08:49:38 -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; 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 S1727887AbgHCPrL (ORCPT + 99 others); Mon, 3 Aug 2020 11:47:11 -0400 Received: from foss.arm.com ([217.140.110.172]:59264 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726805AbgHCPrK (ORCPT ); Mon, 3 Aug 2020 11:47:10 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5CA3230E; Mon, 3 Aug 2020 08:47:10 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 948F03F718; Mon, 3 Aug 2020 08:47:08 -0700 (PDT) References: <20200729033934.22349-1-alison.wang@nxp.com> <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> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Thomas Gleixner Cc: 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 , Peter Zijlstra Subject: Re: [RFC PATCH] arm64: defconfig: Disable fine-grained task level IRQ time accounting In-reply-to: <87d047n4oh.fsf@nanos.tec.linutronix.de> Date: Mon, 03 Aug 2020 16:47:03 +0100 Message-ID: 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 On 03/08/20 16:13, Thomas Gleixner wrote: > Vladimir Oltean writes: >>> 1) When irq accounting is disabled, RT throttling kicks in as >>> expected. >>> >>> 2) With irq accounting the RT throttler does not kick in and the RCU >>> stall/lockups happen. >> What is this telling us? > > It seems that the fine grained irq time accounting affects the runtime > accounting in some way which I haven't figured out yet. > With IRQ_TIME_ACCOUNTING, rq_clock_task() will always be incremented by a lesser-or-equal value than when not having the option; you start with the same delta_exec but slice some for the IRQ accounting, and leave the rest for the rq_clock_task() (+paravirt). IIUC this means that if you spend e.g. 10% of the time in IRQ and 90% of the time running the stress-ng RT tasks, despite having RT tasks hogging the entirety of the "available time" it is still only 90% runtime, which is below the 95% default and the throttling doesn't happen. I don't know if considering IRQ time in some way or another in sched_rt_runtime_exceeded() really is a way out here. > Thanks, > > tglx