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.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 26901C433DF for ; Mon, 3 Aug 2020 15:13:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E9A56207FB for ; Mon, 3 Aug 2020 15:13:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="LBURf5Ja"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="DC0RPbpC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728090AbgHCPNV (ORCPT ); Mon, 3 Aug 2020 11:13:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbgHCPNV (ORCPT ); Mon, 3 Aug 2020 11:13:21 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49A00C06174A for ; Mon, 3 Aug 2020 08:13:21 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1596467599; 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=zXGEztBjn4giLdEcSrD148UX+XKQGnk+zqs22R94Q+0=; b=LBURf5Ja6M9Lac4WOtiuJ6bxV3P29YalLePHR73LPtA0WqbI3DEP5PI50sGfEKLrOxsHxk SpZq/CrnkcSwoR5GhLAuMFCxRFIuwknKHC+j2k1XLlJy2dfbZCwoq4hpTrV8+rWguLLEus 6Cb0ASJC/yoHQrrJw5p3WETehitAxGJlOldFGFjwFnKPs+HbOx+h/iROd2tFeWUZ7EsBhG VDwFIAonfMaIKyOmK5k8bevRY5d83pdzgieQQSzIVG+POWhTMuUsspi4MdsrfIgpH7v4pV Ql0+pNsiIgi39OmQmKNAHz48/jKQCCg1HESutm3gcqlHSCNFCdw3ltBQ0/JLoQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1596467599; 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=zXGEztBjn4giLdEcSrD148UX+XKQGnk+zqs22R94Q+0=; b=DC0RPbpCWyjFYqilNHjgTKCW8agE9XURW0gniTmMsNl7HWZ5w0tXO+jy2OVEX4siXKFtfx HVmiyqaI1kWcTFCQ== To: Vladimir Oltean Cc: 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: <20200803114112.mrcuupz4ir5uqlp6@skbuf> 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> Date: Mon, 03 Aug 2020 17:13:18 +0200 Message-ID: <87d047n4oh.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 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. >> >> Not much, but there is clearly interaction between irq time accounting >> and scheduler accounting. >> >> Can you please reduce /proc/sys/kernel/sched_rt_runtime_us in steps of >> 50000? At least in theory, reduction should bring the throttling back. > > We already know from my original report that reducing > sched_rt_runtime_us to 80% (800000) gives us a stable system. > https://lkml.org/lkml/2020/6/4/1062 Oh. Somehow missed that. Btw, can you please use links in the form of: https://lore.kernel.org/r/$MSGID lkml.org is spotty and having the message id allows to search in the mail client as well. > 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. Thanks, tglx 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 5B685C433E0 for ; Mon, 3 Aug 2020 15:14:56 +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 291B520775 for ; Mon, 3 Aug 2020 15:14:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cOGajCOY"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="LBURf5Ja"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="DC0RPbpC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 291B520775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linutronix.de 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:MIME-Version:Message-ID:Date:References:In-Reply-To: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=AbA3PD11u+tdW4tSKoyYNBsv2bbRiDoVibApwklJ3c4=; b=cOGajCOYfbDF29E/yTJXxQFXr fKX3dHBC1a8exHu2jLp4cTrEdpVz6K47/pbtwKYdWKpbNneFjtAH6rP6XYsNmEk+bk5I7T8QF0tJo Vfz0MX1VhSGil2MmyJksxopizhyqkP4QuOF3TDvM2Jl0aD6JUwnSEgw35lY3FC5huqR4ohMAAUkri UJ4QibxtYBIOzZvcIx6INUDEPcaWjUAlWOxqEdZ3Nu8/VDx/dVr7hv3N19h97XZ4FJ3CD0FRh4f7G bw9T12PF3gJzLpYVUwSo7CuRB+iFqPXc9C8aJIvFtHWFz/msSOmYocp/ugeo51fSzCDmpTtnrr1sF ctSq/qHtw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k2c9T-0007dd-Vh; Mon, 03 Aug 2020 15:13:24 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k2c9S-0007cc-0i for linux-arm-kernel@lists.infradead.org; Mon, 03 Aug 2020 15:13:22 +0000 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1596467599; 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=zXGEztBjn4giLdEcSrD148UX+XKQGnk+zqs22R94Q+0=; b=LBURf5Ja6M9Lac4WOtiuJ6bxV3P29YalLePHR73LPtA0WqbI3DEP5PI50sGfEKLrOxsHxk SpZq/CrnkcSwoR5GhLAuMFCxRFIuwknKHC+j2k1XLlJy2dfbZCwoq4hpTrV8+rWguLLEus 6Cb0ASJC/yoHQrrJw5p3WETehitAxGJlOldFGFjwFnKPs+HbOx+h/iROd2tFeWUZ7EsBhG VDwFIAonfMaIKyOmK5k8bevRY5d83pdzgieQQSzIVG+POWhTMuUsspi4MdsrfIgpH7v4pV Ql0+pNsiIgi39OmQmKNAHz48/jKQCCg1HESutm3gcqlHSCNFCdw3ltBQ0/JLoQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1596467599; 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=zXGEztBjn4giLdEcSrD148UX+XKQGnk+zqs22R94Q+0=; b=DC0RPbpCWyjFYqilNHjgTKCW8agE9XURW0gniTmMsNl7HWZ5w0tXO+jy2OVEX4siXKFtfx HVmiyqaI1kWcTFCQ== To: Vladimir Oltean Subject: Re: [RFC PATCH] arm64: defconfig: Disable fine-grained task level IRQ time accounting In-Reply-To: <20200803114112.mrcuupz4ir5uqlp6@skbuf> 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> Date: Mon, 03 Aug 2020 17:13:18 +0200 Message-ID: <87d047n4oh.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200803_111322_213481_9EE90D9D X-CRM114-Status: UNSURE ( 7.72 ) X-CRM114-Notice: Please train this message. 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: paulmck@kernel.org, Anna-Maria Gleixner , catalin.marinas@arm.com, Alison Wang , linux-kernel@vger.kernel.org, leoyang.li@nxp.com, Peter Zijlstra , vladimir.oltean@nxp.com, Kurt Kanzenbach , mw@semihalf.com, will@kernel.org, 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 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. >> >> Not much, but there is clearly interaction between irq time accounting >> and scheduler accounting. >> >> Can you please reduce /proc/sys/kernel/sched_rt_runtime_us in steps of >> 50000? At least in theory, reduction should bring the throttling back. > > We already know from my original report that reducing > sched_rt_runtime_us to 80% (800000) gives us a stable system. > https://lkml.org/lkml/2020/6/4/1062 Oh. Somehow missed that. Btw, can you please use links in the form of: https://lore.kernel.org/r/$MSGID lkml.org is spotty and having the message id allows to search in the mail client as well. > 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. Thanks, tglx _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel