From: Steven Wilton <swilton@fluentit.com.au>
To: Mike Snitzer <snitzer@redhat.com>
Cc: dm-devel@redhat.com
Subject: Re: [PATCH v3] dm-cache watermarks
Date: Tue, 8 Mar 2016 23:16:51 +0800 [thread overview]
Message-ID: <56DEECE3.6070301@fluentit.com.au> (raw)
In-Reply-To: <20160307141713.GA19967@redhat.com>
On 07/03/16 22:17, Mike Snitzer wrote:
> On Sun, Mar 06 2016 at 4:39am -0500,
> Steven Wilton <swilton@fluentit.com.au> wrote:
>
>> I realised that I over-thought the original logic. The attached
>> patch is much simpler - write back dirty cache entries at the
>> migration threshold rate when we are over the low watermark, and we
>> write back as fast as possible when we go over the high watermark.
>>
>> The current behaviour can be replicated by setting the high
>> watermark to 100, and the low watermark to 0.
>>
>> regards
>>
>> Steven
> These should default to current behavior (100 and 0 respectively, like
> you mentioned above).
>
> This change needs an accompanying Documentation update. It also needs a
> proper path header to accurately convey the scope of the change.
>
> Please post v4 with these changes and then I'll take a closer look (as
> I'm sure Joe will). But please be aware that in general we want less
> knobs, not more.
>
> Thanks,
> Mike
>
>
Thanks for getting back to me on this. I have just submitted the patch
from git (after reading up on how). Can you please confirm that the new
patch is in the correct format?
If you want less knobs, then the high watermark may not be much use, and
I can remove it from the patch. The initial request was mainly for a
review to make sure I have not done anything obviously wrong that will
lead to data corruption.
I am happy to run some benchmarks on before and after to quantify any
performance gains.
I started looking into this because I noticed an increase in both disk
busy time and data being written to the origin device after I enabled
dm-cache on a production system. The overall performance feels better
even though the origin device is busier, but I am most interested to see
what effect the low watermark has on this system.
I have also had a thought on the stats emitted by dm-cache, and think
that it would be useful to export the number of write hits on already
dirty blocks so we can see how efficient the writeback has been at
avoiding writes to the origin. What is your view on changing the output
format here? If the output format cannot be changed, would you consider
re-defining a write hit in writeback mode as a hit on an already dirty
block, since this is the only scenario where I/O is avoided on the
origin device?
regards
Steve
prev parent reply other threads:[~2016-03-08 15:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-06 9:39 [PATCH v3] dm-cache watermarks Steven Wilton
2016-03-07 14:17 ` Mike Snitzer
2016-03-08 15:16 ` Steven Wilton [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=56DEECE3.6070301@fluentit.com.au \
--to=swilton@fluentit.com.au \
--cc=dm-devel@redhat.com \
--cc=snitzer@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.