Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3883921imd; Mon, 29 Oct 2018 13:59:54 -0700 (PDT) X-Google-Smtp-Source: AJdET5fDeo+UtNsWWd+mvNKKC4AdK+MioW1nTWAdihBmpIR+bxf2ThpkZdZ3nX6Jh+QfBZCcOw6m X-Received: by 2002:a17:902:b203:: with SMTP id t3-v6mr16025737plr.128.1540846794713; Mon, 29 Oct 2018 13:59:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540846794; cv=none; d=google.com; s=arc-20160816; b=yFPLXWxa1y94r8XO1AJmxuud0uwmCLYu+9PjSRUlv/nCLrT5/o3jcK/xWacBxoC+5q oNfc0T6Xw6DbOzWvWOeziRgIKA3Ne/sSYcO12pR6ysjnvvBns5LDNG8mxzH3XjMHNx+e 2+jYHxlvIfpPX94aTmltCZZnVsC/4Rj3cR+p6tokqXE/F4ZGVpGHGwubQAfoSAA7/WuA 3BdsJjBmnPfUT5N3tAu9EE72yEXLAbC/YipWPODsheQ6QxwxsizahzZafzonYfY5RjU3 8XUd9jk0FntuZrgUDbFTAfnEiUd6Nw2R72baTJUVJ09WPimq6D1ipiEG9CocBlWxMffa PKsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=77TaOsHgFgr/L+NCssYcI2rcL0OPdT3+z67E5JwA1ns=; b=oPiaZgu/x1GoiNYVi1TwtjmA5kUg+VSDTme9GeJAO0MgriuofnN4btLPIBzN9w7Xqh ZIuxZxE4WVjL86U3Xoby6Na4mAtN5A4zfG/YqTMmXnVFRWdCo7kIZXMCPTilX0SehiDc rLSeWGKsr0jUabyNoCtoYDojACKeoqVyTOt4RI3Q3btHey7T6Ch5Sw+lwalpTq4+j86H AqakjQVqM4jilrr8BiylDEYNaWsVuM1UKha3wV1TsiWiOJdhcLarcxRtTG06KnllGHCs 6HiboXLRy31enT9JY6vxp6EguAEg7Cru0V4KUVksOBh36WadOcEYRsHwP72LJpV15v0U Cf/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g23-v6si19762131pgb.150.2018.10.29.13.59.36; Mon, 29 Oct 2018 13:59:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729641AbeJ3Ft1 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 30 Oct 2018 01:49:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45250 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726040AbeJ3Ft1 (ORCPT ); Tue, 30 Oct 2018 01:49:27 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BC3303DD47; Mon, 29 Oct 2018 20:59:04 +0000 (UTC) Received: from llong.remote.csb (dhcp-17-8.bos.redhat.com [10.18.17.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 24183600C6; Mon, 29 Oct 2018 20:59:04 +0000 (UTC) Subject: Re: [PATCH] fs/proc: introduce /proc/stat2 file To: Davidlohr Bueso Cc: akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Davidlohr Bueso References: <20181029192521.23059-1-dave@stgolabs.net> <0afed890-7c5a-93ee-cdb9-e30775bd9cf1@redhat.com> <20181029200050.iejuxckzbm742dmw@linux-r8p5> <3c5ba85b-5114-c751-0114-ac2cb64c02ea@redhat.com> <20181029203818.pot26ewxbncfrnua@linux-r8p5> From: Waiman Long Organization: Red Hat Message-ID: Date: Mon, 29 Oct 2018 16:59:03 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20181029203818.pot26ewxbncfrnua@linux-r8p5> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 29 Oct 2018 20:59:04 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/29/2018 04:38 PM, Davidlohr Bueso wrote: > On Mon, 29 Oct 2018, Waiman Long wrote: > >> BTW, since you are making stat2 compatible with stat, will that be >> easier from the user API perspective if we use a sysctl parameter to >> turn on and off IRQs reporting for /proc/stat, for example? > > For one /proc/stat is also common for debugging envs (ie: performance) > and I fear that if a tunnable modifies the behavior of the output, we > it might never be usable again (at least not without having users also > now consider the systctl parameter). Making it dynamic I think is not > worth it. > > Thanks, > Davidlohr This is just a matter if it is easier for users to modify their code to use /proc/stat2 or turning on a sysctl parameter. Again, this will certainly depend on the circumstances. Cheers, Longman