From owner-freebsd-net@FreeBSD.ORG Tue Nov 18 22:28:15 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 2A2621065673 for ; Tue, 18 Nov 2008 22:28:15 +0000 (UTC) (envelope-from glavoie@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id 9EF1B8FC08 for ; Tue, 18 Nov 2008 22:28:14 +0000 (UTC) (envelope-from glavoie@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so2471852fgb.35 for ; Tue, 18 Nov 2008 14:28:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=8nzC+EG3dDbEVb07IQ+Mm2LaTOnvPRkEiiVZ+p4ktQE=; b=KLmYlV/uPakCRM2BzVhe6YnTs9hZ5OgbHmvUJBHYNJQdlayAaJEGuT65s/malQGgqD UIlj57egZDaHpfZrDBllucBbCwWlhNAc46Sic9pjrTfh5TEE7zDQkYjnWESjEMPl+4ob uk1bofpbKa9PhAeCgSrNqDitlfR9f2rQiSmcw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=UNtPd1v6uZHl8xtEKttQGp5MIoSIMQdYjARkGPupHRuaJfM+lIxa3WLJTE8DlngzGI NgTzZcTA2jDCECxC0jEYNFgWsIpL59FzYTRgrWbrFnqrEoz8pzwijxfvJUlMFdeR2++b /cUtM5A07/yRWOZaUEKfPRejvWn8C7ElAjDII= Received: by 10.181.153.12 with SMTP id f12mr103878bko.132.1227047293200; Tue, 18 Nov 2008 14:28:13 -0800 (PST) Received: by 10.181.16.18 with HTTP; Tue, 18 Nov 2008 14:28:13 -0800 (PST) Message-ID: Date: Tue, 18 Nov 2008 17:28:13 -0500 From: "Gabriel Lavoie" To: pyunyh@gmail.com In-Reply-To: <20081118043731.GD55015@cdnetworks.co.kr> MIME-Version: 1.0 References: <957411.42240.qm@web39101.mail.mud.yahoo.com> <20081117023024.GE50872@cdnetworks.co.kr> <20081117034428.GG50872@cdnetworks.co.kr> <20081118043731.GD55015@cdnetworks.co.kr> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2008 22:28:15 -0000 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. Gabriel 2008/11/17 Pyun YongHyeon > On Mon, Nov 17, 2008 at 09:56:05PM -0500, Gabriel Lavoie wrote: > > Hum. I tried transfering a lot of data tonight via Samba (30GB). It > seems > > that after some time the driver becomes again unstable and the > networking > > performance drops really low. I could hardly SSH to this box after it > > happened. > > Would you show me the output of "sysctl hw.busdma" and > "netstat -nd -I rl0"? > Did rl(4) show some messages on your console? > > > > > Gabriel > -- > Regards, > Pyun YongHyeon > -- Gabriel Lavoie glavoie@gmail.com