From owner-freebsd-questions@FreeBSD.ORG Tue Dec 16 05:40:17 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B782110656FC for ; Tue, 16 Dec 2008 05:40:17 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by mx1.freebsd.org (Postfix) with ESMTP id 1B56D8FC08 for ; Tue, 16 Dec 2008 05:40:16 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3404721rvf.43 for ; Mon, 15 Dec 2008 21:40:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=aWOYrlKgB8i5NqoVN0TXZ3EcOjrH3EhPwCkUCqF0rV8=; b=vH+OmnMwE3pxnGcKv5tEg3Nyx6ISiNW1CJiU2JcYM/6gBrckoyhisvrt7xcXpn2HdZ rouvvuPMBwxDvToe7RqQM3kLGzYWJwjFTYxL+ggC8agyDsVpt23wTfc6C7ToErF/3wM9 ZKPIPrFSq5afgEgiA4VhfMARVMkrrI8aELeos= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ttulehmk1/77txbpJ34oUFptos5oBAEUcGE5L1LOJYNdNX2W9y+zRT76TwPHFBcpDO URhx34rowcIw2BaqePFE0EVMYs+mXTRynspEwKr8UqRHpvubXk/mY6s8712b5tDmlxrh nGA+b4iNtmx9wWZnAjIGsuzhylyIRUMV96lRw= Received: by 10.141.175.10 with SMTP id c10mr4136405rvp.127.1229406016690; Mon, 15 Dec 2008 21:40:16 -0800 (PST) Received: by 10.140.158.13 with HTTP; Mon, 15 Dec 2008 21:40:16 -0800 (PST) Message-ID: <7d6fde3d0812152140u1a5985f6l5abe51f82f26fd73@mail.gmail.com> Date: Mon, 15 Dec 2008 21:40:16 -0800 From: "Garrett Cooper" To: josh.carroll@gmail.com In-Reply-To: <8cb6106e0812151921w635a00c6o52112723c433fffb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7d6fde3d0812151634n70e6f699n8178382c79dca36d@mail.gmail.com> <8cb6106e0812151921w635a00c6o52112723c433fffb@mail.gmail.com> Cc: FreeBSD Questions Subject: Re: Setting per processor (/core) affinity from within FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 05:40:17 -0000 On Mon, Dec 15, 2008 at 7:21 PM, Josh Carroll wrote: > On Mon, Dec 15, 2008 at 7:34 PM, Garrett Cooper wrote: >> Hi guys, >> I was wondering if anyone has written a utility for FreeBSD to tie >> a particular process group to a processor / core, similar to what >> Linux has done with taskset, so that affinity can be properly set with >> FreeBSD and the ULE scheduler. > > I believe cpuset(2) will do what you want. It is available starting > with 7.1-RELEASE (which isn't released yet, but you can grab 7.1-RC1 > to test it out). > > Regards, > Josh Ah, that's right! Forgot about that utility. I run 8-CURRENT so yeah, that's not really an issue :). Thanks! -Garrett