From owner-freebsd-net@FreeBSD.ORG Mon Sep 13 15:08:34 2010 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 304531065670 for ; Mon, 13 Sep 2010 15:08:34 +0000 (UTC) (envelope-from admin@shtorm.com) Received: from ns.shtorm.com (ns.shtorm.com [195.62.14.3]) by mx1.freebsd.org (Postfix) with ESMTP id E31208FC14 for ; Mon, 13 Sep 2010 15:08:33 +0000 (UTC) Received: from [10.66.6.77] (unknown [10.66.6.77]) by ns.shtorm.com (Postfix) with ESMTP id 8FB3B1A0C33; Mon, 13 Sep 2010 17:48:53 +0300 (EEST) From: Shtorm To: Marcos =?ISO-8859-1?Q?Vin=EDcius?= Buzo In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Mon, 13 Sep 2010 17:52:08 +0300 Message-ID: <1284389528.2196.87.camel@stormi-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 8bit Cc: freebsd-net Subject: Re: What about net.isr ? 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: Mon, 13 Sep 2010 15:08:34 -0000 On Mon, 2010-09-13 at 10:18 -0300, Marcos Vinícius Buzo wrote: > Hi all. > > I have a dual Intel Xeon E5506 box running mpd5, dummynet and pf. Sometimes > i get about 500+ pppoe connections to this machine, the network traffic goes > to 30mbps and CPU usage hits 100%. I would like to know if netisr would help > me using the other processor cores, and where I can get docs about it. > My network card is a dual port Broadcom NetXtreme II BCM5709. > > Thanks in advance > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" In case of pppoe server netisr does not gave me any benefits, it tries to handle all traffic with one thread. Have no idea why, maybe it was my mistake in setup. Check what your broadcom card can do, if it have msi-x with multiple vectors it is better to setup number of vectors to number of cores (maybe number of cores -1) and set sysctls net.isr.direct=1 and net.isr.direct_force=1. In this case traffic processing will be divided between cpu cores and your router will feel much better. I'm using intel network cards on single xeon 5620 for pppoe + dummynet + nat, box handles up to 70 kpps traffic 800+ connections. Also, megabit/s does not matter for routers, packets/s is a thing that gives real cpu load.