From owner-freebsd-current@FreeBSD.ORG Mon Jan 11 20:36:50 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01B8E1065672 for ; Mon, 11 Jan 2010 20:36:50 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-gx0-f209.google.com (mail-gx0-f209.google.com [209.85.217.209]) by mx1.freebsd.org (Postfix) with ESMTP id AA9EE8FC0A for ; Mon, 11 Jan 2010 20:36:49 +0000 (UTC) Received: by gxk1 with SMTP id 1so9715475gxk.14 for ; Mon, 11 Jan 2010 12:36:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=7INYYC9/8VP5BZNftOmnOdLiCYrqxBmcvQT5Ib3PMu0=; b=WESLXl1hzlyIyussHbR41kqEEAwTIFO4WMhTCAXGI7HKWNvKaBXZ9fCxfgioxDswCE 9RSEGdaDTYuydKw/YOipgEI3CiTNCCkFdsVkZLkvmqPczbEz1gnMtDZsAcMa1uVtwcxh WxE7Bh0PUyZC0AcPWcbJnoMsn9+2BLM4v2BDI= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=qMmJtsgMlW430dZzXpfhDC/QAY5j7a620TeNchWf9jFbfrDH3/YqexjB3BzaMrOAcr 8eMSfPVEur7tIzrRjFRs2OJ7i7KjLI5g41LwU8S9+0bvs9IdNyn7xGJXS0Xhz5DvlYXn hchn8BP2UvRJV/M7tjmXoy1kmD1fvzsuqXxWk= Received: by 10.150.105.3 with SMTP id d3mr10573474ybc.293.1263242203906; Mon, 11 Jan 2010 12:36:43 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 21sm9060239ywh.31.2010.01.11.12.36.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 11 Jan 2010 12:36:42 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 11 Jan 2010 12:35:57 -0800 From: Pyun YongHyeon Date: Mon, 11 Jan 2010 12:35:57 -0800 To: David Ehrmann Message-ID: <20100111203557.GB1228@michelle.cdnetworks.com> References: <4B40AFFA.6090706@gmail.com> <20100103221630.GV1166@michelle.cdnetworks.com> <4B47B4F6.8030106@gmail.com> <20100109013145.GG18529@michelle.cdnetworks.com> <4B4ACD68.5030907@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B4ACD68.5030907@gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org Subject: Re: vge traffic problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2010 20:36:50 -0000 On Sun, Jan 10, 2010 at 11:04:08PM -0800, David Ehrmann wrote: > Pyun YongHyeon wrote: > >On Fri, Jan 08, 2010 at 02:43:02PM -0800, David Ehrmann wrote: > > > >>It seems to be working, but I'm going to keep testing it before I > >> > >>proclaim it fixed. Will these changes be in 8.1? > >> > I spoke too soon. Now an nfs client is having problems. I ran iperf > and saw what looks like a decent rx connection, but a tx connection > where up to 2% of UDP packets are dropped (see > http://pastebin.com/m1c067417 ). If both sides are gigabit connections, > I see more like 13%. If I flip client and server sides, the results > still show issues with vge tx. > Does netstat(1) also agree on the statistics? Another thing you may want to see is hardware MAC statistics. See the output of `sysctl dev.vge.0.stats` and check how many dropped counters are changed. > I ran iperf like this: iperf -s -u -r and iperf -c 10.0.x.x -u -r. > Other machines have problems with the vge interface, but drop no more > than a packet between themselves. > > This doesn't happen with my vr interface. I gave it an IP in a > 192.168.x.x subnet and repeated the test. Most of the time, zero > packets were dropped. When packets were dropped, it was fewer than 2%. > If receiver drops TX UDP frame sent by vge(4) would you try disabling TX checksum offloading of vge(4)? If packet drop happens only with UDP frames it could be checksum offload bug. Does your controller is VT6130(PCIe)? > Are there any known bugs that cause UDP tx packet drops on vge? No, I'm not aware of this. If you can narrow down which packets were dropped and can capture packets with tcpdump that would be great help to analyze the issue.