From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 11:32:55 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 568AA106567A for ; Tue, 28 Oct 2008 11:32:55 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from albion.azs.pwr.wroc.pl (albion.azs.pwr.wroc.pl [156.17.17.145]) by mx1.freebsd.org (Postfix) with ESMTP id 187AE8FC0C for ; Tue, 28 Oct 2008 11:32:54 +0000 (UTC) (envelope-from gizmen@blurp.pl) Received: from [10.8.1.27] (unknown [212.127.90.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by albion.azs.pwr.wroc.pl (Postfix) with ESMTPSA id 66EFC116F8; Tue, 28 Oct 2008 12:32:54 +0100 (CET) From: Bartosz Giza Organization: BLURP.pl To: freebsd-net@freebsd.org Date: Tue, 28 Oct 2008 13:32:52 +0100 User-Agent: KMail/1.9.7 References: <200810281235.53508.gizmen@blurp.pl> <4906ECDC.3040809@samoylyk.sumy.ua> In-Reply-To: <4906ECDC.3040809@samoylyk.sumy.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810281332.52725.gizmen@blurp.pl> Cc: Oleksandr Samoylyk 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 11:32:55 -0000 Tuesday 28 of October 2008 11:43:40 Oleksandr Samoylyk napisa=C5=82(a): > 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=20 > > 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? AFAIK freebsd does not support such thing. But it would be really quite nic= e=20 feature to have. Other thing what i think would be cool to have couple of processes which ar= e=20 responsible for polling (swi1:net) probably one per NIC. This would benefit= =20 from multi core systems (i think)