From owner-freebsd-net@FreeBSD.ORG Wed Jul 16 16:48:45 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A8237469 for ; Wed, 16 Jul 2014 16:48:45 +0000 (UTC) Received: from frv199.fwdcdn.com (frv199.fwdcdn.com [212.42.77.199]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 63D2A2B1D for ; Wed, 16 Jul 2014 16:48:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=ffe; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-Id:Cc:To:Subject:From:Date; bh=2QKZqjbv5cWo1EgFrKKC0i3onHDlXPR7VqDJLQ3KNVs=; b=m+0CIhkFUZe5Dp7WutUhTgDIIOy9U4czd8kz434RO5IxhCWFUYdToHj/qHPjDidAkCT8wuVB09WYS1AFDUAPNhg8YT8hNzzzsbBrR8T8SkGSNsu3hzaV3wf0qECAXj2kp5g4RQa7E1XG2rynQ7gFykvklouqB2WqPljSDfuC5j4=; Received: from [10.10.10.35] (helo=frv35.fwdcdn.com) by frv199.fwdcdn.com with smtp ID 1X7SNd-000HhT-Re for freebsd-net@freebsd.org; Wed, 16 Jul 2014 19:48:33 +0300 Date: Wed, 16 Jul 2014 19:48:33 +0300 From: Vladislav Prodan Subject: Re: nic performance: bce vs em To: Cristiano Deana X-Mailer: mail.ukr.net 5.0 Message-Id: <1405529290.276499188.5r7c4x15@frv35.fwdcdn.com> In-Reply-To: References: MIME-Version: 1.0 Received: from universite@ukr.net by frv35.fwdcdn.com; Wed, 16 Jul 2014 19:48:33 +0300 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: binary Content-Disposition: inline Cc: FreeBSD net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2014 16:48:45 -0000 --- Original message --- From: "Cristiano Deana" Date: 16 July 2014, 18:32:44 > Hi all, > > I'm gonna setup a Dell 1955 to use as router. Dual xeon dual core, > with these network cards: > > # pciconf -lv | grep -B2 network > vendor = 'Broadcom Corporation' > device = 'NetXtreme II BCM5708S Gigabit Ethernet' > class = network > -- > vendor = 'Intel Corporation' > device = '82546GB Gigabit Ethernet Controller' > class = network > -- > vendor = 'Intel Corporation' > device = '82546GB Gigabit Ethernet Controller' > class = network > -- > vendor = 'Broadcom Corporation' > device = 'NetXtreme II BCM5708S Gigabit Ethernet' > class = network > > Now I have a similar machine, with only one CPU and using vlan based interfaces. > A week ago I started collect flow data from interfaces with ng_flow > and I have a high CPU usage: > CPU 0: 0.0% user, 0.0% nice, 0.0% system, 21.7% interrupt, 78.3% idle > CPU 1: 0.0% user, 0.0% nice, 1.6% system, 23.6% interrupt, 74.8% idle > This is right now, with low traffic, so I'm gonna upgrade with new system > Try to do these steps: 1) Go to the site DELL and see update firmware for embedded NICs. 2) Get a output sysctl kern.eventtimer.choice, and if there is LAPIC, try to change eventtimer 3) Disable options RXCSUM, TXCSUM, TSO4 from network cards Broadcom: ifconfig bce0 -rxcsum -txcsum -tso .... ifconfig bce1 -rxcsum -txcsum -tso .... -- Vladislav V. Prodan System & Network Administrator support.od.ua