From: Joe Thornber <thornber@redhat.com>
To: Steven Wilton <swilton@fluentit.com.au>
Cc: dm-devel@redhat.com
Subject: Re: [PATCH] dm cache: add writeback watermarks
Date: Tue, 8 Mar 2016 15:23:36 +0000 [thread overview]
Message-ID: <20160308152335.GA4126@rh-vpn> (raw)
In-Reply-To: <1457448762-6784-1-git-send-email-swilton@fluentit.com.au>
On Tue, Mar 08, 2016 at 10:52:42PM +0800, Steven Wilton wrote:
> Add 2 new options to the dm-cache code, writeback_low_watermark to
> keep a section of the cache dirty in order to reduce the amount
> of data being migrated from the cache to the origin, and
> writeback_high_watermark to allow a threshold to be set where the
> dirty cache entries are flushed as quick as possible.
Right. mq is being removed, or rather becoming an alias for smq (patch
posted a couple of weeks ago to dm-devel).
smq already has a writeback delay to prevent writeback of frequently
changing data:
https://github.com/jthornber/linux-2.6/blob/thin-dev/drivers/md/dm-cache-policy-smq.c#L338
https://github.com/jthornber/linux-2.6/blob/thin-dev/drivers/md/dm-cache-policy-smq.c#L850
https://github.com/jthornber/linux-2.6/blob/thin-dev/drivers/md/dm-cache-policy-smq.c#L876
and has a threshold/watermark that triggers more aggressive writeback:
https://github.com/jthornber/linux-2.6/blob/thin-dev/drivers/md/dm-cache-policy-smq.c#L1463
I think this decision belongs in the policy, you've moved it to the
core.
Also I'm trying to avoid introducing tunables to the interface. It's
not enough to document what the tunables do, but we also have to
explain how people should arrive at the correct values for their work
loads.
Have you tried smq? What work load are you running? Does your patch
improve things?
- Joe
next prev parent reply other threads:[~2016-03-08 15:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-08 14:52 [PATCH] dm cache: add writeback watermarks Steven Wilton
2016-03-08 15:23 ` Joe Thornber [this message]
2016-03-09 0:43 ` Steven Wilton
2016-03-09 3:45 ` swilton
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=20160308152335.GA4126@rh-vpn \
--to=thornber@redhat.com \
--cc=dm-devel@redhat.com \
--cc=swilton@fluentit.com.au \
/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.