From owner-freebsd-net@FreeBSD.ORG Mon Nov 24 04:44:53 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 C9CC61065670 for ; Mon, 24 Nov 2008 04:44:53 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.188]) by mx1.freebsd.org (Postfix) with ESMTP id 497248FC0C for ; Mon, 24 Nov 2008 04:44:53 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by ti-out-0910.google.com with SMTP id a1so1038900tib.3 for ; Sun, 23 Nov 2008 20:44:52 -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=5OwqJDtvXDeI1QKLtlRI6N4ZmR0RQp2VWHeBcrh0KIU=; b=DfvXJCyUaV3zAidGVl7lUiybKJJQZwuVkeZk51NlB+PuYKmJjuOg4r4Im8KI9Rm6Cg F6vDL2erUe2nlCuFrzvAyJTYJf16o6iQr6uMklq75QsFRoHqmdENrT0msG5bOOUFud9C VS/h73oNgPWeCkjbC2rT3HbH/aX3sJNVlrfn8= 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=Heo1qU68g9NdcOyHWnP/XIyJo8aj1FF0AM0psX35MW1oOG5uiFDxI1NQtGLnL22lh/ MnfkpNT+H8dW0Gg6JC66db0RtFfohxbn6PCO9fBZ1wOys9qkKsGKJZkcCgAl027r/0xa phTNv3JGiPEgEcdBLyRHCDRUMuaCkHygi7fGA= Received: by 10.110.105.5 with SMTP id d5mr4303901tic.38.1227501891903; Sun, 23 Nov 2008 20:44:51 -0800 (PST) Received: from michelle.cdnetworks.co.kr ([211.53.35.84]) by mx.google.com with ESMTPS id b4sm7083452tic.2.2008.11.23.20.44.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 23 Nov 2008 20:44:50 -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 mAO4gimO080089 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 24 Nov 2008 13:42:44 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id mAO4ghic080088; Mon, 24 Nov 2008 13:42:43 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 24 Nov 2008 13:42:42 +0900 From: Pyun YongHyeon To: Gabriel Lavoie Message-ID: <20081124044242.GL78954@cdnetworks.co.kr> References: <957411.42240.qm@web39101.mail.mud.yahoo.com> <20081117023024.GE50872@cdnetworks.co.kr> <20081117034428.GG50872@cdnetworks.co.kr> <20081118043731.GD55015@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: bf , 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:44:54 -0000 On Tue, Nov 18, 2008 at 05:28:13PM -0500, Gabriel Lavoie wrote: > Requested commands: > > Before a problem happens: > > [root@headless ~]# sysctl hw.busdma > hw.busdma.total_bpages: 8260 > hw.busdma.zone0.total_bpages: 8196 > hw.busdma.zone0.free_bpages: 8196 > hw.busdma.zone0.reserved_bpages: 0 > hw.busdma.zone0.active_bpages: 0 > hw.busdma.zone0.total_bounced: 0 > hw.busdma.zone0.total_deferred: 0 > hw.busdma.zone0.lowaddr: 0xffffffff > hw.busdma.zone0.alignment: 1 > hw.busdma.zone0.boundary: 0 > hw.busdma.zone1.total_bpages: 64 > hw.busdma.zone1.free_bpages: 64 > hw.busdma.zone1.reserved_bpages: 0 > hw.busdma.zone1.active_bpages: 0 > hw.busdma.zone1.total_bounced: 8200 > hw.busdma.zone1.total_deferred: 0 > hw.busdma.zone1.lowaddr: 0xffffffff > hw.busdma.zone1.alignment: 2 > hw.busdma.zone1.boundary: 65536 > > [root@headless ~]# netstat -nd -I rl0 > Name Mtu Network Address Ipkts Ierrs Opkts Oerrs > Coll Drop > rl0 1500 00:50:fc:c6:c8:d2 64336 0 60706 > 0 0 0 > rl0 1500 192.168.69.0/ 192.168.69.87 63398 - 59820 > - - - > > > I got a Samba copy error at this point: > > [root@headless /home/wildchild]# sysctl hw.busdma > hw.busdma.total_bpages: 8260 > hw.busdma.zone0.total_bpages: 8196 > hw.busdma.zone0.free_bpages: 8196 > hw.busdma.zone0.reserved_bpages: 0 > hw.busdma.zone0.active_bpages: 0 > hw.busdma.zone0.total_bounced: 0 > hw.busdma.zone0.total_deferred: 0 > hw.busdma.zone0.lowaddr: 0xffffffff > hw.busdma.zone0.alignment: 1 > hw.busdma.zone0.boundary: 0 > hw.busdma.zone1.total_bpages: 64 > hw.busdma.zone1.free_bpages: 64 > hw.busdma.zone1.reserved_bpages: 0 > hw.busdma.zone1.active_bpages: 0 > hw.busdma.zone1.total_bounced: 144539 > hw.busdma.zone1.total_deferred: 0 > hw.busdma.zone1.lowaddr: 0xffffffff > hw.busdma.zone1.alignment: 2 > hw.busdma.zone1.boundary: 65536 > [root@headless /home/wildchild]# netstat -nd -I rl0 > Name Mtu Network Address Ipkts Ierrs Opkts Oerrs > Coll Drop > rl0 1500 00:50:fc:c6:c8:d2 6718354 0 4023956 > 0 0 0 > rl0 1500 192.168.69.0/ 192.168.69.87 6717392 - 4023051 > - - - > > Now the networking is really erratic. I have a huge slowdown with SSH and > I'm unable to copy files on the computer anymore via Samba. I must reboot to > get back the full performance. > I don't see possible errors in code. Did rl(4) show some messages on your console? Since there are no errors in netstat output I have no clue yet. Does interface up/down fix the poor performance after you've seen Samba copy error? -- Regards, Pyun YongHyeon