From owner-freebsd-questions@FreeBSD.ORG Wed Nov 9 22:15:43 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C6B816A41F for ; Wed, 9 Nov 2005 22:15:43 +0000 (GMT) (envelope-from jon.brisbin@npcinternational.com) Received: from mail1.npci.com (mail.npcinternational.com [63.76.154.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BF9F43D53 for ; Wed, 9 Nov 2005 22:15:42 +0000 (GMT) (envelope-from jon.brisbin@npcinternational.com) Received: from 7tj8h41 ([172.16.10.93]) by mail1.npci.com (MOS 3.5.9-GR) with ESMTP id BZB03269 (AUTH via LOGINBEFORESMTP); Wed, 9 Nov 2005 16:09:59 -0600 (CST) From: "Jon Brisbin" To: freebsd-questions@freebsd.org Date: Wed, 09 Nov 2005 16:16:31 -0600 MIME-Version: 1.0 Message-ID: <437220DF.4127.12A8DB0@localhost> Priority: normal X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: CPU affinity in new ULE scheduler 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: Wed, 09 Nov 2005 22:15:43 -0000 I can't find any information on how to set the CPU affinity for processes in the FreeBSD 6 ULE scheduler. On the linux box, which we're moving from, I have dual Xeon HTT's that I have JBoss scheduled round-robin with the CPU affinity set to the first two processors, nice -15. I have Postgres scheduled SCHED_FIFO on the last two processors, nice -15. This gives me the greatest bandwidth possible in our scenario as it eliminates the CPU contention I had noticed before doing it this way. How do I do the same thing in FreeBSD? I have found a lot of information that talks about setting CPU affinity, but I have yet to find one example of how to do this. On linux, I'm using a CK-patched kernel and "schedtool" Is there something similar on FreeBSD? Thanks! Jon Brisbin Webmaster NPC International, Inc.