Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp336055ybt; Mon, 6 Jul 2020 10:26:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyr12aIfH2e9H4Uo6EPLL97tp32BgOwl5rOr6K7TgH40RtgFV5FrF/OYBSs6GpX9O6qWRgw X-Received: by 2002:a17:906:5243:: with SMTP id y3mr46735886ejm.193.1594056377344; Mon, 06 Jul 2020 10:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594056377; cv=none; d=google.com; s=arc-20160816; b=tA3G5B+9TcxSjF1MqYx4Lr1KW7wBE9wifqpg8oqlkHoIPhmB91a/gDvl7DoPYaJST0 j6TKOqG0KSQtcm0ivPAOUStldL4vtm9cMWmDGfSKeleEWEr/ONhqZCZKX5mTjhENkI/4 aioPnH1yx28YdRsD/ZE7gDkrl3whI6+lNP52F0VqgNOrTg7f+rdVNTLZAj8LmHPhh+pI cyr/st459KtxFEiCb9YwOuAsW3kf4qr8Q8stHs1Pv9DT1tB/buo4/4bS4TPSwldWh9u1 xXikW5W7pZ/D+BqZqtBqgKYBf827tOb1XJA3kuzJpamx3e3OGkWEHiM5hxwxPUI3ihEC o4EA== 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=e+H8D3OvCh9lP9LgnUsDDRNI5SLO90NeodCopsPm0V0=; b=tOEUvPCRGzHdjUw3ALXCvboGAORj5/AI342iNvuqbHH4X+ffd2CGkQV0/1siq0/at/ 1+A5TMCswHOgJ8oGXoFy0nkrNa0Imiary6DXDzFPC0XffH394LRWnW23W5OutmIhKXW4 8IiZa0BEJhD5jted9zvfRrOc6ANUKhmA2225q6duw6+Zzmbi1Sdb1ig4/GyuAmAH6lva 0Oe1AD0aNUiMgEP8iaDJE+PWIIEy6BnnQEGlNuKW774HFwBNIffDIHPIL3845sEmmw5U TGMSgr3zGLTXaUbO3rzvlC3Ct8E+265PP5+h94tUUIZ54QRfE/6cMdF/7q0VeLuACAXK WmoA== 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 a7si13882017eds.485.2020.07.06.10.25.54; Mon, 06 Jul 2020 10:26:17 -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 S1729679AbgGFRZp (ORCPT + 99 others); Mon, 6 Jul 2020 13:25:45 -0400 Received: from foss.arm.com ([217.140.110.172]:58314 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729666AbgGFRZp (ORCPT ); Mon, 6 Jul 2020 13:25:45 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F3030D6E; Mon, 6 Jul 2020 10:25:44 -0700 (PDT) Received: from arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BF14C3F68F; Mon, 6 Jul 2020 10:25:43 -0700 (PDT) Date: Mon, 6 Jul 2020 18:25:41 +0100 From: Dave Martin To: Greg Kroah-Hartman Cc: viro@zeniv.linux.org.uk, mtk.manpages@gmail.com, shuah@kernel.org, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-man@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster Message-ID: <20200706172541.GG10992@arm.com> References: <20200704140250.423345-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200704140250.423345-1-gregkh@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 04, 2020 at 04:02:46PM +0200, Greg Kroah-Hartman wrote: > Here is a tiny new syscall, readfile, that makes it simpler to read > small/medium sized files all in one shot, no need to do open/read/close. > This is especially helpful for tools that poke around in procfs or > sysfs, making a little bit of a less system load than before, especially > as syscall overheads go up over time due to various CPU bugs being > addressed. > > There are 4 patches in this series, the first 3 are against the kernel > tree, adding the syscall logic, wiring up the syscall, and adding some > tests for it. > > The last patch is agains the man-pages project, adding a tiny man page > to try to describe the new syscall. General question, using this series as an illustration only: At the risk of starting a flamewar, why is this needed? Is there a realistic usecase that would get significant benefit from this? A lot of syscalls seem to get added that combine or refactor the functionality of existing syscalls without justifying why this is needed (or even wise). This case feels like a solution, not a primitive, so I wonder if the long-term ABI fragmentation is worth the benefit. I ask because I'd like to get an idea of the policy on what is and is not considered a frivolous ABI extension. (I'm sure a usecase must be in mind, but it isn't mentioned here. Certainly the time it takes top to dump the contents of /proc leaves something to be desired.) Cheers ---Dave