All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Thornber <thornber@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: dm-cache policy mq: promotion very picky?
Date: Wed, 15 May 2013 11:26:41 +0100	[thread overview]
Message-ID: <20130515102641.GA11029@debian> (raw)
In-Reply-To: <20130514181655.GB8043@blackbox.djwong.org>

On Tue, May 14, 2013 at 11:16:55AM -0700, Darrick J. Wong wrote:
> On Tue, May 14, 2013 at 02:44:53PM +0100, Joe Thornber wrote:
> > On Mon, May 13, 2013 at 11:23:04PM +0200, Pierre Beck wrote:
> > > Maybe I'm misunderstanding how the heuristics work - what makes mq
> > > pick a block for promotion?
> > 
> > Hi Pierre,
> > 
> > The mq policy is indeed very picky.  The first thing I'd suggest is
> > you pick up my latest patches if you haven't already:
> > 
> > http://device-mapper.org/patches/3.10/
> 
> Hm, it looks like all but two of the dmcache patches are in.  The two patches
> to mq aren't (yet) there.

y, unfortunately there's a fixme in there that frightened Alasdair,
and I don't have any free capacity to spend on dm-cache atm.

> > If you start with a discarded device (eg, you've run mkfs).  Then the
> > cache should fill up v. quickly with my latest patches.  Perhaps it
> > would be worth verifying this before you start investigating the
> > effects of sequential io?
> 
> I'm also curious about what happens if, say, you have a discard-enabled
> zerofree that can "discard" just the unallocated blocks.  That probably only
> helps if you can discard pieces big enough to fit one of dmcache's discard
> regions, right?

Yep.  But your fs will be trying to reduce fragmentation of free
space, so hopefully the pieces will be big enough.

- Joe

      reply	other threads:[~2013-05-15 10:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-13 21:23 dm-cache policy mq: promotion very picky? Pierre Beck
2013-05-14 13:44 ` Joe Thornber
2013-05-14 18:16   ` Darrick J. Wong
2013-05-15 10:26     ` Joe Thornber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130515102641.GA11029@debian \
    --to=thornber@redhat.com \
    --cc=dm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.