Date: Thu, 21 Feb 2008 16:08:04 -0500 From: David Schultz <das@FreeBSD.ORG> To: Jeff Roberson <jroberson@chesapeake.net> Cc: Daniel Eischen <deischen@FreeBSD.ORG>, arch@FreeBSD.ORG, Robert Watson <rwatson@FreeBSD.ORG>, David Xu <davidxu@FreeBSD.ORG>, Andrew Gallatin <gallatin@cs.duke.edu> Subject: Re: getaffinity/setaffinity and cpu sets. Message-ID: <20080221210804.GA3240@zim.MIT.EDU> In-Reply-To: <20080220213253.A920@desktop> References: <20080112170831.A957@desktop> <Pine.GSO.4.64.0801122240510.15683@sea.ntplx.net> <20080112194521.I957@desktop> <20080219234101.D920@desktop> <20080220101348.D44565@fledge.watson.org> <20080220005030.Y920@desktop> <20080220105333.G44565@fledge.watson.org> <47BCEFDB.5040207@freebsd.org> <20080220175532.Q920@desktop> <20080220213253.A920@desktop>
next in thread | previous in thread | raw e-mail | index | archive | help
I have no specific comments, but I wanted to point out that the Solaris kernel team put a lot of thought into coming up with a flexible processor binding API for Solaris 10 that meshes well with jails (a.k.a. zones in Solaris). It might be worthwhile to investigate what good ideas they might have had, and to decide if compatibility is worthwhile: http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/pset.h There are manpages for this stuff somewhere. pset_create and pset_destroy obviously create and delete processor set definitions. pset_bind binds a particular process / thread / session / jail to a processor set, similar to your CPU_WHICH_* flags, I think, but with more options.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080221210804.GA3240>