From owner-freebsd-net@FreeBSD.ORG Fri Jan 13 22:43:10 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F24B3106564A for ; Fri, 13 Jan 2012 22:43:10 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 820B38FC13 for ; Fri, 13 Jan 2012 22:43:10 +0000 (UTC) Received: by iagz16 with SMTP id z16so264996iag.13 for ; Fri, 13 Jan 2012 14:43:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=0tjPU/cw4iubfOtP+dYKyow7cZr7AwYsiiD6rvjewRQ=; b=mSQtg6kDyopvrIzShLiWKIoi840PoenX22T6Mep5rWLvj5UgDHcoEdxsIKXaPKJLpg OUCAor91lAPGukcErUknM+ibBZVFx3syZ5FzaUMUfGs/cSzhs2c1F35B4L29J6sfIdL4 dgT8Wt8IHQSopsyaotFHwC9LN5+NCVhPkeR3w= Received: by 10.50.195.129 with SMTP id ie1mr2488113igc.29.1326492950607; Fri, 13 Jan 2012 14:15:50 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id g34sm33227167ibk.10.2012.01.13.14.15.47 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Jan 2012 14:15:49 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Fri, 13 Jan 2012 14:15:48 -0800 From: YongHyeon PYUN Date: Fri, 13 Jan 2012 14:15:48 -0800 To: "Vladislav V. Prodan" Message-ID: <20120113221548.GA18199@michelle.cdnetworks.com> References: <4F109F79.5090406@ukr.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F109F79.5090406@ukr.net> User-Agent: Mutt/1.4.2.3i Cc: net@freebsd.org Subject: Re: Lack of performance re0 (RTL8111/8168B) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2012 22:43:11 -0000 On Fri, Jan 13, 2012 at 11:17:45PM +0200, Vladislav V. Prodan wrote: > > Tell me, what a performance in pps a network card RTL8111/8168B? > Can I somehow increase it? > Experimentally, since it begins to fall off 80Kpps: ( > RX performance number will show much better than that but TX is major bottleneck of controller. I tried hard to enhance TX performance for the controller but I'm under the impression that that number would be the maximum(around 90Kpps) and this is also similar number what I got on Linux. Given that re(4) controllers are for non-server grade systems I wouldn't be surprised to see that number. If you need higher pps, choose controllers targeted for servers. Alternatively, low cost controllers from JMicron/Atheros also show decent TX/RX performance numbers. > > Jan 13 18:12:49 XXX kernel: re0: watchdog timeout > Jan 13 18:12:49 XXX kernel: re0: link state changed to DOWN > Jan 13 18:12:53 XXX kernel: re0: link state changed to UP > I'm more concerned on watchdog timeouts than performance numbers. Would you show me re(4) related message from dmesg(8) output? And if you know how to reliably trigger the watchdog timeout, would you share with us? > > > # uname -a > FreeBSD pvppw.org 9.0-PRERELEASE FreeBSD 9.0-PRERELEASE #1: Mon Dec 5 > 14:56:07 EET 2011 root@XXX:/usr/obj/usr/src/sys/XXX.2 amd64 > > # pciconf -lv | grep -A 4 "re0@" > re0@pci0:2:0:0: class=0x020000 card=0x84321043 chip=0x816810ec rev=0x06 > hdr=0x00 > vendor = 'Realtek Semiconductor Co., Ltd.' > device = 'RTL8111/8168B PCI Express Gigabit Ethernet controller' > class = network > subclass = ethernet > RealTek controllers tend to use the same PCI id for different controllers so pciconf(8) does not help here. re(4) may have shown more details on your controller in dmesg output.