From owner-freebsd-arm@FreeBSD.ORG Sun Jul 7 03:18:03 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DD837932 for ; Sun, 7 Jul 2013 03:18:03 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vps.rulingia.com (host-122-100-2-194.octopus.com.au [122.100.2.194]) by mx1.freebsd.org (Postfix) with ESMTP id 610271EFF for ; Sun, 7 Jul 2013 03:18:02 +0000 (UTC) Received: from server.rulingia.com (c220-239-237-213.belrs5.nsw.optusnet.com.au [220.239.237.213]) by vps.rulingia.com (8.14.5/8.14.5) with ESMTP id r673Hf4r018567 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 7 Jul 2013 13:17:42 +1000 (EST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.5/8.14.5) with ESMTP id r673HXTB090416 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 7 Jul 2013 13:17:34 +1000 (EST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.5/8.14.5/Submit) id r673HW6t090414; Sun, 7 Jul 2013 13:17:32 +1000 (EST) (envelope-from peter) Date: Sun, 7 Jul 2013 13:17:32 +1000 From: Peter Jeremy To: Hans Petter Selasky Subject: USB Performance on Raspberry Pi Message-ID: <20130707031732.GS39302@server.rulingia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdEQJo40s7ofW8iR" Content-Disposition: inline X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jul 2013 03:18:03 -0000 --sdEQJo40s7ofW8iR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Hans, USB performance on the Raspberry Pi is rather lacking. This is important because pretty much everything goes via USB. Do you have any suggestions on how to fix the bottlenecks? I suspect one is that FreeBSD is using PIO, whereas Linux is using DMA. I've previously commented about the sawtooth pattern in ping times: 64 bytes from 192.168.123.231: icmp_seq=3D6 ttl=3D64 time=3D2.701 ms 64 bytes from 192.168.123.231: icmp_seq=3D7 ttl=3D64 time=3D1.465 ms 64 bytes from 192.168.123.231: icmp_seq=3D8 ttl=3D64 time=3D10.589 ms 64 bytes from 192.168.123.231: icmp_seq=3D9 ttl=3D64 time=3D9.688 ms 64 bytes from 192.168.123.231: icmp_seq=3D10 ttl=3D64 time=3D8.673 ms 64 bytes from 192.168.123.231: icmp_seq=3D11 ttl=3D64 time=3D7.330 ms 64 bytes from 192.168.123.231: icmp_seq=3D12 ttl=3D64 time=3D6.857 ms 64 bytes from 192.168.123.231: icmp_seq=3D13 ttl=3D64 time=3D5.946 ms 64 bytes from 192.168.123.231: icmp_seq=3D14 ttl=3D64 time=3D3.955 ms 64 bytes from 192.168.123.231: icmp_seq=3D15 ttl=3D64 time=3D2.079 ms 64 bytes from 192.168.123.231: icmp_seq=3D16 ttl=3D64 time=3D1.072 ms Whereas pinging a Linux RPi gives: round-trip min/avg/max/stddev =3D 0.276/0.373/0.455/0.049 ms yongari@ gave me same patches for the SMSC NIC but they didn't have any noticable effect. And the network throughput is also well below what Linux can achieve. If I connect an external USB disk to a Linux RPi, I get 20.6 MBps read. The same disk on FreeBSD RPi gives 6.3 MBps - with ~50% interrupt time. --=20 Peter Jeremy --sdEQJo40s7ofW8iR Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iEYEARECAAYFAlHY3cwACgkQ/opHv/APuIfCeQCgnwSDmyW8bWL8IdUKIt0h2vgd StMAnRlieQOpcxqRFIWGza9bkgUc9HgC =A3BZ -----END PGP SIGNATURE----- --sdEQJo40s7ofW8iR--