Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1558693

Re: [PATCH 5/6] f2fs: add a kernel thread to issue discard commands asynchronously

From Jaegeuk Kim <jaegeuk@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 5/6] f2fs: add a kernel thread to issue discard commands asynchronously
Date 2017-01-13 20:20 +0100
Message-ID <sZfyi-4If-9@gated-at.bofh.it> (permalink)
References <sYWlY-1cO-13@gated-at.bofh.it> <sYWlY-1cO-19@gated-at.bofh.it> <sZ55U-6Ta-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 01/13, Christoph Hellwig wrote:
> On Thu, Jan 12, 2017 at 02:44:06PM -0800, Jaegeuk Kim wrote:
> > This patch adds a kernel thread to issue discard commands.
> > It proposes three states, D_PREP, D_SUBMIT, and D_DONE to identify current
> > bio status.
> 
> Why?  Instead of creating the complexity of a thread you should look
> into issuing the discard bios asynchronously, which should help to
> simplify a lot of the discard logic in f2fs.

Previously, I've done to issue discard bios asynchronously. But the problem that
I've got is that was not enough. When testing nvme SSD with noop IO scheduler,
submit_bio() was blocked at every 8 async discard bios, resulting in very slow
checkpoint process which blocks most of other FS operations.

Thanks,

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 5/6] f2fs: add a kernel thread to issue discard commands asynchronously Jaegeuk Kim <jaegeuk@kernel.org> - 2017-01-12 23:50 +0100
  Re: [PATCH 5/6] f2fs: add a kernel thread to issue discard commands  asynchronously Christoph Hellwig <hch@infradead.org> - 2017-01-13 09:10 +0100
    Re: [PATCH 5/6] f2fs: add a kernel thread to issue discard commands  asynchronously Jaegeuk Kim <jaegeuk@kernel.org> - 2017-01-13 20:20 +0100
      Re: [PATCH 5/6] f2fs: add a kernel thread to issue discard commands  asynchronously Christoph Hellwig <hch@infradead.org> - 2017-01-16 18:40 +0100

csiph-web