From owner-freebsd-current@FreeBSD.ORG Thu Mar 10 13:39:02 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1DD71065673 for ; Thu, 10 Mar 2011 13:39:02 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 1F37B8FC21 for ; Thu, 10 Mar 2011 13:39:01 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA25203; Thu, 10 Mar 2011 15:38:56 +0200 (EET) (envelope-from avg@freebsd.org) Message-ID: <4D78D46F.4020305@freebsd.org> Date: Thu, 10 Mar 2011 15:38:55 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110309 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: Hideki Yamamoto References: <20110310034532.GA6934@troutmask.apl.washington.edu> In-Reply-To: <20110310034532.GA6934@troutmask.apl.washington.edu> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, watanabe439@gmail.com, Steve Kargl Subject: Re: CPU affinity X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2011 13:39:02 -0000 on 10/03/2011 05:45 Steve Kargl said the following: > On Thu, Mar 10, 2011 at 11:56:22AM +0900, Hideki Yamamoto wrote: >> Hi, >> >> We are interested in realtime application and CPU affinity. >> After googling pthread_setaffinity_np, I have found that it appeared in 7.2. >> But I cannot find it by man command. >> Does anyone know the status of CPU affinity function in FreeBSD or >> useful links about it? >> I have found the pointer about a command, >> http://segfault.in/2010/09/how-to-set-cpu-affinity-for-a-process-in-freebsd/ >> > > Man pages are available on-line. > > http://www.freebsd.org/cgi/man.cgi?query=pthread_setaffinity_np&apropos=0&sektion=0&manpath=FreeBSD+8.2-RELEASE&format=html > And the actual functions that should be used on modern FreeBSD are cpuset_setaffinity and cpuset_getaffinity. -- Andriy Gapon