Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3562669ioa; Tue, 26 Apr 2022 06:09:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFHJRh4HA7rzMNuz66KQqjqCdxMkM9M5JaW9b7U52WFN09XcKZQwiy2qGZm5SIDfeV8X9R X-Received: by 2002:a17:906:58c7:b0:6e8:3ceb:58e7 with SMTP id e7-20020a17090658c700b006e83ceb58e7mr21678942ejs.384.1650978576484; Tue, 26 Apr 2022 06:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650978576; cv=none; d=google.com; s=arc-20160816; b=r2hvCvgwXyH04p5fMLYKoI67WfNaOQjTAapImMtORWxKCZ6IwC4u6MTgH9APSYWtC6 iVa7pTadW8U71lnMq9/v3895hC0c3wRLOnHqc06trqxNWmeUzwIm+5+Qbjx5y+pzEljl xZvGILWIxhWRadsfqRy/NalhO9MH8czgfpW9hsIjkn11WeIyy40PLLpYyYMeWKEA/g7B DRcQVvvJogEURz7DB/Z+fzZIoUHTT8ljIhSs0QjJjL8QiLxGynpAU/Yyd4XbBgt4zykv O+BSPtwAHtqWQXAmv+nUsr6dNOsmj+jGdG6nlrd5PQQ9odmDbGbmMC4Hp7YAcjap1W63 IN7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4r9dpEEZxQjLunjtmysIuwfLl8tWCCfm3ehoce9xSWg=; b=ggs1DuNFL0M3uCDuS/4HaM/Ki1J2OL0rRdAUXRihHEsIVoh+86+pqawhAolxM0dMws tbC0+noArWBh2VOAJKdqHBgRIEyXkPjOOrHeGzR6bf+t8dvC4k2CB2kW4d/Gqfip35Ts g+XIClSJ7gM1XPOwg4ZAYU/rjNforGN5NZ98NKPF3PqoJWioNkZzhzzcmJqhVrGx4yXR nGibWqRv1El99KK7vpLZZDPP8tjBZbXgtxnSxoyMWUDr0b3ZTTp/BtVb1qVhiH8igCQe FVUVhkfcNfuEPmvcIwYExXz5qvIyLHCXjr3ERmF+Tz91oO9q7USqykYYOZEAZhzFJye4 Hm1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dneg.com header.s=google header.b=ECxkDG1g; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dneg.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a170906184100b006df76385ea2si16237212eje.834.2022.04.26.06.08.57; Tue, 26 Apr 2022 06:09:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@dneg.com header.s=google header.b=ECxkDG1g; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dneg.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241345AbiDZMdG (ORCPT + 99 others); Tue, 26 Apr 2022 08:33:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234942AbiDZMdF (ORCPT ); Tue, 26 Apr 2022 08:33:05 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF8DA88B24 for ; Tue, 26 Apr 2022 05:29:57 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id m20so15002836ejj.10 for ; Tue, 26 Apr 2022 05:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dneg.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4r9dpEEZxQjLunjtmysIuwfLl8tWCCfm3ehoce9xSWg=; b=ECxkDG1geDZGMIG6VRHARE9+Aqi2ANvE2ZQBFYtU7zBDX27zV2NNs7YgC8+d/zTgd3 QKsAVr2cFmXZWVhI7UHuG82ZgSbgp7g1piudvKKb32N8kvJclGdgc7ls1lTIHAbDWfGo cbQuajYedDr1VqQKKPkCc8t6zL6CXypq+wvlQut3DdlNIwhcxPQxfFU7ku0IJOeE6ogi kwmy30+KQM3ofQaZ8kK6Tl9v4nYKc0qCdCASI6JW84cLWGyR4uX7sac4Po4f8zoF1Z6l siPHrRteGqdrGgA7sYnRMKaPnLnyd04oN/sFq4feGwZkGklj5N/DMcsb2qr5sGDPafP3 R8dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4r9dpEEZxQjLunjtmysIuwfLl8tWCCfm3ehoce9xSWg=; b=mgk8MH41HzEm6uIJ+ZpsM9tT37kV5xqzPe62HDAViwJL1cP9JMETJMg3uMPDuxXQxt iL49yt2KhdjumKahLBglnruPepBUE6j3DG4j9+J3QaQfyFuLFLIZ4M71f/naSm34XDcm oVv/x+3ZVi7krtNAIKv/ehu/2HuQcxPxvsDdCQ1Ay9QwvE8HkX35zPzlh0ZKsmQMeHwt gDaLgu3eIRDg2AXIP/QUbD+sBApJSfK+BWn1lSIF+ZDxy7+UZvMh0cYVojW41lBE1erE mUigBoh3OoCCnJKn2hOf1oi/34vQSkNkrVAjuz5YzqfOGHj0VeAwQv7qaPm7YTjkbruA MLLw== X-Gm-Message-State: AOAM532jfmO6KC6ELelvJyAukjBJC8zNJB1/8JvZSj9l3NpZz85ZEtPd RvYLnTxUwVM5QsZRuRcmUv1S604RmuW2DzDFN+BMVQ== X-Received: by 2002:a17:907:6d82:b0:6ef:f56a:85a4 with SMTP id sb2-20020a1709076d8200b006eff56a85a4mr21599229ejc.142.1650976196367; Tue, 26 Apr 2022 05:29:56 -0700 (PDT) MIME-Version: 1.0 References: <20220126025722.GD17638@fieldses.org> <20220211155949.GA4941@fieldses.org> <164517040900.10228.8956772146017892417@noble.neil.brown.name> <20220425132232.GA24825@fieldses.org> <20220425160236.GB24825@fieldses.org> <165093700757.1648.16863178337904278508@noble.neil.brown.name> In-Reply-To: <165093700757.1648.16863178337904278508@noble.neil.brown.name> From: Daire Byrne Date: Tue, 26 Apr 2022 13:29:20 +0100 Message-ID: Subject: Re: parallel file create rates (+high latency) To: NeilBrown Cc: "J. Bruce Fields" , Patrick Goetz , linux-nfs Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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-nfs@vger.kernel.org On Tue, 26 Apr 2022 at 02:36, NeilBrown wrote: > > On Tue, 26 Apr 2022, Daire Byrne wrote: > > > > I'll stare at fs/nfsd/vfs.c for a bit but I probably lack the > > expertise to make it work. > > Staring at code is good for the soul .... but I'll try to schedule time > to work on this patch again - make it work from nfsd and also make it > handle rename. Yea, I stared at it for quite a while this morning and no amount of coffee was going to help me figure out how best to proceed. If you are able to update this for nfsd then I'll be eternally grateful and do my best to test it under load in an effort to get it all merged. The community here has been so good to us over the last couple of years and it is very much appreciated. It has helped us deliver (oscar winning) movies! To give some brief context as to why this is useful to us (for anyone interested), we utilise NFS re-export extensively to run our batch jobs (movie frame renders) in various remote DCs. In combination with fscache and long term attribute caching, this works great for exposing our (read often) onprem storage to the remote DCs (with varying latencies). But batch jobs have a tendency to start related tasks on many clients at the same time with their results or logs being written to big common directories. And by writing through the re-export server, we often hit this limitation with parallel file creates which slows everything down. We have tried to avoid large directories where possible, but it's hard to catch and fix all the cases. Using an NFS re-export server works 95% of the time for our workloads (after much help from this community), so we are just trying to pick away at the last 5% of edge cases. One of the disadvantages of the re-export server in the middle, is that we lose some of the natural parallelism that directly connected clients would otherwise have. And this becomes very noticeable once the latency goes above 20ms. Cheers, Daire > > It's also not entirely clear that this parallel creates RFC patch will > > ever make it into mainline? > > I hope it will eventually, but I have no idea when that might be. > > Thanks for your continued interest, > NeilBrown