From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: from tb-ob20.topicbox.com (tb-ob20.topicbox.com [173.228.157.66]) by inbox.vuxu.org (Postfix) with ESMTP id C9F3621471 for ; Sun, 7 Apr 2024 03:36:56 +0200 (CEST) Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob20.topicbox.com (Postfix) with ESMTP id 8780537723 for ; Sat, 6 Apr 2024 21:36:54 -0400 (EDT) (envelope-from bounce.mM5f33ea51d2130dafe5918a21.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 37F1AFDC187; Sat, 6 Apr 2024 21:36:54 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=to:subject :message-id:references:in-reply-to:date:mime-version :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:from:list-unsubscribe; s= dkim-1; t=1712453814; x=1712540214; bh=+rmipI9nqLI1ZUHh+Z3lwhhy2 vCGb8tKa/TllS8H8XQ=; b=MwtgXiHHVgS28wQuwuQdFImAwpNmtu88vrf5YeGmg 84EtMTeqVyeiNkgX0Gic3LYYE7OG36R2NTp6Nuqd9LAK240J1qNGIeHMSdLa84Pw nkpSGPQx2Dm/gmPrmtO1BO4DzhhlRwf8hxxtQEApKzxJcaX++kaQphIyoFanCBkQ TI= To: 9fans <9fans@9fans.net> Subject: Re: [9fans] openat() Message-Id: <17124538090.BD80ABf5D.12467@composer.9fans.topicbox.com> References: <17123537830.EbFe44.28920@composer.9fans.topicbox.com> <17123735270.469FFd7.853634@composer.9fans.topicbox.com> <17124314640.ceA1.70581@composer.9fans.topicbox.com> <17124367090.cDf02.77195@composer.9fans.topicbox.com> In-Reply-To: <17124367090.cDf02.77195@composer.9fans.topicbox.com> Date: Sat, 6 Apr 2024 21:36:49 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=17124538091.d13fAB50c.12467 Content-Transfer-Encoding: 7bit Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 4d72426c-f47f-11ee-842f-876641decc0b Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UNjc1ZTczN2U3NzZlNWE5Yy1NNWYzM2VhNTFkMjEzMGRhZmU1OTE4?= =?UTF-8?B?YTIxPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> From: "Alyssa M via 9fans" <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M5f33ea51d2130dafe5918a21:1:TeAPGbZZrE__TjqyGweUzM2ta1_3R1NDMLWUONN7TiE --17124538091.d13fAB50c.12467 Date: Sat, 6 Apr 2024 21:36:49 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Well I got curious, and wrote a test program for my Linux RPi:=20 Doing the equivalent of what du(1) does (a recursive tree walk statting eve= ry file) seemed to be about 15% faster with openat/fstatat than with open/l= stat. This was on a local drive (SD card). Over 9p to my Plan 9 RPi from Linux it appeared to make no measurable diffe= rence at all (though I don't know whether v9fs can take advantage of the *a= t capability). Maybe there's some use case where it makes a more dramatic difference. My t= ests were not very scientific. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T675e737e776e5a9c-M5f33e= a51d2130dafe5918a21 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --17124538091.d13fAB50c.12467 Date: Sat, 6 Apr 2024 21:36:49 -0400 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Well I got curious, and wrote a test program f= or my Linux RPi:
Doing the equivalent of what du(1) does (= a recursive tree walk statting every file) seemed to be about 15% faster wi= th openat/fstatat than with open/lstat. This was on a local drive (SD card)= .
Over 9p to my Plan 9 RPi from Linux it appeared to make no meas= urable difference at all (though I don't know whether v9fs can take adv= antage of the *at capability).
Maybe there's some use c= ase where it makes a more dramatic difference. My tests were not very scien= tific.
= --17124538091.d13fAB50c.12467--