Processor affinity and KSE sample code
Daniel Eischen
eischen at vigrid.com
Sat Aug 9 11:22:07 PDT 2003
On Sat, 9 Aug 2003, Paul Williams wrote:
> Hello,
>
> I'm trying to pin a group of processes to a particular processor in FreeBSD
> 5.1-CURRENT. I've seen some discussion on older mailing lists about KSE's
> possibly supporting this, but I am not seeing how to do so using the current
> interface. Is this possible now or planned for future work? Also, does
It isn't implemented yet. I had always wanted to implement
a kse_bind() though.
> someone have examples of how to use KSEs? The test code included with the
> kernel isn't too enlightening (at least not for a KSE novice).
It's much easier just to use libpthread^Wlibkse and threads.
Scope system threads get their own KSE, while scope process
threads all run on a set of N kses (where N = kern.threads.virtual_cpu).
--
Dan Eischen
More information about the freebsd-smp
mailing list