From owner-freebsd-net@FreeBSD.ORG Mon Nov 24 04:23:11 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2CD31065672 for ; Mon, 24 Nov 2008 04:23:11 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.184]) by mx1.freebsd.org (Postfix) with ESMTP id 5DE208FC0A for ; Mon, 24 Nov 2008 04:23:11 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by ti-out-0910.google.com with SMTP id a1so1033299tib.3 for ; Sun, 23 Nov 2008 20:23:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from :to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=Q5Xohe4f27jCTFOZmYfrEM/EnWYqlo6iFD2vd7gyUHA=; b=P41sAGcIHQRWdhlIt44ug8tvgvRsXzD2Fxr3TotJOlSopiNk78ZuGPvgYarEe6fWHW bBTbtc6ALFSE0Z+EFGxPDCnHm8JYlnpKshRVvonK4wlkh3oOg90B038SRY4SoLVGFnN+ C9/yzJC9fy8S7nB84/1mZf24eeI5rkyc2Xa3o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=hqQwZ3I765y+gjCbNP4FckxsBXgbxBKrY4tESIQUJXtPPExZDJ3mRhkD5b1p2eL95k 5dd92v6wdVNn66f9+lnF/Xz2IIOhmFx+hUx4uroJosjjDLscgluG3+dkSsfQLxSzIcco ofqLgVbqee/8vuiJ2EwMtYuEYI6nYrzASCuYc= Received: by 10.110.20.15 with SMTP id 15mr4292749tit.28.1227500590111; Sun, 23 Nov 2008 20:23:10 -0800 (PST) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id b4sm7021655tic.2.2008.11.23.20.23.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 23 Nov 2008 20:23:08 -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 mAO4L32P079998 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 24 Nov 2008 13:21:03 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id mAO4L1Y3079997; Mon, 24 Nov 2008 13:21:01 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 24 Nov 2008 13:21:01 +0900 From: Pyun YongHyeon To: Gabriel Lavoie Message-ID: <20081124042101.GK78954@cdnetworks.co.kr> References: <20081117003856.GB50872@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: Realtek 8139 with rl(4) driver -> Poor 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: Mon, 24 Nov 2008 04:23:11 -0000 On Tue, Nov 18, 2008 at 09:09:44PM -0500, Gabriel Lavoie wrote: > Hum when I do my Samba transfer, there is a lot of small files (> 50 000) > and it seems at some point Samba tops at 100% CPU usage on one core. Is it > possible the rl(4) driver could be influenced by high CPU load? With the Yes, it's possible. rl(4) hardwares are notorious for its poor performance and instability under heavy load. I'm not sure the poor performance you're suffering from comes from rl(4) hardware itself or driver bug though. Note, ale(4) is not best hardware too. ale(4) hardwares still requires copy operation as rl(4) due to hardware limitation and if you're looking for better performance, replace your hardware with better controller such as em(4)/bge(4) or jme(4) which would have good performance/price ratio. > ale(4) driver, there's no problem but the Samba transfer becomes really slow > because of the amount of files. > > Gabriel > > 2008/11/18 Gabriel Lavoie > > > By the way, I'm currently trying the ale(4) driver under FreeBSD 7.0 (my > > current installation). It seems to works flawlesly with excellent > > performances. I'm currently doing the 30 GB transfer I'm unable to do with > > the Realtek card. I'll see what happens. > > > > Gabriel > > > > 2008/11/16 Pyun YongHyeon > > > > On Sun, Nov 16, 2008 at 06:01:58PM -0500, Gabriel Lavoie wrote: > >> > Hello, > >> > I recently built a new system to use as a home server. This system > >> has > >> > an Intel Pentium Dual Core E5200, 4GB RAM and an Asus P5KPL-CM > >> motherboard > >> > which has an Atheros L1E network adapter, not yet supported on FreeBSD. > >> For > >> > >> ale(4) was committed to HEAD. If you're using lastest stable/7 > >> see the following URL. > >> http://people.freebsd.org/~yongari/ale/README > >> > >> > now, I use a Realtek 8139 PCI adapter that uses the rl(4) driver, but > >> the > >> > upload performances are really poor (under 1 MB/sec). Is there any way > >> to > >> > improve the performance with this driver? This adapter was in a Linux > >> system > >> > with a Pentium III processor before and I could upload/download at > >> around 10 > >> > MB/sec in my local network with no problem at all. > >> > > >> > >> There was a bus_dma(9) bug in rl(4) and it was fixed in HEAD. > >> How about rl(4) in HEAD? I guess it would build with minor > >> modification. > >> > >> -- > >> Regards, > >> Pyun YongHyeon > >> > > > > > > > > -- > > Gabriel Lavoie > > glavoie@gmail.com > > > > > > -- > Gabriel Lavoie > glavoie@gmail.com -- Regards, Pyun YongHyeon