Linux Device Mapper development
 help / color / mirror / Atom feed
From: sbp <sbp@extio.de>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: dm-cache: clean cache resyncs to origin on every boot
Date: Tue, 20 Oct 2015 20:00:25 +0200	[thread overview]
Message-ID: <56268139.9010901@extio.de> (raw)
In-Reply-To: <20151020143304.GA15948@rh-vpn>

On 10/20/2015 04:33 PM, Joe Thornber wrote:
> On Tue, Oct 20, 2015 at 11:51:07AM +0500, Bogdan Vasiliev wrote:
>> Hello,
>>
>> I have dm-cache configuraion with SSD in writeback mode. On every boot
>> an entire cache resyncs to an origin device, even if it was clean
>> before on shutdown. It takes time and full bandwidth of an origin
>> device.
>>
>> Is there reason for this behavior or is it a bug? Why we do not trust
>> a cache metadata?
> If the cache is not taken down cleanly then dm-cache has to assume
> every block is dirty.  Make sure your shutdown scripts are removing
> the cache device.

Hi,

I have the same problem, but also in writethrough mode. In principle the 
behavior is the same in writethrough and writeback modes: Cache is fully 
written back to disk every time the machine boots and sets the cache up.

I've posted a similar report to this list beginning of this month, but 
got no answer. There is my exact startup and shutdown script included, 
also some additional information about the setup. 
https://www.redhat.com/archives/dm-devel/2015-October/msg00012.html

>
>> My configuration details, if necessary:
>> storage-cache_cdata:0 41943040 linear
>> storage-cache_cmeta: 0 1048576 linear
>> storage-data: 0 1953513472 cache 8 989/131072 128 173945/327680 610488
>> 20046 574861 3817439 0 0 0 1 writeback 2 migration_threshold 2048 mq
>> 10 random_threshold 4 sequential_threshold 512
>> discard_promote_adjustment 1 read_promote_adjustment 4
>> write_promote_adjustment 8 rw -
>> storage-data_corig: 0 1953513472 linear
>>
>>
>> - Bogdan
>>
>> --
>> dm-devel mailing list
>> dm-devel@redhat.com
>> https://www.redhat.com/mailman/listinfo/dm-devel
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel

  reply	other threads:[~2015-10-20 18:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-20  6:51 dm-cache: clean cache resyncs to origin on every boot Bogdan Vasiliev
2015-10-20 14:33 ` Joe Thornber
2015-10-20 18:00   ` sbp [this message]
2015-10-20 18:06   ` Bogdan Vasiliev
2015-10-22 17:19     ` Joe Thornber

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=56268139.9010901@extio.de \
    --to=sbp@extio.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox