Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp212399pxb; Wed, 23 Mar 2022 16:34:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw52fCn3qdfXGBGIoWSrRXK/VQOcdRSxFB5zALQfOVubEjir3OJRQvSgIEjfRdRgdO8HtF1 X-Received: by 2002:a05:6402:27d0:b0:419:5184:58ae with SMTP id c16-20020a05640227d000b00419518458aemr3415046ede.314.1648078469519; Wed, 23 Mar 2022 16:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648078469; cv=none; d=google.com; s=arc-20160816; b=AvMDpHYblkJvCIkcP4EGoOojDqjLEqrYtb1+N7EHW6AQJ59Qkd2tl3AdlMDfKM+Agt ctwf7K/6VCEVV0EbLQ0q/k6Fjv7uZwYq1UKlD5KwaGerL0spHDoEeJp7ygKFeRcx28Hn uzjpYC7/KIfuB27RzZswWA2DYBMcbbY+nUhYhZURzIp63fFVFs7BDHaaOsZ4L+RfG379 SJKlYSfPfAXwZHw+mvjvlJRSP/HwwkB3OQrBmk3GtOhPm5rkma9mTBBJrIiHeDi7aPUp l7qD5qcPdfdkrrHiUcXLNUY74BAymXByv+SiZAmRG/6OMpPWtSz9GdPdSZGUM0yAaW55 zTCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gaiN2aMMqomxRTLMz4HsPuF8P1fNR+Badc9Br3IVgcw=; b=lEeeDb9U/c6ibTN7HrnrCJKtws98BiT380ag0D7q4NU6+HngRd7YWFpP60TPHsqSZU yuL/yHCZ+bBbIBzQs1EQdewjmI+V1xv1EpKJe3fTbuqv67Gbc20xEN1miTnAWeb3lJgl rsN0okVUZj3QpynnvVNIBBcpfU2qGRpRxhU2Z765i3nOhKle7rUXZiLq07IvUO5Mq3sT xyMTym+MeovfS+BG4swmw8OGz/ccgH7mIvuxJIWPL7RwxnkgRMqhziW4oYkDDrFjr8t6 g9lCjq416qNmixmC47zLQXiefNhMjffIXE9fiuEmZUIfITMWCt+jtV4+m9aiheHfzysP oF4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rwKitDuG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a27-20020a170906369b00b006df76385dd4si13353631ejc.628.2022.03.23.16.34.04; Wed, 23 Mar 2022 16:34:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rwKitDuG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242150AbiCWHSQ (ORCPT + 99 others); Wed, 23 Mar 2022 03:18:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241199AbiCWHSP (ORCPT ); Wed, 23 Mar 2022 03:18:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 206236E8D5; Wed, 23 Mar 2022 00:16:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B4D1B61669; Wed, 23 Mar 2022 07:16:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64E00C340E8; Wed, 23 Mar 2022 07:16:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1648019805; bh=4XC3PLaOISkZfKP5g75IqXqQB7yAdHiRHcfda8BXPx8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rwKitDuGNZc+tcyuJYkRFUevw7fYURBnWE5lmJtdGoU/BdX/M3fhduwnCzh4H1GHJ h2VGcpmpcfCEnpr2dBx3/Hu6p+PKBU4zoWv/Q76AztZ1NuXHNVi7/NK8AMMBMNDXjR v+f7BkVkucR7KewXCg4VJYAWkB9Jz6uGd1ABG230= Date: Wed, 23 Mar 2022 08:16:41 +0100 From: Greg KH To: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-man@vger.kernel.org, linux-security-module@vger.kernel.org, Karel Zak , Ian Kent , David Howells , Linus Torvalds , Al Viro , Christian Brauner , Amir Goldstein , James Bottomley Subject: Re: [RFC PATCH] getvalues(2) prototype Message-ID: References: <20220322192712.709170-1-mszeredi@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220322192712.709170-1-mszeredi@redhat.com> X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 22, 2022 at 08:27:12PM +0100, Miklos Szeredi wrote: > Add a new userspace API that allows getting multiple short values in a > single syscall. > > This would be useful for the following reasons: > > - Calling open/read/close for many small files is inefficient. E.g. on my > desktop invoking lsof(1) results in ~60k open + read + close calls under > /proc and 90% of those are 128 bytes or less. As I found out in testing readfile(): https://lore.kernel.org/r/20200704140250.423345-1-gregkh@linuxfoundation.org microbenchmarks do show a tiny improvement in doing something like this, but that's not a real-world application. Do you have anything real that can use this that shows a speedup? thanks, greg k-h