<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On May 27, 2014, at 6:05 PM, Sanjib Das <<a href="mailto:cnt.sanjib@googlemail.com">cnt.sanjib@googlemail.com</a>> wrote:</div><br class="Apple-interchange-newline"><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">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>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">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">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">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><div><br></div><div>-Glenn</div></body></html>