From owner-freebsd-net@FreeBSD.ORG Fri Jan 13 22:35:51 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 8E3A110656E6 for ; Fri, 13 Jan 2012 22:35:51 +0000 (UTC) (envelope-from universite@ukr.net) Received: from otrada.od.ua (universite-1-pt.tunnel.tserv24.sto1.ipv6.he.net [IPv6:2001:470:27:140::2]) by mx1.freebsd.org (Postfix) with ESMTP id D5F558FC0C for ; Fri, 13 Jan 2012 22:35:50 +0000 (UTC) Received: from [IPv6:2001:470:28:140:bc5b:f133:cc84:f629] ([IPv6:2001:470:28:140:bc5b:f133:cc84:f629]) (authenticated bits=0) by otrada.od.ua (8.14.4/8.14.5) with ESMTP id q0DMZhe4010701; Sat, 14 Jan 2012 00:35:43 +0200 (EET) (envelope-from universite@ukr.net) Message-ID: <4F10B1B3.6090908@ukr.net> Date: Sat, 14 Jan 2012 00:35:31 +0200 From: "Vladislav V. Prodan" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: pyunyh@gmail.com References: <4F109F79.5090406@ukr.net> <20120113221548.GA18199@michelle.cdnetworks.com> In-Reply-To: <20120113221548.GA18199@michelle.cdnetworks.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (otrada.od.ua [IPv6:2001:470:28:140::5]); Sat, 14 Jan 2012 00:35:43 +0200 (EET) X-Spam-Status: No, score=-97.7 required=5.0 tests=FREEMAIL_FROM,RDNS_NONE, SPF_SOFTFAIL,T_TO_NO_BRKTS_FREEMAIL,USER_IN_WHITELIST autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mary-teresa.otrada.od.ua 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 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:35:51 -0000 14.01.2012 0:15, YongHyeon PYUN wrote: > 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. That's why I would like to get some numerical limitations of the controller re (4). While there is no way to put a network card from Intel. > >> >> 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? See dmesg output below. > And if you know how to reliably trigger the watchdog timeout, would > you share with us? DDoS attack has undergone server and choked these packages: ( Trafshow showed a peak of 110K pps, but immediately operational watchdog timeout. I would appreciate help in setting up a network interface, so as long as it is not turned off by such scams. >> >> >> # 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. > Jan 13 18:57:03 XXX kernel: re0: port 0xe800-0xe8ff mem 0xfcfff000-0xfcffffff,0xfcffffff,0xfcff8000-0xfcffbfff irq 18 at device 0.0 on pci2 Jan 13 18:57:03 XXX kernel: re0: Using 1 MSI-X message Jan 13 18:57:03 XXX kernel: re0: Chip rev. 0x2c800000 Jan 13 18:57:03 XXX kernel: re0: MAC rev. 0x00000000 Jan 13 18:57:03 XXX kernel: miibus0: on re0 Jan 13 18:57:03 XXX kernel: rgephy0: PHY 1 on miibus0 Jan 13 18:57:03 XXX kernel: rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow Jan 13 18:57:03 XXX kernel: re0: Ethernet address: 14:da:e9:75:5f:ee -- Vladislav V. Prodan System & Network Administrator http://support.od.ua +380 67 4584408, +380 99 4060508 VVP88-RIPE