Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp244036iog; Fri, 17 Jun 2022 02:49:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uHUINyraDlHY8RHN4Vd/qUo+hJMLndXuaLVPxtKQSDiEC/0/E0GttFzywxo1Z2eOeC1ASY X-Received: by 2002:a17:902:b218:b0:168:de55:dfba with SMTP id t24-20020a170902b21800b00168de55dfbamr8675120plr.134.1655459353345; Fri, 17 Jun 2022 02:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655459353; cv=none; d=google.com; s=arc-20160816; b=xT08OivvIB8Y7ze5/Lhd6WWDNH+ExOAY8w1kSSWUqcJAM7Ht9HHPgKpeFNCb0sIIfS qsGP3hdxudsYtkL+kHg7/y25YSEQEFhH1DvsCaJZmifRXosHWW1rOoD9+prOt+nF9opC drsPvhR6xswt0heN/miPZBt0O243wIBjvwF1PaCE/De0iaum23wvy6wnQkZ3X/NHg2+c ef+8Bt1PHOgiiL9YyWgiDDtGnO3UP+jUp6eR+Sfp4iHurNqXfUhjirxW2P/vpwJ1LI/W Gmh8W3FUwJ2VYftgVjoCvS4Wpa6auxAPfKSK7C3J/UUnSU3JfGSwIM8TIuA+bpcMaLo4 bTZg== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:feedback-id:dkim-signature:dkim-signature; bh=l74iYgf36a4xgRUrlzEPDCKdeTCQISXrTwEyESJRvcY=; b=GX167LaIsabO+remSEfNTl8NaN9LoVdSRjC07Y2fRnbY/1gtRgN6XWXL+QIAGJMOap KEnyL8j7v3e5cZDTOwU2grlXW34sqAMMfjsVCeisI48mSkmCvf5glgo2YqqN/eI/yrT9 2sLAbU5Q49bmzMloVpLXWaRpgFxEUGn34lbvaz+fyvgjQMwKRWEWEFVcKdUX8Tgl7dpA HfNK0VPps4Za/R+p/1m7d3IqBZpKuzWDe9oo/Lkj2NO0QqaUSIbOwR2HylhTvdck7Gek U32TRrIqYA3oq/xT0JsDGj1pY8zX3wvM1BUnC2aSKFHFK8kW0eMz/LTQDZK/hfYDIkSX knAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm2 header.b="G/LNcEN/"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=gUkw3ooq; 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=fastmail.fm Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a626305000000b005189da5244csi5112787pfb.330.2022.06.17.02.48.59; Fri, 17 Jun 2022 02:49:13 -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=@fastmail.fm header.s=fm2 header.b="G/LNcEN/"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=gUkw3ooq; 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=fastmail.fm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381332AbiFQJZ7 (ORCPT + 99 others); Fri, 17 Jun 2022 05:25:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380514AbiFQJZ5 (ORCPT ); Fri, 17 Jun 2022 05:25:57 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B130160BA8; Fri, 17 Jun 2022 02:25:55 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 144315C004E; Fri, 17 Jun 2022 05:25:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 17 Jun 2022 05:25:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1655457953; x= 1655544353; bh=l74iYgf36a4xgRUrlzEPDCKdeTCQISXrTwEyESJRvcY=; b=G /LNcEN/FNiY5Ka9UxRHujRlTljLtbdRddZQzd/0967f5uMOoPzsJTL712iS35NEi fs3fRjD3WFyxrZ44gZbMpG7owZMvNvMbX2+UK8Imnpn6NcnVBoWEnRfoJ9xxCWay b444yIAoZeQd3k1uh3rK0QaC0L0CkpLrcsFrW7QBRkpzNmsj4IY9iNEuw+5hUg0A G3cUEaIV3F7VwnyjfS0lfQCCj2hbztc9IrjKD8AEMcqwScO4L2ojZS4LYOut+E7/ PDic9YevRbtHO+g4asNFu25wRwuL5PwYghqP9MMxW3y/dbcIT+m1aTy3+0sg4uVM AHHbHDn7bbCyBmFZHF9+A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1655457953; x= 1655544353; bh=l74iYgf36a4xgRUrlzEPDCKdeTCQISXrTwEyESJRvcY=; b=g Ukw3ooq8XraMpYmwXtmtGlVJZ7wQeUmT8cjAS+wJsFDomIVrLspGTGR6oyesYCKF +zg4+kzyC/u9bV/JaqFp3RnkrExajp16pRCdBsU6tanbjYQF1XHoFMJYUPoWKyWL Pav/qT6uSqRagHHKtcZwtvZOvSGkCXDM6gTpu6aHZpeEg10JQlkGdpE6VjKixkzO DqcPLbbbi3OREU48LjZEBg/6sp+1MoV5stxOxM00580f7Xh4cun3oOi10XE2MARH LAYi9O+eg4tJThfnnDHc9g+9pKvSvRA9EAiLXl01CgJDB5Am/6p2gT98QfJx3b8n N2U7oh0Ew94ugZ0o3vmKA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddvhedgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeeuvghr nhguucfutghhuhgsvghrthcuoegsvghrnhgurdhstghhuhgsvghrthesfhgrshhtmhgrih hlrdhfmheqnecuggftrfgrthhtvghrnhepkeehveekleekkeejhfehgeeftdffuddujeej ieehheduueelleeghfeukeefvedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepsggvrhhnugdrshgthhhusggvrhhtsehfrghsthhmrghilhdr fhhm X-ME-Proxy: Feedback-ID: id8a24192:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 17 Jun 2022 05:25:51 -0400 (EDT) Message-ID: <08d11895-cc40-43da-0437-09d3a831b27b@fastmail.fm> Date: Fri, 17 Jun 2022 11:25:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v5 1/1] Allow non-extending parallel direct writes on the same file. Content-Language: en-US To: Miklos Szeredi , Dharmendra Singh Cc: Vivek Goyal , linux-fsdevel@vger.kernel.org, fuse-devel , linux-kernel@vger.kernel.org, Bernd Schubert , Dharmendra Singh References: <20220617071027.6569-1-dharamhans87@gmail.com> <20220617071027.6569-2-dharamhans87@gmail.com> From: Bernd Schubert In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, 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 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? Thanks, Bernd