From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-176.mta0.migadu.com (out-176.mta0.migadu.com [91.218.175.176]) (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 6F20014F60 for ; Tue, 2 Jan 2024 16:06:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="vXCRF1Z/" Date: Tue, 2 Jan 2024 11:05:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1704211562; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FfBSIcri6gvRT1pMgWG+pIwCoQ0ekq61NfBifzBCZVU=; b=vXCRF1Z/FWzUW4N5OGNmiHEKvwZyzdT3+1J8P3ZO6hx43S12CDxCrbMOYp3+WrmeobPtT7 XExCwT7RZ3mdBrIebl5SwCUCpLGollYRHMgxXayWXgCKsr4APLunvwl638XQvLcp5GA48S JxZNtGq0LHmop6gjeCjtxTFNMSL8Wqw= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Viacheslav Dubeyko Cc: lsf-pc@lists.linux-foundation.org, linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [LSF/MM/BPF TOPIC] bcachefs Message-ID: References: <3EB6181B-2BEA-49BE-A290-AFDE21FFD55F@dubeyko.com> Precedence: bulk X-Mailing-List: linux-bcachefs@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: <3EB6181B-2BEA-49BE-A290-AFDE21FFD55F@dubeyko.com> X-Migadu-Flow: FLOW_OUT On Tue, Jan 02, 2024 at 11:02:59AM +0300, Viacheslav Dubeyko wrote: > > > > On Jan 2, 2024, at 1:56 AM, Kent Overstreet wrote: > > > > LSF topic: bcachefs status & roadmap > > > > > > > > > A delayed allocation for btree nodes mode is coming, which is the main > > piece needed for ZNS support > > > > I could miss some emails. But have you shared the vision of ZNS support > architecture for the case of bcachefs already? It will be interesting to hear > the high-level concept. There's not a whole lot to it. bcache/bcachefs allocation is already bucket based, where the model is that we allocate a bucket, then write to it sequentially and never overwrite until the whole bucket is reused. The main exception has been btree nodes, which are log structured and typically smaller than a bucket; that doesn't break the "no overwrites" property ZNS wants, but it does mean writes within a bucket aren't happening sequentially. So I'm adding a mode where every time we do a btree node write we write out the whole node to a new location, instead of appending at an existing location. It won't be as efficient for random updates across a large working set, but in practice that doesn't happen too much; average btree write size has always been quite high on any filesystem I've looked at. Aside from that, it's mostly just plumbing and integration; bcachefs on ZNS will work pretty much just the same as bcachefs on regular block devices.