Re: [dm-devel] dm-cache coherence issue

2017-06-27 Thread Joe Thornber
On Mon, Jun 26, 2017 at 10:36:23PM +0200, Johannes Bauer wrote: > On 26.06.2017 21:56, Mike Snitzer wrote: > > >> Interesting, I did *not* change to writethrough. However, there > >> shouldn't have been any I/O on the device (it was not accessed by > >> anything after I switched to the cleaner pol

Re: [dm-devel] dm-cache coherence issue

2017-06-26 Thread Mike Snitzer
On Mon, Jun 26 2017 at 4:36pm -0400, Johannes Bauer wrote: > On 26.06.2017 21:56, Mike Snitzer wrote: > > >> Interesting, I did *not* change to writethrough. However, there > >> shouldn't have been any I/O on the device (it was not accessed by > >> anything after I switched to the cleaner polic

Re: [dm-devel] dm-cache coherence issue

2017-06-26 Thread Johannes Bauer
On 26.06.2017 21:56, Mike Snitzer wrote: >> Interesting, I did *not* change to writethrough. However, there >> shouldn't have been any I/O on the device (it was not accessed by >> anything after I switched to the cleaner policy). [...] >> Anyways, I'll try to replicate my scenario again because I'

Re: [dm-devel] dm-cache coherence issue

2017-06-26 Thread Mike Snitzer
On Mon, Jun 26 2017 at 3:08pm -0400, Johannes Bauer wrote: > Hi Joe, > > On 26.06.2017 17:58, Joe Thornber wrote: > > On Mon, Jun 26, 2017 at 12:33:42PM +0100, Joe Thornber wrote: > >> On Sat, Jun 24, 2017 at 03:56:54PM +0200, Johannes Bauer wrote: > >>> So I seem to have a very basic misunders

Re: [dm-devel] dm-cache coherence issue

2017-06-26 Thread Johannes Bauer
Hi Joe, On 26.06.2017 17:58, Joe Thornber wrote: > On Mon, Jun 26, 2017 at 12:33:42PM +0100, Joe Thornber wrote: >> On Sat, Jun 24, 2017 at 03:56:54PM +0200, Johannes Bauer wrote: >>> So I seem to have a very basic misunderstanding of what the cleaner >>> policy/dirty pages mean. Is there a way to

Re: [dm-devel] dm-cache coherence issue

2017-06-26 Thread Joe Thornber
On Mon, Jun 26, 2017 at 12:33:42PM +0100, Joe Thornber wrote: > On Sat, Jun 24, 2017 at 03:56:54PM +0200, Johannes Bauer wrote: > > So I seem to have a very basic misunderstanding of what the cleaner > > policy/dirty pages mean. Is there a way to force the cache to flush > > entirely? Apparently, "

Re: [dm-devel] dm-cache coherence issue

2017-06-26 Thread Joe Thornber
On Sat, Jun 24, 2017 at 03:56:54PM +0200, Johannes Bauer wrote: > So I seem to have a very basic misunderstanding of what the cleaner > policy/dirty pages mean. Is there a way to force the cache to flush > entirely? Apparently, "dmsetup wait" and/or "sync" don't do the job. Your understanding is c

Re: [dm-devel] dm-cache coherence issue

2017-06-25 Thread Johannes Bauer
On 24.06.2017 15:56, Johannes Bauer wrote: > So I seem to have a very basic misunderstanding of what the cleaner > policy/dirty pages mean. Is there a way to force the cache to flush > entirely? Apparently, "dmsetup wait" and/or "sync" don't do the job. I'd like to expand on this, since I discove

[dm-devel] dm-cache coherence issue

2017-06-25 Thread Johannes Bauer
Hello list, I hope this is the correct place to ask my question. If not, I'd appreciate a quick word where to better ask this and I'll be on my way. I've setup a dm-cache setup and am trying to understand the coherence/consistency between the origin device and cached device. For this, I have setu