lkml.org 
[lkml]   [2013]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [dm-devel] Performance Comparison among EnhanceIO, bcache and dm-cache.
From
On Mon, Jun 17, 2013 at 6:29 AM, Joe Thornber <thornber@redhat.com> wrote:
> On Tue, Jun 11, 2013 at 03:05:07PM +0000, OS Engineering wrote:
>
> ...
>
>> Dm-cache commits on-disk metadata every time a REQ_SYNC or REQ_FUA
>> bio is written. If no such requests are made then it commits
>> metadata once every second. If power is lost, it may lose some
>> recent writes.
>
> Not true (though it is true for thinp, which may be where you got this
> idea?). For caching we have to commit whenever data is moved about,
> otherwise a crash could result in us reading data that is not just out
> of date (acceptable for some), but used to belong to a totally
> different part of the device (always unacceptable).
>
> - Joe

(Apologies if this is received multiple times -- I forgot to disable
HTML the first time)

Hi Joe,

In Documentation/device-mapper/cache.txt, is this text out of date?

On-disk metadata is committed every time a REQ_SYNC or REQ_FUA
bio is written. If no such requests are made then commits will
occur every second. This means the cache behaves like a physical
disk that has a write cache (the same is true of the
thin-provisioning target). If power is lost you may lose some
recent writes. The metadata should always be consistent in spite
of any crash.

You say that this is the case for thinp, however. Does that mean that
it's not possible to get stable writes with dm-thin without using
cache-control commands? I don't see any documentation to this effect.
If so, are there any plans to change this behavior (or make it
configurable)?

Thanks,
-Michael


\
 
 \ /
  Last update: 2013-06-21 07:21    [W:0.101 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site