From owner-freebsd-net@FreeBSD.ORG Sat Oct 25 08:32:30 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 D01981065675 for ; Sat, 25 Oct 2008 08:32:30 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.190]) by mx1.freebsd.org (Postfix) with ESMTP id 61EEF8FC13 for ; Sat, 25 Oct 2008 08:32:30 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by ti-out-0910.google.com with SMTP id d27so736906tid.3 for ; Sat, 25 Oct 2008 01:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=NzdMn4jotgdIa30mMJwylyisrC/yfP9duDRxuRhlMHU=; b=bIiWoaOmo+lmxa0G4noVayv7sKaeGtuxt/SL5DdfkATOAPRULd6eNocgsQHY+x9N+l FJdSQah5l89t3eeL7hnphZ7g9Uyp/xY4KKjGLo4OA6ITeQz0NgnrIUYC9mB6CrUuw7f7 Uz8WFPmh5yvY7UfYg/5TuDFhUkeUcCSt4ryBU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=I9CmTUAtfeXid5hcDwf6pAIqGk3PCiBBpM/8SO8kwatcUHdrT7fWqDaG6U/2Nc5XuF 0VRlx7IxWhQskcbWC4HZQTyaKn2+OkrYrZ1e3DrKNlmBBRolBI5ZbdySYFKj78l/GMpr ahkLzyZQbErNkZxAHmsSUOhVPvdgIeDOvSziI= Received: by 10.110.49.2 with SMTP id w2mr1910152tiw.56.1224923549253; Sat, 25 Oct 2008 01:32:29 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id j5sm1925957tid.11.2008.10.25.01.32.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 25 Oct 2008 01:32:27 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m9P8USKJ060667 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 25 Oct 2008 17:30:28 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m9P8URpM060666; Sat, 25 Oct 2008 17:30:27 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Sat, 25 Oct 2008 17:30:27 +0900 From: Pyun YongHyeon To: kordex - Message-ID: <20081025083027.GD59215@cdnetworks.co.kr> References: <8b8dd87a0810230602i39bbb291h6777f41022d3f0d4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8b8dd87a0810230602i39bbb291h6777f41022d3f0d4@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: nfe driver bad performance on FreeBSD 7 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: Sat, 25 Oct 2008 08:32:30 -0000 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