From owner-freebsd-arm@FreeBSD.ORG Thu Mar 12 13:34:42 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1FAC2F44 for ; Thu, 12 Mar 2015 13:34:42 +0000 (UTC) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A7A019E9 for ; Thu, 12 Mar 2015 13:34:41 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t2CDYbkR004360 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 12 Mar 2015 14:34:37 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t2CDYYFJ077147 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Mar 2015 14:34:35 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t2CDYYbb028474; Thu, 12 Mar 2015 14:34:34 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t2CDYYhi028473; Thu, 12 Mar 2015 14:34:34 +0100 (CET) (envelope-from ticso) Date: Thu, 12 Mar 2015 14:34:34 +0100 From: Bernd Walter To: Brett Wynkoop Subject: Re: BeagleBone slow inbound net I/O Message-ID: <20150312133433.GB28385@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150311165115.32327c5a@ivory.wynn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150311165115.32327c5a@ivory.wynn.com> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, DNS_FROM_AHBL_RHSBL=2.699, T_RP_MATCHES_RCVD=-0.01 autolearn=no version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2015 13:34:42 -0000 On Wed, Mar 11, 2015 at 04:51:15PM -0400, Brett Wynkoop wrote: > Greeting- > > So I am finding that network reads from my nfs server are timing out on > the BeagleBone. I am having no similar issues with other nfs clients > on my network. > > In an attempt to eliminate NFS as a possible reason for slowness of > transferring the ports tree into the system I am now transferring by > piping tar through nc. This is after I had a failure with rsync > inbound on the same data. The transfer is going VERY slow. Many times > slower than my transfers out of the BB to my 10.1 server. > > Have I managed to find a network driver issue? Any ideas how to gather > more information to help get to the bottom of things? > > Netstat seems to provide nothing useful: > > [wynkoop@beaglebone ~]$ netstat -i > Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll > cpsw0 1500 00:18:31:8c:a5:22 0 0 0 0 0 0 > cpsw0 - 199.89.147.0 beaglebone 1117 - - 511 - - > lo0 16384 36 0 0 36 0 0 > lo0 - localhost ::1 0 - - 0 - - > lo0 - fe80::1%lo0 fe80::1%lo0 0 - - 0 - - > lo0 - your-net localhost 36 - - 36 - - > [wynkoop@beaglebone ~]$ > > I do not believe the transfer is limited by disk i/o because > zpool iostat 5 shows inferior speed as compared to when I did the copy from > the sd card to the usb stick. Use gstat to monitor disks. If the flash disk is cause the slowness then you likely see a large L(q) and high ms/w. Do not care about %busy - this is an interesting value, but missleading. It is not unlikely for small flash based devices to have problems to keep up with writing - big SSD with many flash chips and decent controller chips balance writes over chips to overcome this issue. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.