From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 10:55:20 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1157106566B for ; Tue, 28 Oct 2008 10:55:19 +0000 (UTC) (envelope-from oleksandr@samoylyk.sumy.ua) Received: from mail.telesweet.net (mail.telesweet.net [194.110.252.6]) by mx1.freebsd.org (Postfix) with ESMTP id 9BA168FC1C for ; Tue, 28 Oct 2008 10:55:19 +0000 (UTC) (envelope-from oleksandr@samoylyk.sumy.ua) Received: from localhost (localhost [127.0.0.1]) by mail.telesweet.net (Postfix) with ESMTP id A360310C2AB; Tue, 28 Oct 2008 12:43:41 +0200 (EET) X-Spam-Flag: NO X-Spam-Score: -1.44 X-Spam-Level: X-Spam-Status: No, score=-1.44 required=6.2 tests=[ALL_TRUSTED=-1.44, AWL=-0.000] Received: from [10.0.0.109] (pigeon-work.telesweet [10.0.0.109]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.telesweet.net (Postfix) with ESMTPS id 95F8F10C2A6; Tue, 28 Oct 2008 12:43:40 +0200 (EET) Message-ID: <4906ECDC.3040809@samoylyk.sumy.ua> Date: Tue, 28 Oct 2008 12:43:40 +0200 From: Oleksandr Samoylyk User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Bartosz Giza References: <200810281235.53508.gizmen@blurp.pl> In-Reply-To: <200810281235.53508.gizmen@blurp.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: two NIC on 2 core system (scheduling problem) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 10:55:21 -0000 Bartosz Giza wrote: > Hi, > > i have two core system with freebsd 7.0. I have two NIC; first is em and > second is bge. > I wonder why system put irq processes almost always to one core. > There is example: > > 11 root 1 171 ki31 0K 8K RUN 0 311.2H 96.19% idle: cpu0 > 10 root 1 171 ki31 0K 8K CPU1 1 271.4H 71.44% idle: cpu1 > 21 root 1 -68 - 0K 8K WAIT 1 48.8H 13.87% irq17: bge0 > 20 root 1 -68 - 0K 8K - 1 42.9H 11.72% em0 taskq > > Almost all the time irq17: bge0 and em0 taskq are on second cpu (1). > I use SCHED_4BSD scheduler. How can i make system to use two cores not one > for interrupt handling. In Linux it is possible to use SMP IRQ Affinity to attach IRQs to different CPUs. I wonder if there any way to do the same with FreeBSD? -- Oleksandr Samoylyk OVS-RIPE