<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 19, 2013, at 11:31 AM, Sisu Xi <<a href="mailto:xisisu@gmail.com">xisisu@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi, all:<div><br></div><div>I was looking at the code of rtspin, does cache miss make a difference in rtspin?</div><div><br></div><div>Because rtspin run workload, record time, compare it with wcet and rerun some workload, the cache miss time should already be considered in the execution time.</div>
<div><br></div><div>In other words, consider one rtspi with alwasy cache hit and the other rtspin with alwasy cache miss. If they are configured the same wcet, each job should run for same time.<br></div><div><br></div><div>
Is this correct?<br></div><div><br></div><div>Thanks very much!</div><div><br></div><div>Sisu<br clear="all"><div><br></div>-- <br>Sisu Xi, PhD Candidate<br><br><a href="http://www.cse.wustl.edu/~xis/" target="_blank">http://www.cse.wustl.edu/~xis/</a><br>
Department of Computer Science and Engineering<br>Campus Box 1045<br>Washington University in St. Louis<br>One Brookings Drive<br>St. Louis, MO 63130
</div></div>
_______________________________________________<br>litmus-dev mailing list<br><a href="mailto:litmus-dev@lists.litmus-rt.org">litmus-dev@lists.litmus-rt.org</a><br>https://lists.litmus-rt.org/listinfo/litmus-dev<br></blockquote></div><div><br></div><br><div>Hi Sisu,</div><div><br></div><div>I believe that you are correct. If you want to make it cache-sensitive, you would need to rewrite job() to execute a fixed number of operations on data of an appropriate size. You would provision the execution time of the task however you need (average case, worst-case, average case with no cache misses, worst-case with no cache misses, etc.---it's up to you).</div><div><br></div><div>Check out litmus-rt/tools/perf for tools for counting cache misses, branch mispredictions, etc.</div><div><br></div><div>-Glenn</div></body></html>