Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1244094rwb; Wed, 26 Jul 2023 09:30:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlG24XCAWNNSmO4tVqOLTvO57oItzsTKmdKZ7NUdsQOO0yXUa7hYMIwqyGEgmBqNbvB6S4bk X-Received: by 2002:a2e:9a94:0:b0:2b7:1dd:b416 with SMTP id p20-20020a2e9a94000000b002b701ddb416mr2211263lji.15.1690389048821; Wed, 26 Jul 2023 09:30:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690389048; cv=none; d=google.com; s=arc-20160816; b=vOqAr8Lzd65P1YzZ+2nJ0+7Sy3QIeiCT0IzsJXmutD+B5oKVQJX5ascPUagQFEcJSH w4gX0Pea6vC1T08b8sYkP820GguN3MnGKzg4bczWDpdD1N98w+UzJBlI0xDMvcuzHjuz r2JQxGR0AWSpJ0xMH5cEQFL70ub7PGb32mcdxY9q6sQIXnlQbmye/zDKzGIqTO6tH1Ak 81uOL6rYnvNcd5bVtZiMxi+HlFbG0amX/Xb3B4Qu1QUeSS82MY+ln7UQM/eqq7jZ0VWo +ByjRBSL5zA9mvHWtwPuiqqtXCNUXPFTo3ACRq1izP3UHlHfyBr2XtDP1jk6D+ih4ljZ nu8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=ENp8t2alD9uqWSc+lVmb+ztvUQXJv9bHqkir1OYXiZQ=; fh=qMbgjxMLBYTZECR5VTDHeWTPIJJJGf0Or94ptAjwdDE=; b=fQBUm1r+49XhRrqczdsuusxTpxpWvmdQOT5wLKnlSZ5Xb4Q8w0f1kwbvYsVzraLcVx oBNrqakYCqddm+50SYEMsjaj9ZSPPhH0NmA5RvD8pZAeGDJhu3kJAOIrdmEY660ThcSV dfna7smZ9MPpFKPHpvRfaiSzDzm8wWZT+tNRX1YeViJrjCJ89gbw6ToeQn3O7mmhaG85 LlRF0/34+97wNSaWSb4hcWfcEfdyi4wcRGY6zlKBgUiLvtH6uUp2gvTcDZ5O0Hgfgu0U 5jMe1EuNVoGC/btJGKoYVpPEba6+qcqYsAluv1VXPoRw1Aq26zr5IshRycAfl/zUHrzx JT7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Zktt9cmf; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g24-20020a170906395800b0098e370bdb01si9201202eje.1052.2023.07.26.09.30.23; Wed, 26 Jul 2023 09:30:48 -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=@infradead.org header.s=bombadil.20210309 header.b=Zktt9cmf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231592AbjGZPT0 (ORCPT + 99 others); Wed, 26 Jul 2023 11:19:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231717AbjGZPTY (ORCPT ); Wed, 26 Jul 2023 11:19:24 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EFDE26AE; Wed, 26 Jul 2023 08:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Cc:Content-ID:Content-Description; bh=ENp8t2alD9uqWSc+lVmb+ztvUQXJv9bHqkir1OYXiZQ=; b=Zktt9cmfUVUjC5iN3Pf6hJxBWZ pONXfD/vj7s9mjqgRHd1uXzmF89SyNsi4jKE3kGyIPy2Lbr8lZGBx94kPGgg6cXhoybPp93Gpa0Hp dSO4VFfWrDuOkjMJc1bQmD1hJF53UyBtA+rRAsukRUT2zNXoAkzVpFGMuQjyc3n5MM4dH7cB8Vs2G lEpOmMnrPw3Dp2zj2Bb890sg2PECXXfIWKFShQKbR66J5FLB31H4NGMpxkO7+Bv6CyxHQ+CbDAGB6 hlr3dqIHeOKPBbn4BZU7KQd7Lr2UN6I4auxZ1OlMsPzF2qtGu4KhY0ezyP5xn+IPsrLDx1toevPIU +GlVwSYA==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qOgIB-00ApOw-1k; Wed, 26 Jul 2023 15:19:11 +0000 Message-ID: Date: Wed, 26 Jul 2023 08:19:09 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] fuse: enable larger read buffers for readdir. Content-Language: en-US To: Jaco Kroon , Miklos Szeredi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230726105953.843-1-jaco@uls.co.za> From: Randy Dunlap In-Reply-To: <20230726105953.843-1-jaco@uls.co.za> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 7/26/23 03:59, Jaco Kroon wrote: > +config FUSE_READDIR_ORDER > + int > + range 0 5 > + default 5 > + help > + readdir performance varies greatly depending on the size of the read. > + Larger buffers results in larger reads, thus fewer reads and higher > + performance in return. > + > + You may want to reduce this value on seriously constrained memory > + systems where 128KiB (assuming 4KiB pages) cache pages is not ideal. > + > + This value reprents the order of the number of pages to allocate (ie, represents (i.e., > + the shift value). A value of 0 is thus 1 page (4KiB) where 5 is 32 > + pages (128KiB). -- ~Randy