From owner-freebsd-net@FreeBSD.ORG Thu Apr 28 08:25:20 2011 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 C6F9D106566B for ; Thu, 28 Apr 2011 08:25:20 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5A1998FC0A for ; Thu, 28 Apr 2011 08:25:19 +0000 (UTC) Received: by fxm11 with SMTP id 11so2374458fxm.13 for ; Thu, 28 Apr 2011 01:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=UbHSBhGgA8CkM/VdqMGw04Sab3aRRxQt4CCqudkguh0=; b=Nx1iQPLPUyV3Y1ZNIaPNNYrleKD0jyC78OgnIDWHgakU+k3KhWY0An5kHzE4fi+hfP gH1U3/ikS42AurGyCLUWt5MuRxKL1EmlnVHApK4ncaLLB24923T4bRhWsmldshu5ThuO JuYzyGWJCMerD6rkgp5FueLhivWY3Q4z13vWc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=TsmPXL9ylVs0JyNcEAuHzGHnoutd+VWbYY8qve9/SlBeXq9AuSHlL3CmHlmY/c1COE xeD9T/iJemNZO5+u76G1GFYzr9QiEGuyKQxuenDsOJ9L3r1styjbVGJOy9KH6MTYkZIh /Ps/HmuOpACGQ9BDDeGEHQoApjL3RgF1orD2E= MIME-Version: 1.0 Received: by 10.223.97.142 with SMTP id l14mr152808fan.111.1303977591183; Thu, 28 Apr 2011 00:59:51 -0700 (PDT) Received: by 10.223.20.145 with HTTP; Thu, 28 Apr 2011 00:59:51 -0700 (PDT) In-Reply-To: <20110428072946.GA11391@zephyr.adamsnet> References: <20110428072946.GA11391@zephyr.adamsnet> Date: Thu, 28 Apr 2011 02:59:51 -0500 Message-ID: From: Adam Vande More To: Adam Stylinski Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org Subject: Re: em0 performance subpar 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: Thu, 28 Apr 2011 08:25:21 -0000 On Thu, Apr 28, 2011 at 2:29 AM, Adam Stylinski wrote: > Hello, > > I have an intel gigabit network adapter (the 1000 GT w/chipset 82541PI) > which performs poorly in Freebsd compared to the same card in Linux. I've > tried this card in two different freebsd boxes and for whatever reason I get > poor transmit performance. I've done all of the tweaking specified in just > about every guide out there (the usual TCP window scaling, larger > nmbclusters, delayed acks, etc) and still I get only around 600mbps. I'm > using jumbo frames, with an MTU of 9000. I'm testing this with iperf. > While I realize that this may not be the most realistic test, linux hosts > with the same card can achieve 995Mbit/s to another host running this. When > the Freebsd box is the server, Linux hosts can transmit to it at around 800 > something Mbit/s. I've increased the transmit descriptors as specified in > the if_em man page, and while that gave me 20 or 30 more mbit/s, my transmit > performance is still below normal. > > sysctl stats report that the card is trigger a lot of tx_desc_fail2: > dev.em.0.tx_desc_fail2: 3431 > > Maybe try EM_MULTIQUEUE? http://lists.freebsd.org/pipermail/freebsd-net/2011-April/028664.html -- Adam Vande More