From owner-freebsd-net@FreeBSD.ORG Wed Mar 15 15:50:57 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 60D6416A420 for ; Wed, 15 Mar 2006 15:50:57 +0000 (UTC) (envelope-from oxy@field.hu) Received: from green.field.hu (green.field.hu [217.20.130.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA85243D5D for ; Wed, 15 Mar 2006 15:50:56 +0000 (GMT) (envelope-from oxy@field.hu) Received: from localhost (green.field.hu [217.20.130.28]) by green.field.hu (Postfix) with ESMTP id 831C9119D4C; Wed, 15 Mar 2006 16:50:46 +0100 (CET) Received: from green.field.hu ([217.20.130.28]) by localhost (green.field.hu [217.20.130.28]) (amavisd-new, port 10024) with ESMTP id 28166-07; Wed, 15 Mar 2006 16:50:46 +0100 (CET) Received: from oxy (dsl217-197-187-71.pool.tvnet.hu [217.197.187.71]) by green.field.hu (Postfix) with ESMTP id 1B1C2119CC4; Wed, 15 Mar 2006 16:50:46 +0100 (CET) Message-ID: <000a01c64848$41d6f710$0201a8c0@oxy> From: "OxY" To: , References: <001101c64754$cbbd65d0$0201a8c0@oxy><20060315001806.GA52826@cdnetworks.co.kr> <000f01c64846$c7148840$0201a8c0@oxy> Date: Wed, 15 Mar 2006 16:51:00 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Virus-Scanned: by Amavisd-new (Spamassassin+Razor2+Pyzor+DCC+Bayes db, Clamd Antivirus) at field.hu Cc: Subject: Re: problem with Marwell gigabit performance X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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 15:50:57 -0000 i forgot to mention the load is twice, than before and the transfer is speed is decreased from 20mbyte/s to 9mbyte/s ----- Original Message ----- From: "OxY" To: Sent: Wednesday, March 15, 2006 4:40 PM Subject: Re: problem with Marwell gigabit performance > with the modified sk(4) driver i got the following: > > sk0: flags=8843 mtu 1500 > options=2b > > the performance didn't changed, packet drops as usual... > when the system is 100% idle, packet drop is around 1%, > when i got ~0.80 load on the other (fxp0) interface, packet drop is 8-11% > may i change the card to intel or 3com, or what to do? > > ----- Original Message ----- > From: "Pyun YongHyeon" > To: "OxY" > Cc: > Sent: Wednesday, March 15, 2006 1:18 AM > Subject: Re: problem with Marwell gigabit performance > > >> 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 > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"