Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4387968pxj; Wed, 12 May 2021 04:42:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh+2iQ6Y183V/2RmySnuuuAtffqqlKWR5kExIAa3rUHzvZeJWwMLYxwwud3eRa+nI5Q0jd X-Received: by 2002:a02:b698:: with SMTP id i24mr31975652jam.121.1620819756938; Wed, 12 May 2021 04:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620819756; cv=none; d=google.com; s=arc-20160816; b=pscrw2qCWdMNG0X22JaxmJ4VlYobLFrwNNkS3EPoxsGDe3sjJAxEOs5Bjo+4eZICxB dGwJKYcCkiL7+1ySRdeg0bVuThAlzPvWgt+yRuT+axtMtNeTQowt6e/E8clHpQf9dILj cQMwV0PNcbdh2k/vDqCEJEhTLQFMu31Vz3HuU4BQ5q3cWaIAKVOlcJOUDj/S7y0QP9oz J8Ens90UAQStFhHFR+SM2BzUKXWUuom7xMuc44AF5wkEFReIBg1rVWhZHGei8OC2AzQZ ao0DNm6BxxQ5hOXEP+h4OeU59+PLRPF4Et336Zh/c+wakECtSNcShVX2IClZ/rk7G3Xr X+Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=S7c31XwtcrWVC5/HCLhlKAoQfGmmPIoG5FqbJTY9XGc=; b=aigrNamO+RQg2u0gYgzVtxdxyHGT4U7kAEBTk9nQ8VSZuti+wDUHeFb81/jUG7BEDT sd0TBTcHwsUKqa0dndsuCWOZB3VfiYiVfCB0Q2o/I8vWh87UmtzTxdEBmGPqdwyslAEd sVdksLdCTL8D/sO7YBMRlizebLJag0Re61LIkTpq8mdPzdDZredwFHWtcz0dQykI3yKP tI2uyBRZDpe03xB7dDR7lXalT9ajAbdR6Y7GMDhguunNVHB1ClJwYTnxgQKh0trVc1e1 R0gza4dujTPiq8yCNQrOgn4oWXtT52/hMbBiLeCcRlHj6v9UdmgSgozgiF31E16j/VvM jbsg== 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 s24si23977421ioc.50.2021.05.12.04.42.20; Wed, 12 May 2021 04:42:36 -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 S230333AbhELLlu (ORCPT + 99 others); Wed, 12 May 2021 07:41:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:48012 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230293AbhELLlr (ORCPT ); Wed, 12 May 2021 07:41:47 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id E8690B048; Wed, 12 May 2021 11:40:38 +0000 (UTC) Date: Wed, 12 May 2021 12:40:35 +0100 From: Mel Gorman To: Peter Zijlstra Cc: tglx@linutronix.de, mingo@kernel.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, bsingharora@gmail.com, pbonzini@redhat.com, maz@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, riel@surriel.com, hannes@cmpxchg.org, Jonathan Corbet Subject: Re: [PATCH 7/6] delayacct: Add sysctl to enable at runtime Message-ID: <20210512114035.GH3672@suse.de> References: <20210505105940.190490250@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10, 2021 at 02:05:13PM +0200, Peter Zijlstra wrote: > > Just like sched_schedstats, allow runtime enabling (and disabling) of > delayacct. This is useful if one forgot to add the delayacct boot time > option. > > Signed-off-by: Peter Zijlstra (Intel) > --- > Documentation/accounting/delay-accounting.rst | 6 ++-- > kernel/delayacct.c | 36 ++++++++++++++++++++++++-- > kernel/sysctl.c | 12 ++++++++ > 3 files changed, 50 insertions(+), 4 deletions(-) > Update sysctl/kernel.rst? diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst index 1d56a6b73a4e..5d9193bd8d27 100644 --- a/Documentation/admin-guide/sysctl/kernel.rst +++ b/Documentation/admin-guide/sysctl/kernel.rst @@ -1087,6 +1087,13 @@ Model available). If your platform happens to meet the requirements for EAS but you do not want to use it, change this value to 0. +sched_delayacct +=============== + +Enables/disables task delay accounting (see +:doc:`accounting/delay-accounting.rst`). Enabling this feature incurs +a small amount of overhead in the scheduler but is useful for debugging +and performance tuning. It is required by some tools such as iotop. sched_schedstats ================ -- Mel Gorman SUSE Labs