Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4393043pxa; Mon, 10 Aug 2020 08:06:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0XPZH9dYiS5ygUfeYdDhpIvEGT8LarKkYyx8vciVWMf0RqUTlDsOMkpnroPQmq4F3vXY4 X-Received: by 2002:a17:906:138b:: with SMTP id f11mr21398243ejc.310.1597071992610; Mon, 10 Aug 2020 08:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597071992; cv=none; d=google.com; s=arc-20160816; b=m9+vk7XjGgjySArRvJRDyO4V773lhVBfMND5VEuWpRfvu19RkayWgEUa2cnRclm8/+ JVAZHvc3JCGaSOtLQPwHro9nudS3ntg4+CESEj3TwMOUQhmxw1efVFd061LgFkAaLTyl nFCMthL1yZoe2vRqauTQUoVGgbYwVRXE261MzyGHvwcsZW0vkgsdrCgd1gHXSIOhFUpA fZYRPoGh4pf2hjCukzDf49FPdS1m5gtJqU8lU+benXui/0kiGwLt4PiqOQixIRweU6GP y+dYisCurwvHy+1VJk123+Ob3CGS3sbU74cGUb+zO9WWejuZ9pWQ8C7I8WLZmdy69PbX lzMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=DADPk++YApihyrEZkLfPRHUGA0P6wsuzLvqIZux7ouY=; b=wGL19xX37k1T2zjvLH+Wk9EAUtGkHL0iMS6r7zlGhhCawnahTw3mMGx6+wUHSSZ5A2 0XvhgPHRizPWL2wOAFX2b7pirQfHfqW8Vvmo8dwDKIRNyyNJmRXc7ENWX2KzDOLu43m5 a/TqeXbHlIHEPV3+AZc8X+7tHsZrIuhazDhynDl/JpjjSjmFYsX61xYyFy8mNAm/WXo6 hsKcL9xdmU6fRaEtDwc7UIiXs+FpTn6nkHLMv4CO+F0H0zR0boXACxRHEN5BCmkUuNpa MdzOoVWmxJlZEajvJF17eRGIjlz7RNecrr4hyi5ZHD5sui+SY0/wDeYNCkKgIKOUynBu omog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hMiLT3vu; 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 c14si11160015edn.56.2020.08.10.08.06.09; Mon, 10 Aug 2020 08:06:32 -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; dkim=pass header.i=@kernel.org header.s=default header.b=hMiLT3vu; 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 S1727808AbgHJPEp (ORCPT + 99 others); Mon, 10 Aug 2020 11:04:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:41272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726499AbgHJPEn (ORCPT ); Mon, 10 Aug 2020 11:04:43 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7749520774; Mon, 10 Aug 2020 15:04:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597071883; bh=XrRQjxQ+5hBm9ooxNZUmS5a2TwH3ejiZlRc9kr/rE9U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hMiLT3vuWKmLrU+59l58LWwIcdYJmu+0zwXBqkXOpLREv3Bin7mG+U5LnwQjNZIKS Pu3mCJ0+tcfBcxMKfpatwvKgGTjGQoPbHiziCQlgdUhW+yuU8dl8r+1Rp5q90BdV9q m0479Pt+TS3LWP25jpPgZKUC3LWFwldollaQtUxQ= Date: Mon, 10 Aug 2020 17:04:53 +0200 From: Greg KH To: Eugene Lubarsky Cc: linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, adobriyan@gmail.com, avagin@gmail.com, dsahern@gmail.com Subject: Re: [RFC PATCH 0/5] Introduce /proc/all/ to gather stats from all processes Message-ID: <20200810150453.GB3962761@kroah.com> References: <20200810145852.9330-1-elubarsky.linux@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200810145852.9330-1-elubarsky.linux@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 11, 2020 at 12:58:47AM +1000, Eugene Lubarsky wrote: > This is an idea for substantially reducing the number of syscalls needed > by monitoring tools whilst mostly re-using the existing API. How many syscalls does this save on? Perhaps you want my proposed readfile(2) syscall: https://lore.kernel.org/r/20200704140250.423345-1-gregkh@linuxfoundation.org to help out with things like this? :) > The proposed files in this proof-of-concept patch set are: > > * /proc/all/stat I think the problem will be defining "all" in the case of the specific namespace you are dealing with, right? How will this handle all of those issues properly for all of these different statisics? thanks, greg k-h