From owner-freebsd-net@FreeBSD.ORG Tue Oct 28 17:53:23 2008 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 894E31065674 for ; Tue, 28 Oct 2008 17:53:23 +0000 (UTC) (envelope-from kordex@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id 3A50C8FC13 for ; Tue, 28 Oct 2008 17:53:23 +0000 (UTC) (envelope-from kordex@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so649947yxb.13 for ; Tue, 28 Oct 2008 10:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=2uiJLZrpJ0W32dN20Dgv9EHPoFSsKBdIjXwW0jHMnrM=; b=pbXbDrd6u6PljS+jfzGE2ClVHAgK1w8yTUzMuEfiILVmg4CGTX3cD0yt2OQIncu8pC rb6QOMDwoi2DQU3NNLXKud0/IPG5xOPtijyfio0w+93fK+hWMhJb6maH2/sOIj/b3jVY ckuQWma5zr8rDkFnfKqejO7+AkWSVH+6KMz5w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=oYwlTRR7IdYhidwXpnL1zDHpT+WzI2ojsyaHDq0WKyusYvHK2yTtXqUIRgtT/tVYLT r5y3ZpgTEzQNUfqb65B45x7Y/ZoGCaZewVLCsnrI8zjex4C/lt24GbOiXWgmGkVU3Zi8 gyGF8FzsfSfLl5mCsBFHfBZ6hEG11uWtPVodY= Received: by 10.187.243.3 with SMTP id v3mr713102far.100.1225216400857; Tue, 28 Oct 2008 10:53:20 -0700 (PDT) Received: by 10.187.207.12 with HTTP; Tue, 28 Oct 2008 10:53:20 -0700 (PDT) Message-ID: <8b8dd87a0810281053iccbd10we4d1687ceba0a89f@mail.gmail.com> Date: Tue, 28 Oct 2008 17:53:20 +0000 From: "kordex -" To: freebsd-net@freebsd.org In-Reply-To: <20081025083027.GD59215@cdnetworks.co.kr> MIME-Version: 1.0 References: <8b8dd87a0810230602i39bbb291h6777f41022d3f0d4@mail.gmail.com> <20081025083027.GD59215@cdnetworks.co.kr> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: nfe driver bad performance on FreeBSD 7 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: Tue, 28 Oct 2008 17:53:23 -0000 I found the reason for bad performance. It also affected the non-free nvidia glx driver. It was options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions not set in the kernel configuration. --Mikko Kortelainen 2008/10/25 Pyun YongHyeon > On Thu, Oct 23, 2008 at 04:02:48PM +0300, kordex - wrote: > > Same issue as > > > http://unix.derkeiler.com/Mailing-Lists/FreeBSD/net/2008-09/msg00278.html > > > > I got HP Pavilion dv6646eo laptop with same network chip. Max throughput > is > > 800kB/s with scp. same with generic kernel. > > > > nfe0: flags=8843 metric 0 mtu > 1500 > > options=8 > > ether 00:00:00:00:00:00 > > inet 192.168.1.200 netmask 0xffffff00 broadcast 192.168.1.255 > > media: Ethernet autoselect (100baseTX ) > > status: active > > lilian# > > > > MAC being all zeros is not done by me. It's BIOS doing that. I wonder if > > that can cause things like this. No PXE Boot for me :| Should I send > this to > > warranty for that? > > > > Don't use all zeroed ethernet address. You can assign fake ethernet > address to nfe(4) with "ifconfig nfe0 ether 00:01:02:03:04:05". > The problem is why nfe(4) got all zeord station address from > controller. Does nve(4) also show the same ethernet address? > > > lilian# uname -a > > FreeBSD lilian.xnet.kx 7.0-RELEASE FreeBSD 7.0-RELEASE #3: Sat Sep 27 > > 20:36:01 UTC 2008 root@lilian.xnet.kx > :/usr/obj/usr/src/sys/LILIAN_KERN > > i386 > > > > > > lilian# dmesg > > Copyright (c) 1992-2008 The FreeBSD Project. > > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > > The Regents of the University of California. All rights > reserved. > > FreeBSD is a registered trademark of The FreeBSD Foundation. > > FreeBSD 7.0-RELEASE #3: Sat Sep 27 20:36:01 UTC 2008 > > root@lilian.xnet.kx:/usr/obj/usr/src/sys/LILIAN_KERN > > Timecounter "i8254" frequency 1193182 Hz quality 0 > > CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-58 (1908.67-MHz 686-class > > CPU) > > Origin = "AuthenticAMD" Id = 0x60f81 Stepping = 1 > > > > [...] > > > nfe0: port 0x30e0-0x30e7 mem > > 0xf2487000-0xf2487fff irq 20 at device 6.0 on pci0 > > miibus0: on nfe0 > > rgephy0: PHY 1 on miibus0 > > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > > 1000baseT-FDX, auto > > nfe0: [FILTER] > > There was one report of MCP65's poor performance but he said it > happens on 1000Mbps link only. Normally poor network performance > comes from speed/duplex mismatch. Does link partner also agree on > resolved speed/duplex of nfe(4)? Would you show me the output of > "netstat -ndI nfe0"? > > nfe(4) in 8-CURRENT supports hardware MAC counters and the counters > give us very valuable information to diagnose driver issues. Would > you try latest CURRENT and show me the output of > "sysctl dev.nfe.0.stats" after some network activities? > > -- > Regards, > Pyun YongHyeon >