Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3720035ybt; Sun, 5 Jul 2020 04:47:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGXm2aNHaq3ENWCUh34N8MbpcQVb49oTJvZTqpgXIOocd8csRhnVatOQjHMTt2b5ynCjey X-Received: by 2002:a17:906:f94c:: with SMTP id ld12mr37973084ejb.426.1593949651793; Sun, 05 Jul 2020 04:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593949651; cv=none; d=google.com; s=arc-20160816; b=mKnYSBTWz9GVAvxTA1hRBLBCQJcSrBFy2hLcEXjgU5wefKVIMbldTFEcZXRm6tiMP3 ohDH/xKvkSVFipvWB1f+h3A43pLsIDBLgz5SZNNhwdYMCfwgCCYLQsgZUblR0yBlkz7F uXsYt7ynZgcDdSQhBmuCQsaXx1/PNBRu7e2N1QQr9b8erOn+58f8YQhPKBjU0g05z435 aKi6byFZN8caYnPQi1igvtFbor1T5bcmE1gF6zZFNo/KJz3Lr4CuanePX8QTTW4xkhmS YmB45W1QDZk4hje/LYM7ohVDPWdKGdPjAZdZFBBc5K4FgV5ZIumCAnV1VsAyi5yFrwU1 qi/Q== 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=QV3rvJpFfSLbZqbjs8uXOPh1Eg1qjLcBNsLhi5c+u3w=; b=xygAOqNkMHVsCVu996nfSDODJ9XQ0TpCjxqTXdzvNFs4L+0n3wol49gYt2eShq8TJQ Ue7J8PXeygT4yeXJ0Wmot6lRI0dxoWj/8O8VXctPqSO6Nhl46Wm8doeJFlma4+BjXYGm DD7O2s41NoILb1QYCk57G/JoswefrF1zFItgoa5M/TFr8HBYkTPKtUKSFuUVHpC3vH+h 0CZuFksRn2s2RCyRWoma2Vdh9rX7b9BMa/21mxDzdGWlpGa8Fh3jKiRZ/nTJkttjH7IY XuJMwSL9r4+KtIG8JRdYheArF0BaB7QsSvPrXTbYWqAeZzTLv0wU1muWq/q/OIYqNkp3 qY5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1c7gRkP8; 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 a1si11300113edv.245.2020.07.05.04.47.09; Sun, 05 Jul 2020 04:47:31 -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=1c7gRkP8; 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 S1726804AbgGELrF (ORCPT + 99 others); Sun, 5 Jul 2020 07:47:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:55156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726454AbgGELrE (ORCPT ); Sun, 5 Jul 2020 07:47:04 -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 0D71820723; Sun, 5 Jul 2020 11:47:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593949624; bh=iS+dEu4ZlbKVi61KnZ+UXpVxu0dHrpYBvIX4WV8E5m4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1c7gRkP8UaxVu6l1OoEYgLWfENAntRpmlfRdEJxsaxYkWDJ7glW+16ivqzObROx6Y qNzvkQqgD68TqZIIwsevTFQzBaNCHSWlJqgwmjbLYlVcmsjC6idJBNq6O6VI0aK6NG 89qr1JRxgy2i/92FdgY7lUVvt05/uiLfQoMtLbwQ= Date: Sun, 5 Jul 2020 13:47:06 +0200 From: Greg Kroah-Hartman To: Al Viro Cc: 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: <20200705114706.GA1227487@kroah.com> References: <20200704140250.423345-1-gregkh@linuxfoundation.org> <20200704193040.GC2786714@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200704193040.GC2786714@ZenIV.linux.org.uk> 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 08:30:40PM +0100, Al Viro wrote: > 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. > > Nice series, but you are 3 months late with it... Next AFD, perhaps? Perhaps :) > Seriously, the rationale is bollocks. If the overhead of 2 extra > syscalls is anywhere near the costs of the real work being done by > that thing, we have already lost and the best thing to do is to > throw the system away and start with saner hardware. The real-work the kernel does is almost neglegant compared to the open/close overhead of the syscalls on some platforms today. I'll post benchmarks with the next version of this patch series to hopefully show that. If not, then yeah, this isn't worth it, but it was fun to write. thanks, greg k-h