<div dir="ltr">Hi,<div><br></div><div>Thank you so much for pointing out the error.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 14, 2018 at 3:40 PM, Björn Brandenburg <span dir="ltr"><<a href="mailto:bbb@mpi-sws.org" target="_blank">bbb@mpi-sws.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> On 14. Mar 2018, at 06:38, Susan S <<a href="mailto:susanrosethomas2001@gmail.com">susanrosethomas2001@gmail.com</a><wbr>> wrote:<br>
><br>
> Hi,<br>
><br>
</span><span class="">> Please do let me know why the st-trace-schedule output does not give the all the cpus actually used for the base_task.<br>
><br>
> Regards,<br>
> Susan Rose.<br>
<br>
</span>Short answer: st-trace-schedule shows only tasks that are in the SCHED_LITMUS scheduling class (i.e., real-time tasks admitted by LITMUS^RT).<br>
<br>
Slightly longer answer: Your code calls fork in every *job* of the task. This is highly inefficient and not suitable for real-time tasks. Also, under most LITMUS^RT plugins, when a real-time task forks, the forked child is NOT automatically admitted as a LITMUS^RT task — you need to that explicitly from the parent task if you really want the child task to become a real-time task as well. The rationale for this behavior is that one could otherwise easily overload the system with accidental forks.<br>
<br>
However, for what you are trying to accomplish, you should definitely not fork in every job release. If you want tasks on all cores, you should launch the appropriate number of *sequential* tasks from a shell script. If you want a task with real-time threads, you should spawn the threads during initialization of the program, before entering real-time mode, and then transition each thread into real-time mode after it has migrated to the appropriate core.<br>
<div class="HOEnZb"><div class="h5"><br>
- Björn<br>
<br>
<br>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">https://lists.litmus-rt.org/<wbr>listinfo/litmus-dev</a><br>
</div></div></blockquote></div><br></div>