From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 757691B85EB; Tue, 24 Sep 2024 06:17:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727158646; cv=none; b=F2ii59nHFhI9v8HZzAsJUjnaQzoGQ75uQRr1DA+9GuE/5j1XzmoDpq0tHkasb98yaRoiVocJFQ7kUGewR1h8OCz9awL6uEuUb6506zL3YqH5sStxHtHThGGr2zO+cjFffzNBFjgXGGphFWa/7BT08OqWHBMGRwfEGL/arDh4HB0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727158646; c=relaxed/simple; bh=EynF5x8i3TEKTkw8e7/bXdZ5YKiX3VLUSu5fx0A/UYs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jGCd8yH56Gq6jx9vQ1a24h8Bhecq8RhI5ZTMvpABfcKXym44cd+VZqfLXzK5ZgAD3RvK8L5qcSNLZ9Mcjo2HL2P8iUcv7JLJBHzr3YJRuCi89KOEw/23gmWLojiQa6elU96LzLcZOkCwaCYCFDu+j/OvpvEnP4anDxPJMWdpXFE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id AE9AB227A8E; Tue, 24 Sep 2024 08:17:19 +0200 (CEST) Date: Tue, 24 Sep 2024 08:17:19 +0200 From: Christoph Hellwig To: John Garry Cc: Christoph Hellwig , Dave Chinner , Ritesh Harjani , chandan.babu@oracle.com, djwong@kernel.org, dchinner@redhat.com, viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, catherine.hoang@oracle.com, martin.petersen@oracle.com Subject: Re: [PATCH v4 00/14] forcealign for xfs Message-ID: <20240924061719.GA11211@lst.de> References: <8734m7henr.fsf@gmail.com> <8e13fa74-f8f7-49d3-b640-0daf50da5acb@oracle.com> <20240923033305.GA30200@lst.de> <20240923120715.GA13585@lst.de> Precedence: bulk X-Mailing-List: linux-fsdevel@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: User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Sep 23, 2024 at 01:33:12PM +0100, John Garry wrote: >> As a first step by not making it worse, and that not only means not >> spreading the rtextent stuff further, > > I assume that refactoring rtextent into "big alloc unit" is spreading > (rtextent stuff), right? If so, what other solution? CoW? Well, if you look at the force align series you'd agree that it spreads the thing out into the btree allocator. Or do I misread it? > >> but more importantly not introducing >> additional complexities by requiring to be able to write over the >> written/unwritten boundaries created by either rtextentsize > 1 or >> the forcealign stuff if you actually want atomic writes. > > The very original solution required a single mapping and in written state > for atomic writes. Reverting to that would save a lot of hassle in the > kernel. It just means that the user needs to manually pre-zero. What atomic I/O sizes do your users require? Would they fit into a large sector size now supported by XFS (i.e. 32k for now).