From mboxrd@z Thu Jan 1 00:00:00 1970 From: Theodore Ts'o Subject: Re: [LSF/MM TOPIC] Storage: SMR drives Date: Thu, 16 Jan 2014 12:07:48 -0500 Message-ID: <20140116170748.GB32391@thunk.org> References: <20140116165428.GC3100@orion.maiolino.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: lsf-pc@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org To: Carlos Maiolino Return-path: Received: from imap.thunk.org ([74.207.234.97]:49103 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752673AbaAPRHx (ORCPT ); Thu, 16 Jan 2014 12:07:53 -0500 Content-Disposition: inline In-Reply-To: <20140116165428.GC3100@orion.maiolino.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Jan 16, 2014 at 02:54:29PM -0200, Carlos Maiolino wrote: > > I'm not sure if the decision regarding which solution to use (restricted or > host-aware) was already made (I didn't find any doc specifying it, but in > either case, having these values properly exported and I'm not sure Ted, if you > had the idea to describe above all geometry information we'd like to have > exported, but if you did, one thing I believe to be very important to us is to > have a way to retrieve the specific location of the random write zones, so > filesystems can take advantage of this for some specific metadata workloads. At least initially, it will definitely be host-aware. Even if we can make all of our metadata be fully SMR-friendly, it's not going to deal with random read/write updates. So it's likely that for ext4, the first step is to make the metadata be SMR-friendly. The second step will be to tweak block allocation to be SMR-friendly. Only then would we try to support random writes where in a SMR-friendly way --- and it's not clear to me it makes sense for us to take things that far, and that would be a prereq before we could take ext4 to support restricted mode (aka host-managed SMR). Part of what we will need to support file systems will indeed be a way to export geometry information to userspace. As I noted, I'm also interested in exporting support for the ZBC commands to userspace, since there may be some use cases where the application will manage the SMR zones, either using a raw block device, or using ext4 to manage the large files which are aligned with SMR zones. Cheers, - Ted