Hi Neel,
On Sat, Jun 13, 2015 at 9:00 PM, Neel Natu <[email protected]> wrote:
> Hi Stefan,
>
> On Sat, Jun 13, 2015 at 3:33 AM, Stefan Andritoiu
> <[email protected]> wrote:
>> Hi,
>>
>> How can I pin a thread to run only on a specific CPU?
>> Is it enough just to set the "struct cpuset *td_cpuset" of the thread?
>>
>
> sched_bind() is the proper way to do this.
But in sched_bind() I notice:
KASSERT(td == curthread, ("sched_bind: can only bind curthread"));
How can I bind a thread that is not curthread?
>
> best
> Neel
>
>> Thank you,
>> Stefan
>> _______________________________________________
>> [email protected] mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>> To unsubscribe, send any mail to
>> "[email protected]"
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to
"[email protected]"