From owner-freebsd-arch@FreeBSD.ORG Sat Dec 22 18:37:51 2007 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AB2016A41A; Sat, 22 Dec 2007 18:37:51 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4B95F13C458; Sat, 22 Dec 2007 18:37:51 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id A621B472D5; Sat, 22 Dec 2007 13:37:50 -0500 (EST) Date: Sat, 22 Dec 2007 18:37:50 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: David Xu In-Reply-To: <476B1973.6070902@freebsd.org> Message-ID: <20071222183700.L5866@fledge.watson.org> References: <20071219211025.T899@desktop> <476B1973.6070902@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: arch@FreeBSD.org Subject: Re: Linux compatible setaffinity. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Dec 2007 18:37:51 -0000 On Fri, 21 Dec 2007, David Xu wrote: > I don't say no to these interfaces, but there is a need to tell user which > cpus are sharing cache, or memory distance is closest enough, and which cpus > are servicing interrupts, e.g, network interrupt and disks etc, etc, > otherwise, blindly setting cpu affinity mask only can shoot itself in the > foot. While the Mac OS X API is pretty Mach-specific, it's worth taking a look at their recently-announced affinity API: http://developer.apple.com/releasenotes/Performance/RN-AffinityAPI/index.html Robert N M Watson Computer Laboratory University of Cambridge