Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp80566rdh; Tue, 13 Feb 2024 09:59:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX1q0rA4tBP6YTBGWia1rUcAQeF64aBZLIYA4X96iOkJ75ToLZCJHgFHCZh2YqXSJrd7wcEPswQ0JK293vq+ruB7O5P7gjGLuUp5MZGuQ== X-Google-Smtp-Source: AGHT+IHbfEuDw5oKmQuWZX0Z2aAEN572WEpd/1aIVY7T7pCRFFe0BZKqjmzAF2QNEZbRUA27hyrF X-Received: by 2002:a05:622a:82:b0:42d:344d:9b with SMTP id o2-20020a05622a008200b0042d344d009bmr152272qtw.10.1707847177210; Tue, 13 Feb 2024 09:59:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707847177; cv=pass; d=google.com; s=arc-20160816; b=xHxrnCZuFKy0ule7sIPyN49Ka+U9m3SCE+w0yhE+VxCcAtQ4K75je2mPOAo8/oYqoR EoPei1cD467+hFzI+JfthX7vDThr6noHoWD/5gfpGjjuWcoasJfVAEhJdVKYvbiE5E0G BWHznQyzyiXjP1QPhZbHWiyZRtDxHkPuABvXVgCVF5shXk59bjovZVIZCwVCHil7v54R QkwIbCn94UPUNMxyFJxR5/bEffCGJ1+8MmddRu4hvXrUarPK5UzeppypVfICpCM5Iopq Pm5rjV6oi9hIfQ4FCqjIx9zo3DDvVeguHETG66KBvarQPtHX/LKgVIoShueU97wLfyYr c/5A== ARC-Message-Signature: i=2; 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=6UhmTGD4Y62Kx0DJ/2dkTd23NxWdJCdIvFjPwIocWsA=; fh=UAgZTWQ4tsPrCZsGun/GaI5NLqq5AIZo6VlRWHo0CTk=; b=sNQrU7ohRPBhPeXFET8jfbSychD6GnRHxZMP9TRXEjjWC0TbZNascASl11ch3HSQWg 1VizXI1PO6tD1AHjY2XNaT1f5P++LpLfPqqf2Odd4Q0U3wsbI5LI10GiPdRAEDRZahR+ nmXYULOxeTJa/edQYleLmPpk5Qe6DALjNXG20Jj+P8Hd2jW05MwhHyIE27BcaPGtgKtl uFyyc2R0cj7uXuxErQD4cgirob5yRMk4A6L5877qgHgDFnoJmOF1TwHPnCwTG2b5r7G+ hocEE0AyznKN6qjYv/lKP2/AE57aDe11cyHHA42fUJ7L/p/VRED/GVtXd8eqeJaixF2M ZY1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XBVWRNkt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-64038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVN9bUb5itghZZCSNqN08nf0GFtSHsuvkYk9lNQTyrVAcJzaGcfiE2mQ2VfQ3jlpa1Nix7TCH3NGEhky0k36SbjXY+SLUwLPR3h1/zNOQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l16-20020ac84a90000000b0042c31f3921fsi3155488qtq.119.2024.02.13.09.59.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 09:59:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XBVWRNkt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-64038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F1B7A1C21895 for ; Tue, 13 Feb 2024 17:59:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2CCE61672; Tue, 13 Feb 2024 17:55:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XBVWRNkt" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5B1C60B86; Tue, 13 Feb 2024 17:55:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707846950; cv=none; b=k42jZgOCiwYXCgsmiYiyvNeFJ0wYpFGHzLdOG7GL33WjXAKM1SCugkFPog7GLp/SmtR+wY0dLwkK41dq1ncBBEbp8Kef3UF5MMGW1YhOgIcU9sxdR3IlVz4MUdP1r6PM46/SkdvOPXI/oQTcAykLA+sjMWukDptWml2nmplYtow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707846950; c=relaxed/simple; bh=FCSg3u/T4vpEvkECtTnEyCSbmHI+EtLfUbeUYTkp5d4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MNa4IRM7EAmD6gY5NQWhp9skanH3RQNdTRAgK8KTF03c9HxUuUS5/IIMDPxqDfsWua0rpb5/5bW+2hlPihnHq/eSlT1fcFJ0IZD+Xqp86qptPrlapeVQ96i/TXxaoddGDUfZSh3j22Mqd+HfZcy6eo4VG9/PatLc+k53uY10R7M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XBVWRNkt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BB9AC43390; Tue, 13 Feb 2024 17:55:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707846950; bh=FCSg3u/T4vpEvkECtTnEyCSbmHI+EtLfUbeUYTkp5d4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XBVWRNkt4dhFG0yoAZzqL10a5MqbXgP1hjhuSm65ex+0+ALP5DepLFhOc7ICgyLlb EjB4g1j761TjdNu/vRr5O3cKNoMb4Olpk2qTkHmO5NoZKMnEKW9eyvO2mmRnIuQn9q gv3XOArfsdIQa2nJcn9l2QWAmWRjYAXRW0cu7fNiXXZ20T4wm/tdwck+f0RpA1axOm mtaxouGN6ZUy2nxLHfRF5oEoeJTV0dThUzYhpKMR0wRgxGG0SfHUmjlw1aoBF/ZEQa Un/do5rR9vg1I9IB8qV2k+06ctvOSiZZzXklhbEwZJ/+d7wTNKhxDWw6mKz16Zmmni IUtQepT93v0HQ== Date: Tue, 13 Feb 2024 09:55:49 -0800 From: "Darrick J. Wong" To: Christoph Hellwig Cc: John Garry , viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, jack@suse.cz, chandan.babu@oracle.com, martin.petersen@oracle.com, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, ojaswin@linux.ibm.com Subject: Re: [PATCH 0/6] block atomic writes for XFS Message-ID: <20240213175549.GU616564@frogsfrogsfrogs> References: <20240124142645.9334-1-john.g.garry@oracle.com> <20240213072237.GA24218@lst.de> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240213072237.GA24218@lst.de> On Tue, Feb 13, 2024 at 08:22:37AM +0100, Christoph Hellwig wrote: > From reading the series and the discussions with Darrick and Dave > I'm coming more and more back to my initial position that tying this > user visible feature to hardware limits is wrong and will just keep > on creating ever more painpoints in the future. > > Based on that I suspect that doing proper software only atomic writes > using the swapext log item and selective always COW mode Er, what are you thinking w.r.t. swapext and sometimescow? swapext doesn't currently handle COW forks at all, and it can only exchange between two of the same type of fork (e.g. both data forks or both attr forks, no mixing). Or will that be your next suggestion whenever I get back to fiddling with the online fsck patches? ;) > and making that > work should be the first step. We can then avoid that overhead for > properly aligned writs if the hardware supports it. For your Oracle > DB loads you'll set the alignment hints and maybe even check with > fiemap that everything is fine and will get the offload, but we also > provide a nice and useful API for less performance critical applications > that don't have to care about all these details. I suspect they might want to fail-fast (back to standard WAL mode or whatever) if the hardware support isn't available. --D