<div dir="ltr"><div><div><div>Hi Glenn,<br></div>Thanks a lot, it was only the parameters. And now its working smooth and nice.<br><br></div>Thanks Again<br></div>Sanjib<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, May 28, 2014 at 12:26 AM, Glenn Elliott <span dir="ltr"><<a href="mailto:gelliott@cs.unc.edu" target="_blank">gelliott@cs.unc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><div class="h5"><br><div><div>On May 27, 2014, at 6:05 PM, Sanjib Das <<a href="mailto:cnt.sanjib@googlemail.com" target="_blank">cnt.sanjib@googlemail.com</a>> wrote:</div><br>
<blockquote type="cite"><div dir="ltr"><div><div><div>Dear All,<br><br></div>Is there anyone can help me to calculate the maximum number of  tasks generated by <a href="https://github.com/LITMUS-RT/experiment-scripts" target="_blank">https://github.com/LITMUS-RT/experiment-scripts</a> which will not stall the CPUs or SOFT/HARD CPU lock occurrence or feather trace write will not be missed for example GSN-EDF scheduling algorithm.<br>

<br></div>Thanks in Advance<br></div>Sanjib<br></div></blockquote><br></div></div></div><div>The experiment-scripts are not good at generating schedulable task sets.  That is, it does not check the schedulability of the task sets it generates.  gen_exps.py allows you to place a cap on the number of tasks in a task set, but that does not guarantee schedulability, since schedulability is also determined by per-task utilization.  That is controlled by the period and utilization generation parameters.  Controlling all of these parameters is described in the readme: <a href="https://github.com/LITMUS-RT/experiment-scripts#gen_expspy" target="_blank">https://github.com/LITMUS-RT/experiment-scripts#gen_expspy</a>  (also, when in doubt, just run “gen_exps.py --help”).</div>
<div><br></div><div>I’d like to integrate experiment-scripts with schedcat’s schedulability test framework (<a href="https://github.com/brandenburg/schedcat" target="_blank">https://github.com/brandenburg/schedcat</a>).  This would allow us to test schedulability (with or without system overheads included).  I haven’t had the time to explore this yet (it would probably be at least a week’s effort to do it right).</div>
<br><div>In the meantime, you’re just going to have to hack the generation scripts yourself.  Most of your work will be limited to gen/generator.py and gen/edf_generators.py.</div><div><br></div><div>Here’s where experiment-scripts invokes schedcat’s task set generator: <a href="https://github.com/LITMUS-RT/experiment-scripts/blob/master/gen/generator.py#L119" target="_blank">https://github.com/LITMUS-RT/experiment-scripts/blob/master/gen/generator.py#L119</a></div>
<div><br></div><div>Observe that there are two control parameters: the maximum number of task (max_tasks) and max_util (maximum task set utilization).  Observe that experiment-scripts does not set max_util by default.  You’ll have to edit the call of _create_taskset() to provide a cap (the calls are in gen/edf_generators.py).</div>
<span class="HOEnZb"><font color="#888888"><div><br></div><div>-Glenn</div></font></span></div><br>_______________________________________________<br>
litmus-dev mailing list<br>
<a href="mailto:litmus-dev@lists.litmus-rt.org">litmus-dev@lists.litmus-rt.org</a><br>
<a href="https://lists.litmus-rt.org/listinfo/litmus-dev" target="_blank">https://lists.litmus-rt.org/listinfo/litmus-dev</a><br>
<br></blockquote></div><br></div>