From owner-freebsd-net@FreeBSD.ORG Mon Oct 24 17:54:33 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 DE320106564A for ; Mon, 24 Oct 2011 17:54:33 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 726928FC14 for ; Mon, 24 Oct 2011 17:54:33 +0000 (UTC) Received: by wwi18 with SMTP id 18so9104914wwi.31 for ; Mon, 24 Oct 2011 10:54:32 -0700 (PDT) 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=N8BIMSvOXzuI+W36Tga11atqS7exe+imIH8mbayZHGY=; b=vBAtbWUtupppx1FQoC2jF94iiPhGk/1KpDeKBlLAe45lWMWufjZ7NJLrMk8B9KqFRP IhUXGzJhEMavHYOuKtBcHBVfMcQnJmEKXcber0SosJRmKqnRLJ2jpnnN4yoNiURWqAEB i0xIef3aJJkFolL+ehq2IgqqizzIAMHHdjnB4= Received: by 10.227.27.165 with SMTP id i37mr9313075wbc.106.1319478872068; Mon, 24 Oct 2011 10:54:32 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id fy13sm40319391wbb.18.2011.10.24.10.54.28 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 24 Oct 2011 10:54:31 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 24 Oct 2011 10:52:52 -0700 From: YongHyeon PYUN Date: Mon, 24 Oct 2011 10:52:52 -0700 To: Nikolay Denev Message-ID: <20111024175252.GB4663@michelle.cdnetworks.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: Possible sge(4)/atphy(4) regression on RELENG_9? 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: Mon, 24 Oct 2011 17:54:33 -0000 On Mon, Oct 24, 2011 at 04:43:57PM +0300, Nikolay Denev wrote: > Hello, > > I've recently upgraded a box running RELENG_8 to RELENG_9 and immediately I noticed much slower network connection. > Running iperf shows about 20-30Mbits which was almost full GigE (~900Mbits) speed before. > > I'm noticing interface errors : > > [16:37]ndenev@nas:~% netstat -I sge0 > Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll > sge0 1500 00:0a:e4:86:62:fa 76114295 42197 0 103559806 10324 0 > sge0 1500 10.0.0.0 nas 76109575 - - 119109557 - - > > Both the switch and the card show 1000 full-duplex. > I've tried playing with rxcsum,txcsum,vlanhwtag,tso but disabling even all of them do not change anything. > I've tried different switch port and changed the cable. > > Here is devinfo for my hardware : > > sge0 pnpinfo vendor=0x1039 device=0x0191 subvendor=0x103c subdevice=0x2a70 class=0x020000 > atphy0 pnpinfo oui=0xc82e model=0x1 rev=0x6 at phyno=0 > > Of course all of this can mean hardware problem, I just want to ask if somebody is seeing something similar, since > there are quite a lot minibus related changes as far as I can see. > > I'll boot RELENG_8 again tomorrow and do a quick test again to verify that this is not a hardware issue. > I don't have sge(4) controller so it would be better to let us know which revision introduced the regression. Just looking over the code change didn't reveal the possible cause. BTW, I thought sge(4) shall use rgephy(4). Can you also verify whether sge(4) in stable/8 also use atphy(4)?