Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp171734imu; Wed, 7 Nov 2018 23:24:51 -0800 (PST) X-Google-Smtp-Source: AJdET5cj0vEy6zN8JJrsus5wEQr2MGYdAJ326pDgPJSKpjKajxONHnzCjvoOZ+hZErqPnlSAmnH5 X-Received: by 2002:a63:c141:: with SMTP id p1mr2938690pgi.424.1541661891892; Wed, 07 Nov 2018 23:24:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541661891; cv=none; d=google.com; s=arc-20160816; b=OmIi68f11XVajCVEhyNy29mTWaIPc1w3BZhJgrMEfIqNkNrC0jGaYHnZ7wZAJCfGzw rOc0bZoMp7qTSarUvqmqhQ9riz2d+B7qUslA9NQJiX40RyTz/33LuaOUtWtK5hG27o0o m7GvH28FMsplLzYPGrmVvRLUYvgEabyDz1Mvlh2+57Y2pqJpom0aaFUaNhlerea8phGO k3IO5tDVOPPsJj9X5lb42WedtRCskSip8x8e37pvp03D2jPVD9vpvJWcWRjMGy/o9qrv J7qcu3owNJcpuyCLjiOVQjH0rsFEJDs+b2aw+morTcpXPJbmr6sayPSU+1uaA3drRSWP m3dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=8uXMvdVWMEBYG2qmkOcmE0HSMtxaPPTiOoab+zyyI3M=; b=IjrkwwP/Y5ssgcPbN1s5suTt/wi/w8M5luBA4UrbsYa5+Dbu2Sjd9U0UHbh+KejW1V xkQlcTcp7Y79sfXZovniJfC1ATGTq2Cr3Kz3K59EsfvFx3hK2YNvwS3xApANI3DiJqx9 A52U5qYLeZ83tryzP8ii+1yJ/Qvr31uVkyr13cqeE3jrHSOLn+hNHyY98f7ZnSm1uxeP 8otFB/nIahezZZOcWY+GCi9n/g1xdM+5H5LF9Ss2zelza/IC5h2oflIbbnCMWPFzpnga kOYlv4KnbSaEaOIvWZ22lDY/i8nLzMDqJqCjwkLw9/aBGN6XDOsYCGjm8Ds4BX3Zxo1T OJjA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si2850660pgl.106.2018.11.07.23.24.36; Wed, 07 Nov 2018 23:24:51 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726975AbeKHQ6T (ORCPT + 99 others); Thu, 8 Nov 2018 11:58:19 -0500 Received: from mx2.suse.de ([195.135.220.15]:57498 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726027AbeKHQ6T (ORCPT ); Thu, 8 Nov 2018 11:58:19 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3A1B7AE59; Thu, 8 Nov 2018 07:24:10 +0000 (UTC) Date: Wed, 7 Nov 2018 23:24:02 -0800 From: Davidlohr Bueso To: Dave Chinner Cc: Miklos Szeredi , Andrew Morton , Daniel Colascione , longman@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel , Davidlohr Bueso Subject: Re: [PATCH] fs/proc: introduce /proc/stat2 file Message-ID: <20181108072402.smocqnczc2tjmjwz@linux-r8p5> References: <20181029192521.23059-1-dave@stgolabs.net> <20181106154840.3b448356214afa63dc8cb28c@linux-foundation.org> <20181108020750.GZ6311@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20181108020750.GZ6311@dastard> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 08 Nov 2018, Dave Chinner wrote: >If only we had percpu counters that had a fixed, extremely low read >overhead that doesn't care about the number of CPUs in the >machine.... > >Oh, wait, we do: percpu_counters.[ch]. > >This all seems like a counter implementation deficiency to me, not >an interface problem... Yeah fair point, as long as we can sacrifice accuracy by replacing kernel_stat -- or maybe just replace the hard irq stats, which I still think only accounts for 1% of all stat users. I have not looked at how filesystems tune the batch size, but it would certainly be worth looking into methinks. Thanks, Davidlohr