Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4709505rdb; Tue, 12 Dec 2023 07:18:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwyFmZWR+3sDspMwTDPeU6CmnQnAIr46uh8Jblm6+DUohdmMPFCoQjWqQFNC9oRbC1sSx1 X-Received: by 2002:a17:902:c406:b0:1d0:cf22:c6ca with SMTP id k6-20020a170902c40600b001d0cf22c6camr3710791plk.52.1702394331287; Tue, 12 Dec 2023 07:18:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702394331; cv=none; d=google.com; s=arc-20160816; b=GLDQfhdliZBnKC5ja7iw8rwUY6jgVol/8rCNx++PpnAtc3wXvSm8nKIpydHzC8zAth DwRnq5NPc1wNLfUZpk5E5vlIWnQgj0Cl56KKga98w9cZupZ++sOKC8nUF0CPMq7uSrA8 LG8gLU02dOjewdpJVBuWqxmCCJFHhXkb2UG7wpzJHCsavUPMLM/YOndbLwEbBzCddVjv eIvxXFsJuUfmbxiIMcEJwoWDWkmTin4K9k8/Cj0CATxfINOj8xBqQmgSa6YFS9BQ1QMa vW9ZiekAvCRC5fphUmozI8LA1YG+TjGoDQwEZf5dbOX9d6rRt8M3a3DbkriloZQYHaDR zakQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DtgEPyOZ4y0NfYNH2YIubU5zH6WNkZa4uw9X/YrTYR4=; fh=+GDdqAAgwUyXFt2hNQbwpdYZsLQfh6Tk9NB92osy4nY=; b=ZfOLbfyd+joBnXYqIt8vsSzb5OpG9lpoi8se4eUH65Kp5zFSjO9VACgPmEj5eqqN/a QPcUNe3ZoXg/9JwBdIaJWRTZzS/OnZRCc/ak86dTcwvvBCxjtBy8vPl4Y99B2PlFq6cv zukh89YLWobAR98WEJ+mqblkxNAjk8dGIVdy5IKLtZbgrXQf/1X6/21NCEb5xoe64Rm8 UtCvThX5iPrcrKSHXVzP2/GenGLcE4Hnx5Y+ngvKLu1d6mQn8sw8yncCHrtqCFZtTihD HhHWVeeVqnnU2JtzVE9WV8Z1AntpdSq0EXAtdEhmccm8j/SVmrKD6UG0KcFey6kvmudN /qEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=Q5sj5B3t; spf=pass (google.com: domain of linux-ext4+bounces-408-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y8-20020a17090322c800b001d0b789d7c4si8140834plg.515.2023.12.12.07.18.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 07:18:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-408-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=Q5sj5B3t; spf=pass (google.com: domain of linux-ext4+bounces-408-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-408-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F1429281B72 for ; Tue, 12 Dec 2023 15:18:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43BAA75427; Tue, 12 Dec 2023 15:18:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu header.b="Q5sj5B3t" X-Original-To: linux-ext4@vger.kernel.org Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65871E9 for ; Tue, 12 Dec 2023 07:18:42 -0800 (PST) Received: from cwcc.thunk.org (pool-173-48-124-235.bstnma.fios.verizon.net [173.48.124.235]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 3BCFGD14031942 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Dec 2023 10:16:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1702394176; bh=DtgEPyOZ4y0NfYNH2YIubU5zH6WNkZa4uw9X/YrTYR4=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=Q5sj5B3tLr9igBweNwduA6PZT0jYBpf0QnbgLveixW6seItI++ZBFGLTSfMerXbHS p3Njc97PdcRGIf4TKVEIgxHBmronQjNXJXkrLeyzAbdW7GV1yA6oV2+VPV1gK1ydCA plr3+UqY8u6qAlN8rPtYydnRcIslVMIPw7x6+DKRYXPcipRYnF6o/Q/c+IcjyVQ1nz xX/twG+yBdGeDtIRnBvYz8ENuccCOYcaLXXX4fUlprrqCi9h59tRVipe7VYumU3kvK SwIQLaIYDR3Ok4/grND9PhvZx+JGOPReXUzLdYhTXSVb3FEptumR75NlyxpN2qeOgl 1tSRfCDMZ1iaQ== Received: by cwcc.thunk.org (Postfix, from userid 15806) id A517515C1422; Tue, 12 Dec 2023 10:16:13 -0500 (EST) Date: Tue, 12 Dec 2023 10:16:13 -0500 From: "Theodore Ts'o" To: Christoph Hellwig Cc: John Garry , Ojaswin Mujoo , linux-ext4@vger.kernel.org, Ritesh Harjani , linux-kernel@vger.kernel.org, "Darrick J . Wong" , linux-block@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, dchinner@redhat.com Subject: Re: [RFC 0/7] ext4: Allocator changes for atomic write support with DIO Message-ID: <20231212151613.GA142380@mit.edu> References: <8c06c139-f994-442b-925e-e177ef2c5adb@oracle.com> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Dec 12, 2023 at 05:10:42AM -0800, Christoph Hellwig wrote: > On Tue, Dec 12, 2023 at 07:46:51AM +0000, John Garry wrote: > > It is assumed that the user will fallocate/dd the complete file before > > issuing atomic writes, and we will have extent alignment and length as > > required. > > I don't think that's a long time maintainable usage model. For databases that are trying to use this to significantly improve their performance by eliminating double writes, the allocation and writes are being done by a single process. So for *that* use case, it is quite maintainable. Cheers, - Ted