<div dir="ltr">Is it possible to use different input files (unique files, anyway) of the same size, maybe even on different file systems if available?  The creation of these could be scripted along with a dd - don't remove the file immediately after the dd, though.  It might be even better if you could issue multiple reads in parallel, though that will be hard to do if it's a really small file.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 2, 2013 at 8:58 AM, Steinar H. Gunderson <span dir="ltr"><<a href="mailto:sgunderson@bigfoot.com" target="_blank">sgunderson@bigfoot.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 Fri, Aug 02, 2013 at 09:23:44AM -0400, Mike Snitzer wrote:<br>
> Yes, it is surprising.  Curious to know if the promotions aren't<br>
> happening due to the IO scheduler somehow merging all your random small<br>
> IO.  We don't yet have a descrete counter to show the number of<br>
> migrations that were skipped due to sequential_threshold but that is<br>
> something we can add.<br>
><br>
> But you can effectively disable the sequential_threshold by setting it<br>
> really high, e.g.:<br>
><br>
> dmsetup message cache 0 sequential_threshold 16384<br>
<br>
</div>I tried this, and it still doesn't appear to promote anything at all:<br>
<br>
cache: 0 23440891904 cache 913/8192 0 7021239 0 2049048 0 0 0 0 0 2 migration_threshold 2048 4 random_threshold 8 sequential_threshold 16384<br>
<br>
It's only been running for a few minutes, though.<br>
<br>
FWIW, earlier I ran it on only one single partition, and then it worked.<br>
So it's not like my kernel is completely broken, at least.<br>
<div class="im"><br>
> Please write a file that is smaller than your specified<br>
> sequential_threshold, and then read it numerous times via direct IO,<br>
> e.g.:<br>
><br>
> dd if=<your file> of=/dev/null iflag=direct bs=16K<br>
<br>
</div>I did, with a 16 kB file (that should certainly be small enough, right?),<br>
executing the dd command 10000 times. Still nothing cached.<br>
<div class="im HOEnZb"><br>
/* Steinar */<br>
--<br>
Homepage: <a href="http://www.sesse.net/" target="_blank">http://www.sesse.net/</a><br>
<br>
</div><div class="HOEnZb"><div class="h5">--<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>