<div dir="ltr">Hi, <span style="font-family:arial,sans-serif;font-size:13px">Björn:</span><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>I already fixed this.   It is very clear in the base_task.c comments.</div>
<div><br></div><div>Thanks!</div><div><br></div><div>Sisu</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 17, 2013 at 2:32 AM, 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"><div class="im"><br>
On Oct 16, 2013, at 9:50 PM, Sisu Xi <<a href="mailto:xisisu@gmail.com">xisisu@gmail.com</a>> wrote:<br>
<br>
> just found out how to do that in base_task.<br>
><br>
> fyi, if i try it with<br>
> taskset 0x01 base_task ...<br>
> it will quit.<br>
><br>
> Thanks anyway.<br>
><br>
> Sisu<br>
><br>
><br>
> On Wed, Oct 16, 2013 at 11:28 AM, Sisu Xi <<a href="mailto:xisisu@gmail.com">xisisu@gmail.com</a>> wrote:<br>
> Hi, all:<br>
><br>
> I am doing experiments on Litmus^RT, where we plan to use the partitioned EDF in it.<br>
><br>
> Usually how do you pin the task to cores?<br>
><br>
> I know in Linux we can use sched_setaffinity within the program, or we can use taskset utility to achieve that.<br>
><br>
> Is Limtus^RT base_task compatible with both of them? Or do you have some litmus api for doing that?<br>
><br>
> Thanks very much and looking forward to your reply!<br>
<br>
</div>Dear Sisu,<br>
<br>
LITMUS^RT's PSN-EDF plugin will admit tasks  only if they are already pinned to the correct CPU. You should use Linux's standard methods for moving tasks to a specific processor before transitioning into real-time mode. liblitmus provides a bunch of convenience wrappers for this (have a look at migrate.h). For example, be_migrat_to_cpu(123) would migrate your task to processor 123 and pin it there.<br>

<br>
If you run into any issues in your experiments, please let us know.<br>
<br>
Best regards,<br>
Björn<br>
<br>
<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>
</blockquote></div><br><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>