From owner-freebsd-stable@FreeBSD.ORG Fri Dec 11 00:09:04 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 087621065676 for ; Fri, 11 Dec 2009 00:09:04 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-qy0-f203.google.com (mail-qy0-f203.google.com [209.85.221.203]) by mx1.freebsd.org (Postfix) with ESMTP id AAFAC8FC15 for ; Fri, 11 Dec 2009 00:09:03 +0000 (UTC) Received: by qyk41 with SMTP id 41so189841qyk.29 for ; Thu, 10 Dec 2009 16:09:03 -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=+uw1ClzOzumC1PWEHSbCBaYbL18fPvpEzQsgpJh8p50=; b=iooG+2oKgq4pClEoj3mg/VqZAwAIX+aCf+ya49pe1ySr6ylvsxw9dZJPaSWKWsihkp lAU/eutOaxG3AbeXeW5+y96lKWs/AUHuXwzRAmaL0ppQkMjlSSzBLg/lY/mSADpJdP1t Jum2v3bZNiECtpzpnr46Ccb0IGeHZcs4jKiNg= 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=hzdtlLrF/PUsTqOunswxenTPC3Fn26ifz06Tv5nbWJ0hjdrj1dyUTfQkuNTwzQgGXZ 0QoFsX8l7KDjHmbXs0x1jUZNovMZw4o3b24MNIxRQTMt8qH5fheYZX0XKQriasEKKxes 6mKKQwFfNL2YUCPUx1GWulrX+AgZ2sfnOUCC0= Received: by 10.224.81.81 with SMTP id w17mr410254qak.382.1260490142870; Thu, 10 Dec 2009 16:09:02 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 21sm1072840qyk.8.2009.12.10.16.09.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 10 Dec 2009 16:09:02 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 10 Dec 2009 16:08:49 -0800 From: Pyun YongHyeon Date: Thu, 10 Dec 2009 16:08:49 -0800 To: Yoshiaki Kasahara Message-ID: <20091211000848.GK10121@michelle.cdnetworks.com> References: <20091204173601.GD16491@michelle.cdnetworks.com> <20091205.032645.157250901747305575.kasahara@nc.kyushu-u.ac.jp> <20091204184301.GG16491@michelle.cdnetworks.com> <20091208.105207.127111509315693955.kasahara@nc.kyushu-u.ac.jp> <20091208180836.GL1366@michelle.cdnetworks.com> <20091210215249.GG10121@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091210215249.GG10121@michelle.cdnetworks.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-stable@freebsd.org Subject: Re: vge problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Dec 2009 00:09:04 -0000 On Thu, Dec 10, 2009 at 01:52:49PM -0800, Pyun YongHyeon wrote: > On Tue, Dec 08, 2009 at 10:08:36AM -0800, Pyun YongHyeon wrote: > > On Tue, Dec 08, 2009 at 10:52:07AM +0900, Yoshiaki Kasahara wrote: > > > On Fri, 4 Dec 2009 10:43:01 -0800, > > > Pyun YongHyeon said: > > > > > > >> before I replaced vge(4). I guess the system froze while initializing > > > >> vge(4), but I'm not really sure actually. > > > > > > > > Yes, that's also possible. But I can't explain how the patch can > > > > freeze the box. Another user also reported the similar vge(4) issue > > > > in private mail and tried the same patch and he could successfully > > > > boot with patched vge(4). Unfortunately the issue does not seem to > > > > fix his issue. I'm still working on it. > > > > > > > >> > > > >> What can I do to narrow the cause of problems? Is it useful to build > > > >> kernel with options KDB and DDB? > > > >> > > > > > > > > Yes. > > > > > > Ok, now I'm ready to boot a DDB enabled kernel to try kernel debugging > > > on my PC. I can't read email during debugging my PC under current > > > configuration, so could you please tell me any specific instructions > > > to collect information you need? I'm reading the Handbook now, but I'm > > > not very sure... > > > > > > > Sorry, another user also reported similar problem in my patch. I > > have to look closely before doing any further testing. Since I've > > ordered the controller I would get access to hardware in near > > future. I'll let you know when I have a working patch. > > > > FYI: I received ordered hardware and fixed the patch to make it > work again. Try the patch at the following URL. > http://people.freebsd.org/~yongari/vge/vge.busdma.diff2 > > The TCP/UDP bulk Tx performance seem to be really poor(less than > 700Mbps) and vge(4) generates too many interrupts(more than 40k > interrupts/s). Rx performance looks reasonable(about 928Mbps) > though. I'll have to see what triggers its poor Tx performance > after fixing TCP connection stall issue. While reading the code again I found some suspicious part which could be related with your issue. The controller's CMZ field has 3bits so it can handle 7 fragments of a TX frame. However, controller wants to see number of fragments + 1 in this field which means we can't use all 7 fragments in a TX descriptor. I changed the patch to reduce number of TX fragments to 6. Does the following patch make any difference for you? http://people.freebsd.org/~yongari/vge/vge.busdma.diff3