Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp420857iog; Fri, 17 Jun 2022 06:11:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjrIJHtVYuIsmS9hW7JrNPL6ocZdXIQ/Fuw5u32QOS898s5Sx4n6LnwHaiPKun2slIqcgw X-Received: by 2002:a17:907:d8d:b0:711:d82f:5d33 with SMTP id go13-20020a1709070d8d00b00711d82f5d33mr9403242ejc.595.1655471486938; Fri, 17 Jun 2022 06:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655471486; cv=none; d=google.com; s=arc-20160816; b=rUU57lKLC2/6QSSwc4VbAhR4DVo9FRUNrLjdht8wr1HfW4Hanu4dFbmO8G3U0Ua52a yvZlV8XtdcIE2ZXyTqEg4ZMrb648Ju2WcIubAnyFlLFNIVsVjY323VEzXeYHIqDF5+sL qWvKR4lgqIy87C9lBTIlqZtGHNjtbyftlrPiSEFme6J23nWppa2/uVkLiP3LqQA2vUYU iFb+a2G5kcivdXYETLRtHzUjba2rl4TVCwIGSadZpstCjJQof8gOpO1ADPf5gd2DTxJ7 ZLGuQqJAF/NVFNwyYKSlVJIMPfyssae9fqobFgcse24C7AO4dkRNdF6/yzeAKbIMY9yl /feQ== 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=KdKMbRmYxGIRzFwzXCrDOD1Iihy0w1EPtro7jghx6ig=; b=iV/GEOhEpOO96saZCVEIxUalR2oAsFBsqcW8VGUK/ll4qC57SMYHtri+XdaBHBKjGC Q/hNWxy1z6idX1pDT5SN1uYSrr54i74AszzaNRU4ALmYOGWpow7A7FHMI02aAvyvXlkl e7aWRcsA4KeZCVUA4h/ASD4l802vilM15x0cOOTDFIVQXSZXwHsXPboO+ySH8lk8DLBJ Hp0ipY5YfGG+Nw0dJOK0N2cnOlcK05/FRsbM0ibTPoGM+WmxRFpHmS1vkeIp52aWbN+H 8GNJyyQGoNT9dYIjd8ikDJJMuY1nr0WFbY0RhM3Xtg7mt/AefwHvFEUVH7vOfl8SHZiQ ceJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="lWl/eEx1"; 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 l6-20020aa7c306000000b0042b3cf57cc9si2271254edq.71.2022.06.17.06.10.58; Fri, 17 Jun 2022 06:11:26 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="lWl/eEx1"; 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 S229728AbiFQMoO (ORCPT + 99 others); Fri, 17 Jun 2022 08:44:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbiFQMoN (ORCPT ); Fri, 17 Jun 2022 08:44:13 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3AE71D302 for ; Fri, 17 Jun 2022 05:44:10 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id es26so4342496edb.4 for ; Fri, 17 Jun 2022 05:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KdKMbRmYxGIRzFwzXCrDOD1Iihy0w1EPtro7jghx6ig=; b=lWl/eEx1oi+iUvbfmPEtpnL6l1bDL5L+6kDYhaJrlridmjgcJgND+D6HpsPrGj0fOX FC1hq48jQOsI0vbQ+ug0Y9gXytTIa1rB8fgt1TDdWRijQqB1B4BP1Vbx6jfm5skCg4pV LUYjMsC9IhxZCJ13YQoBm7dpD0cccTJ6VmHuA= 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=KdKMbRmYxGIRzFwzXCrDOD1Iihy0w1EPtro7jghx6ig=; b=RGVnMob27Ry3H70Yf7a0q9vF2ajxmWhF2vjw03cqe4Xmlb2h1SCFhLcdhgk1qGWLEo 7hAZpL9QXBnKicv0ah4HKG89/sWZDNEFA6+KkhImqJAXZ3LiVkQZ57+yHN8imejSHqM3 16xk5yNjLV5DypAB9flrRL0d7SlWQYJvlFzHRTD/6Y4eALHm2idL5PzbRxlgZpVb0JP9 tmccT81a+S5LuZNQDkV96f0pZAdJTvK/dzJJoEsV+eTKzegCEkExHtiWUsxV9f5SBYZ8 VRMQhAye3ZBiZLOGVZNdJpwO1TOtlX6d/UXrG9HIGyxHtOgLFP+Nyr20x4l4D+ppMYqv E0SA== X-Gm-Message-State: AJIora/Wima0VBzqOKBanMIpLTcT+LvxEBi2eoOTQJrk7a9zAcFwfnVK PjGEWNGWQHGvrlaOuW8/i8qYuUf0fMlOSa1yJgYlHg== X-Received: by 2002:a05:6402:5212:b0:42e:2fa:41a7 with SMTP id s18-20020a056402521200b0042e02fa41a7mr12205874edd.22.1655469849402; Fri, 17 Jun 2022 05:44:09 -0700 (PDT) MIME-Version: 1.0 References: <20220617071027.6569-1-dharamhans87@gmail.com> <20220617071027.6569-2-dharamhans87@gmail.com> <08d11895-cc40-43da-0437-09d3a831b27b@fastmail.fm> In-Reply-To: <08d11895-cc40-43da-0437-09d3a831b27b@fastmail.fm> From: Miklos Szeredi Date: Fri, 17 Jun 2022 14:43:58 +0200 Message-ID: Subject: Re: [PATCH v5 1/1] Allow non-extending parallel direct writes on the same file. To: Bernd Schubert Cc: Dharmendra Singh , Vivek Goyal , linux-fsdevel@vger.kernel.org, fuse-devel , linux-kernel@vger.kernel.org, Bernd Schubert , Dharmendra Singh Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, 17 Jun 2022 at 11:25, Bernd Schubert wrote: > > Hi Miklos, > > On 6/17/22 09:36, Miklos Szeredi wrote: > > On Fri, 17 Jun 2022 at 09:10, Dharmendra Singh wrote: > > > >> This patch relaxes the exclusive lock for direct non-extending writes > >> only. File size extending writes might not need the lock either, > >> but we are not entirely sure if there is a risk to introduce any > >> kind of regression. Furthermore, benchmarking with fio does not > >> show a difference between patch versions that take on file size > >> extension a) an exclusive lock and b) a shared lock. > > > > I'm okay with this, but ISTR Bernd noted a real-life scenario where > > this is not sufficient. Maybe that should be mentioned in the patch > > header? > > > the above comment is actually directly from me. > > We didn't check if fio extends the file before the runs, but even if it > would, my current thinking is that before we serialized n-threads, now > we have an alternation of > - "parallel n-1 threads running" + 1 waiting thread > - "blocked n-1 threads" + 1 running > > I think if we will come back anyway, if we should continue to see slow > IO with MPIIO. Right now we want to get our patches merged first and > then will create an updated module for RHEL8 (+derivatives) customers. > Our benchmark machines are also running plain RHEL8 kernels - without > back porting the modules first we don' know yet what we will be the > actual impact to things like io500. > > Shall we still extend the commit message or are we good to go? Well, it would be nice to see the real workload on the backported patch. Not just because it would tell us if this makes sense in the first place, but also to have additional testing. Thanks, Miklos