From owner-freebsd-current@FreeBSD.ORG Thu Mar 10 15:21:37 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 8D608106566C for ; Thu, 10 Mar 2011 15:21:37 +0000 (UTC) (envelope-from hyama99@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 32D1A8FC22 for ; Thu, 10 Mar 2011 15:21:36 +0000 (UTC) Received: by qwj8 with SMTP id 8so1408325qwj.13 for ; Thu, 10 Mar 2011 07:21:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=bbBW4255DEplcpH+m5YhgWUQtLA8M5/wAdmHpesprdQ=; b=Go8rfuoQhQ7LTwVcToX3KeFKi5fEP+r8Fwx3wPtpvXzq+DnoTCn+7j2G3pxum6otny W/Jy16dIb65jbXC2qqdhbH/eDhrMjuGd0TUYdxp3Uj+CHSpnXPJOnjfdcyraoNvk92TA NrI240T9kbf/CiIEh+5efU9UtIG5v5hyl9V+4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=IQBDUUxJ03C2l7LJWfYCe3ZHu9wiMjgelJO1QgIjP3l3cLaFNhKtQcMIeK1r7IJ04e YDvOQU93bkuH1ZcwCyk5+p7OOJ7VmEOet57PvFqEM838j+TGoTX7oAToj4sFGM4HcCKY dDP7ua2ul1Olc3beAHrqjY/19TiKBg5F7+CKk= MIME-Version: 1.0 Received: by 10.224.126.221 with SMTP id d29mr3200164qas.201.1299770496073; Thu, 10 Mar 2011 07:21:36 -0800 (PST) Received: by 10.224.67.195 with HTTP; Thu, 10 Mar 2011 07:21:35 -0800 (PST) In-Reply-To: <4D78D46F.4020305@freebsd.org> References: <20110310034532.GA6934@troutmask.apl.washington.edu> <4D78D46F.4020305@freebsd.org> Date: Fri, 11 Mar 2011 00:21:35 +0900 Message-ID: From: Hideki Yamamoto To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 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 15:21:37 -0000 Dear Steve, Adam, and Andriy; Thank you very much for your quick replies. We could solve our problems on this matter. Thank you again. Best regards, Hideki Yamamoto 2011/3/10 Andriy Gapon : > 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 >