From owner-freebsd-net@FreeBSD.ORG Wed Mar 15 00:15:59 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10A4B16A427 for ; Wed, 15 Mar 2006 00:15:59 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2053643D46 for ; Wed, 15 Mar 2006 00:15:58 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1628937nzo for ; Tue, 14 Mar 2006 16:15:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=GfCnS6PaqanvUDUZ2nmIx1BEE7V/8YU/cMwsvGvaDAd3FduFdOK5COPF4FnpfN33W5w/qPlsamUT9RIOMfDOgI6yoaTAHxRVMURJPUwN1nZTf6LRhXEX4+S5IkGJawap5KyrIdQnpcZgJ4Tk5q9+2/pIKFkyp7uWPQebAKdwAoI= Received: by 10.36.220.68 with SMTP id s68mr1961318nzg; Tue, 14 Mar 2006 16:15:57 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.gmail.com with ESMTP id 14sm1223079nzp.2006.03.14.16.15.55; Tue, 14 Mar 2006 16:15:56 -0800 (PST) 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 k2F0I7AD053051 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 15 Mar 2006 09:18:07 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id k2F0I6iQ053050; Wed, 15 Mar 2006 09:18:06 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Wed, 15 Mar 2006 09:18:06 +0900 From: Pyun YongHyeon To: OxY Message-ID: <20060315001806.GA52826@cdnetworks.co.kr> References: <001101c64754$cbbd65d0$0201a8c0@oxy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001101c64754$cbbd65d0$0201a8c0@oxy> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: problem with Marwell gigabit performance 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: Wed, 15 Mar 2006 00:15:59 -0000 On Tue, Mar 14, 2006 at 11:48:14AM +0100, OxY wrote: > hi! > > i have a Marwell (SMC) gigabit ethernet card (sk0) and > have serious problems with performance.. > the machine is a pc, amd 2000+ xp, 512mb ram. > > tested with iperf (bidirectional test, udp transfer, not stream) > and got 8-15% packet drop when the system was idle. > There is a modified sk(4) driver at http://people.freebsd.org/~yongari/sk/sk_test/if_sk.c http://people.freebsd.org/~yongari/sk/sk_test/if_skreg.h Would you please give it try? I can't sure but you would get better results as the new driver uses one lock for standard MTU size and supports Tx TCP checksum offload and Rx IP checksum offload. I could push 32bit PCI NIC(DGE-530T) to the PCI bus limit on sparc64. > then tuned the sysctl with these settings: > > kern.ipc.maxsockbuf=81920000 > kern.ipc.nmbclusters=5000000000 > kern.ipc.somaxconn=8192 > net.inet.tcp.inflight.enable=1 > net.inet.raw.recvspace=4096 > net.inet.tcp.recvspace=131072 > kern.ipc.shmmax=409600000 > > with these i got around 3-7% packet drop, > but it's very high compared to zero :) > > my question is where/what should i optimize to not > have packet drop at all, or at least reduce it as much as > possible. > > thanks for your help! > > Csaba Banhalmi, HU -- Regards, Pyun YongHyeon