From owner-freebsd-net@FreeBSD.ORG Tue Mar 14 10:48:13 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 90D5216A41F for ; Tue, 14 Mar 2006 10:48:13 +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 0E0FF43D45 for ; Tue, 14 Mar 2006 10:48:12 +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 B8A9B119D4E for ; Tue, 14 Mar 2006 11:46:19 +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 32924-02 for ; Tue, 14 Mar 2006 11:46:19 +0100 (CET) Received: from oxy (dsl217-197-187-71.pool.tvnet.hu [217.197.187.71]) by green.field.hu (Postfix) with ESMTP id 5CBE5119CC4 for ; Tue, 14 Mar 2006 11:46:19 +0100 (CET) Message-ID: <001101c64754$cbbd65d0$0201a8c0@oxy> From: "OxY" To: Date: Tue, 14 Mar 2006 11:48:14 +0100 MIME-Version: 1.0 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 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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: Tue, 14 Mar 2006 10:48:13 -0000 hi! i have a Marwell (SMC) gigabit ethernet card (sk0) and=20 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. then tuned the sysctl with these settings: kern.ipc.maxsockbuf=3D81920000 kern.ipc.nmbclusters=3D5000000000 kern.ipc.somaxconn=3D8192 net.inet.tcp.inflight.enable=3D1 net.inet.raw.recvspace=3D4096 net.inet.tcp.recvspace=3D131072 kern.ipc.shmmax=3D409600000 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