From owner-freebsd-questions@FreeBSD.ORG Sun Jul 3 11:09:34 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2194016A41C for ; Sun, 3 Jul 2005 11:09:34 +0000 (GMT) (envelope-from juhasaarinen@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1E3A43D45 for ; Sun, 3 Jul 2005 11:09:33 +0000 (GMT) (envelope-from juhasaarinen@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so568969wra for ; Sun, 03 Jul 2005 04:09:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=M2NhIapoNCv8XJ416SzA25F+Mly7TA5X90XJoKTLZtf7rkko/vzHO2PngNxxdAy/6EMcKYglZ1clIyeBC+f1mNLhbdyUJsrh+39BLX7Jfgu6IP5I3IAwuqOCfQA7uqpKAde6lPqiuEob+Cn2tP/YpqvBDidJUDsUuj86zWiE5y4= Received: by 10.54.27.8 with SMTP id a8mr2844077wra; Sun, 03 Jul 2005 04:02:38 -0700 (PDT) Received: by 10.54.4.67 with HTTP; Sun, 3 Jul 2005 04:02:37 -0700 (PDT) Message-ID: Date: Sun, 3 Jul 2005 23:02:38 +1200 From: Juha Saarinen To: Ted Mittelstaedt In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Cc: FreeBSD questions Subject: Re: How to troubleshoot slow network performance with Realtek 8169s? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Juha Saarinen List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2005 11:09:34 -0000 On 7/3/05, Ted Mittelstaedt wrote: >=20 > The Realtek is a cheap adapter. You can try hard-coding the > media type to see what happens, but the fact remains this is > nowhere near as good a card as the 82801B. As a result of this > there hasn't been that much attention to driver optimizations, > you can review the work here: >=20 > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/re/if_re.c >=20 > If playing around with the media type doesen't fix it you can > try a send-pr but your best off just pulling the card and > replacing it with another Intel, then mailing the card to one > of the driver developers. Maybe in 6 months to a year you > might see a faster driver in FreeBSD - or maybe not. Yeah, I know the 8169s isn't the flashest card in the universe and I don't mind donating a card or two to the developers, but with further testing -- assuming iperf isn't lying -- it seems the driver is OK and there's something happening further up the chain that I don't understand yet. What's weird is that with both 100 and 1000Mbit/s connections, the max speed is a quarter of the link speed when using applications such as ftp for transferring files. With iperf, I see 92Mbit/s on 100Mbit/s and 400-640Mbit/s on 1000mbit/s connections depending on the direction. --=20 Juha