<div dir="ltr">Okay, a little correction here. The problematic setup was with 2.3TB cache, not 3TB. The mistake comes from the fact that at the time of the writing I was dealing with another server which has 8x480GB ssd's in raid5, which is little over 3TB. Obviously the number was floating in my head.<br>
<br><br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 14, 2013 at 4:37 PM, Joe Thornber <span dir="ltr"><<a href="mailto:thornber@redhat.com" target="_blank">thornber@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Nov 13, 2013 at 04:13:43PM +0000, Mears, Morgan wrote:<br>
> On Mon, Nov 04, 2013 at 12:22:26PM -0500, Krishnasamy, Somasundaram wrote:<br>
> > Mike,<br>
> ><br>
> > I was doing some testing with latest dm-cache code (from 'for-next' branch). I<br>
> > am having difficulty in making the cache to warm-up. I used the below script<br>
> > to read range of blocks repeatedly to get them promoted. I assume after<br>
> > reading a block for mq->promote_threshold + 4 times, a block will be<br>
> > promoted. But it is not happening. I also tested the same with the<br>
> > sequential_threshold set to very high value.<br>
> ><br>
> > Cache warming-up was relatively easier in the previous dm-cache code. Is this<br>
> > something you have seen in your testing?. Is there anything different should I<br>
> > do?<br>
><br>
> I'm also testing with the for-next branch of linux-dm.git and seeing the<br>
> same thing as Somu.  It's easy to reproduce; reading the same block on the<br>
> cached device over and over with dd does not result in that block being<br>
> promoted.<br>
><br>
> I did notice that the "read miss" counter for the cached device increments<br>
> each time I execute dd, which I believe means this isn't a buffer cache<br>
> issue (I also used dd iflag=direct).  The migration_threshold value<br>
> shouldn't be an issue for this test, but I set it to a very high value<br>
> anyway; didn't make any difference.<br>
><br>
> Are there any tests in device-mapper-test-suite that you would recommend<br>
> for testing whether promotions are occurring as expected?<br>
><br>
> --Morgan<br>
<br>
</div>Hi Morgan,<br>
<br>
I just added these tests, promotion is occuring, just not as much as I'd like:<br>
<br>
<a href="https://github.com/jthornber/device-mapper-test-suite/blob/master/lib/dmtest/tests/cache/promotion_tests.rb" target="_blank">https://github.com/jthornber/device-mapper-test-suite/blob/master/lib/dmtest/tests/cache/promotion_tests.rb</a><br>

<br>
Ah, these tests all trigger promotion via a write, I'll do some that just read.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Joe<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
dm-devel mailing list<br>
<a href="mailto:dm-devel@redhat.com">dm-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/dm-devel" target="_blank">https://www.redhat.com/mailman/listinfo/dm-devel</a><br>
</div></div></blockquote></div><br></div>