From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 22 05:00:29 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F67516A4CE for ; Sun, 22 Feb 2004 05:00:29 -0800 (PST) Received: from smtp03.wxs.nl (smtp03.wxs.nl [195.121.6.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5666E43D1D for ; Sun, 22 Feb 2004 05:00:29 -0800 (PST) (envelope-from freebsd@akruijff.dds.nl) Received: from kruij557.speed.planet.nl (ipd50a97ba.speed.planet.nl [213.10.151.186]) by smtp03.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HTH00CC1LDXAE@smtp03.wxs.nl> for hackers@freebsd.org; Sun, 22 Feb 2004 13:58:45 +0100 (MET) Received: from alex.lan (localhost [127.0.0.1]) by kruij557.speed.planet.nl (8.12.10/8.12.10) with ESMTP id i1MCxrHd067637; Sun, 22 Feb 2004 13:59:53 +0100 Received: (from akruijff@localhost) by alex.lan (8.12.10/8.12.10/Submit) id i1MCxqEG067636; Sun, 22 Feb 2004 13:59:52 +0100 Content-return: prohibited Date: Sun, 22 Feb 2004 13:59:52 +0100 From: Alex de Kruijff In-reply-to: <4A1C3989-6133-11D8-91F3-000A9576014E@cam.ac.uk> To: Bin Ren Message-id: <20040222125952.GD892@alex.lan> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4.2.1i References: <4A1C3989-6133-11D8-91F3-000A9576014E@cam.ac.uk> X-Authentication-warning: alex.lan: akruijff set sender to freebsd@akruijff.dds.nl using -f cc: Hackers FreeBSD Subject: Re: pin a subsystem to a CPU X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2004 13:00:29 -0000 On Tue, Feb 17, 2004 at 10:23:12AM +0000, Bin Ren wrote: > Hi, > > I'm thinking about whether it's possible and how to pin > a subsystem of kernel, from a particular driver (such as > software RAID) to TCP network stack, to a particular > CPU. In other words, I have dual processors and how > can I make one of the CPU JUST runs TCP stack so > as to increase network throughput? > > Shall I turn the piece of codes into a kernel thread? Then > how hard is it? Dear Bin, I have a processor with enabled HT and run FreeBSD 5 2. I notice that the system handles this quite well on its own. When i start to compile something then the first miniute XMMS has trouble playing MP3s, but afther that time the system has ajusted quite well. -- Alex Articles based on solutions that I use: http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/