From owner-freebsd-current@FreeBSD.ORG Fri Aug 13 19:41:25 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80F6F16A4CE for ; Fri, 13 Aug 2004 19:41:25 +0000 (GMT) Received: from bureau14.utcc.utoronto.ca (bureau14.utcc.utoronto.ca [128.100.132.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF26E43D2D for ; Fri, 13 Aug 2004 19:41:24 +0000 (GMT) (envelope-from achant@noc.utoronto.ca) Received: from snap.noc.utoronto.ca ([128.100.97.30] EHLO noc.utoronto.ca ident: IDENT-NOT-QUERIED [port 33544]) by bureau14.utcc.utoronto.ca with ESMTP id <890149-1244>; Fri, 13 Aug 2004 15:41:19 -0400 Message-ID: <411D1954.6000606@noc.utoronto.ca> Date: Fri, 13 Aug 2004 15:41:08 -0400 From: Andrew Chant User-Agent: Mozilla Thunderbird 0.5 (X11/20040306) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 15 Aug 2004 12:16:48 +0000 Subject: Tying a process to a processor, SMP. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 13 Aug 2004 19:41:25 -0000 Hello, I was wondering if there is any mechanism to tie a process to a given processor on a SMP FreeBSD box. I have a system running snort/mysql/barnyard on a dual Xeon 3.06 GHz box w/ 1 Meg cache, and I can see from 'top' that the processes seem to skip from CPU0 through to CPU3 on a regular basis, which to me seems like it is inefficient. Someone on #FreeBSD on freenode.net suggested that there was already an API mechanism to perform this task, and that it would be a simple project to write a user-mode utility to perform this task. I'm willing to help, but I am a complete newbie to FreeBSD and I don't have a clue where to start. Thanks, -Andrew Chant achant@noc.utoronto.ca ps. - please CC in replies, not subscribed.