Date: Sat, 13 Jun 2015 11:00:18 -0700 From: Neel Natu <neelnatu@gmail.com> To: Stefan Andritoiu <stefan.andritoiu@gmail.com> Cc: "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org> Subject: Re: How to bind a thread to a CPU? Message-ID: <CAFgRE9FxHWB9bFHNxj%2Bv2fW79XoWDbWZ_4i456OCED7YGn9w7A@mail.gmail.com> In-Reply-To: <CAO3d8=b1dZU%2BfEi-r0P=WRMZ=rOF0D7WbGepsZ4Oe5q3eUrrLg@mail.gmail.com> References: <CAO3d8=b1dZU%2BfEi-r0P=WRMZ=rOF0D7WbGepsZ4Oe5q3eUrrLg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Stefan, On Sat, Jun 13, 2015 at 3:33 AM, Stefan Andritoiu <stefan.andritoiu@gmail.com> 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. best Neel > Thank you, > Stefan > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFgRE9FxHWB9bFHNxj%2Bv2fW79XoWDbWZ_4i456OCED7YGn9w7A>