[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190521082528.GA17709@quack2.suse.cz>
Date: Tue, 21 May 2019 10:25:28 +0200
From: Jan Kara <jack@...e.cz>
To: 'Christoph Hellwig' <hch@...radead.org>
Cc: kanchan <joshi.k@...sung.com>, linux-kernel@...r.kernel.org,
linux-block@...r.kernel.org, linux-nvme@...ts.infradead.org,
linux-fsdevel@...r.kernel.org, linux-ext4@...r.kernel.org,
prakash.v@...sung.com, anshul@...sung.com,
"Martin K. Petersen" <martin.petersen@...cle.com>
Subject: Re: [PATCH v5 0/7] Extend write-hint framework, and add write-hint
for Ext4 journal
On Mon 20-05-19 07:27:19, 'Christoph Hellwig' wrote:
> On Fri, May 17, 2019 at 11:01:55AM +0530, kanchan wrote:
> > Sorry but can you please elaborate the issue? I do not get what is being
> > statically allocated which was globally available earlier.
> > If you are referring to nvme driver, available streams at subsystem level
> > are being reflected for all namespaces. This is same as earlier.
> > There is no attempt to explicitly allocate (using dir-receive) or reserve
> > streams for any namespace.
> > Streams will continue to get allocated/released implicitly as and when
> > writes (with stream id) arrive.
>
> We have made a concious decision that we do not want to expose streams
> as an awkward not fish not flesh interface, but instead life time hints.
>
> I see no reason to change from and burden the whole streams complexity
> on other in-kernel callers.
I'm not following the "streams complexity" you talk about. At least the
usecase Kanchan speaks about here is pretty simple for the filesystem -
tagging journal writes with special stream id. I agree that something like
dynamically allocating available stream ids to different purposes is
complex and has uncertain value but this "static stream id for particular
purpose" looks simple and sensible to me and Kanchan has shown significant
performance benefits for some drives. After all you can just think about it
like RWH_WRITE_LIFE_JOURNAL type of hint available for the kernel...
Honza
--
Jan Kara <jack@...e.com>
SUSE Labs, CR
Powered by blists - more mailing lists