From owner-freebsd-net@FreeBSD.ORG Sat Mar 18 11:44: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 1725C16A422; Sat, 18 Mar 2006 11:44: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 7B6F343D48; Sat, 18 Mar 2006 11:44: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 77A53119CF5; Sat, 18 Mar 2006 12:43:39 +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 47312-08; Sat, 18 Mar 2006 12:43:39 +0100 (CET) Received: from oxy (dsl217-197-187-71.pool.tvnet.hu [217.197.187.71]) by green.field.hu (Postfix) with ESMTP id B75B2119CC4; Sat, 18 Mar 2006 12:43:38 +0100 (CET) Message-ID: <000a01c64a81$45eb6850$0201a8c0@oxy> From: "OxY" To: Date: Sat, 18 Mar 2006 12:44:10 +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 Cc: freebsd-performance@freebsd.org Subject: packet drop with intel gigabit / marwell gigabit 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: Sat, 18 Mar 2006 11:44:13 -0000 hi! i had the packet drop problem with the marwell yukon gigabitcard: (system is an amd 2000+xp, 512mb ram, fbsd 6.0-p5) when the apache ran, with no http, just used to share files and the = traffic was 2-2,5MB/S i had 14-17% packet drop on the gigabit interface.. with the sysctl i succesfully pulled it down to 12-14%, but it was = terrible,=20 so i bought an intel pro/1000 gt. with this i have 3-6% drop with same traffic load on the other = interface.. when i stop the apache packet drop falls down to 0-0.1%, which is great. but with apache it's terrible.. first i changed some sysctl settings, benchmarked all change with iperf (udp test).i changed these: kern.maxfiles=3D65536 kern.ipc.maxsockbuf=3D50000000 kern.ipc.nmbclusters=3D5000000 kern.ipc.somaxconn=3D4096 net.inet.tcp.inflight.enable=3D1 net.inet.tcp.inflight.max=3D10737254400 net.inet.tcp.recvspace=3D65536 kern.ipc.shmmax=3D409600000 net.inet.tcp.delayed_ack=3D0 kern.polling.burst_max=3D1000 kern.polling.each_burst=3D120 kern.polling.idle_poll=3D1 kern.polling.user_frac=3D5 kern.polling.reg_frac=3D50 kern.polling.enable=3D1 net.inet.udp.maxdgram=3D57344 i have three variables in load.conf: kern.ipc.maxsockets=3D"81920" kern.maxusers=3D"512" kern.ipc.nsfbufs=3D"65536" then i tried 4BSD and ULE scheduler, ULE was better, but i accept any = suggestion and tip :) and after all i realized that it's not a bit better, than before... please give me some hints, advices, tips, sysctl settings, kernel config = parameters, anything to get rid of the packet loss.. here's my kernel config: http://field.hu/kernconf.txt thanks!