From owner-freebsd-smp@FreeBSD.ORG Thu Feb 1 03:39:04 2007 Return-Path: X-Original-To: smp@freebsd.org Delivered-To: freebsd-smp@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B5B616A405 for ; Thu, 1 Feb 2007 03:39:04 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 70C5113C4A5 for ; Thu, 1 Feb 2007 03:39:04 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id EF74E1A4D81; Wed, 31 Jan 2007 19:18:01 -0800 (PST) Date: Wed, 31 Jan 2007 19:18:01 -0800 From: Alfred Perlstein To: smp@freebsd.org Message-ID: <20070201031801.GQ83651@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Cc: Subject: mapping interrupts to a particular cpu X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2007 03:39:04 -0000 [[jhb cc'd cause he's Mr Apic from what I understand.]] I'm trying to figure out pinning interrupts to a particular cpu. If it can be done, if it's worth it and how. Any generic pointers one could give to help me do this? I'd like to bind network interfaces to a particular cpu. I guess the questions boil down to: 1) Are we at the point that an interrupt for something such as an ethernet device actually runs under interrupt context? (or do we always switch to an ithread (for !FAST_INTR)) (I already know about bind_cpu which can be done inside interrupt routine (I think?)) Anyhow, if we have the actual interrupts running directly... 2) How can I bind an interrupt source to a cpu? 3) Is there a way to determine which cpu is best to wire an interrupt to? thanks, -- - Alfred Perlstein - coder / sysadmin / FreeBSD Hacker / All that jazz -