From owner-freebsd-usb@FreeBSD.ORG Mon Sep 14 20:01:36 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 583881065670 for ; Mon, 14 Sep 2009 20:01:36 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id 11F458FC16 for ; Mon, 14 Sep 2009 20:01:35 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 3so977753qwe.7 for ; Mon, 14 Sep 2009 13:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:subject :message-id:reply-to:mime-version:content-type:content-disposition :user-agent; bh=mfdn2K80CDVUH/6+EiEqJwxrwEjcww7RAOI/dlp+SnA=; b=DjvncTMwUp5NqqAb8ppnvV2/A9GGR+X0DoUw+I7DxcZ/53TbHGp1KZX/eh+EHtROqa ffFQJ1ZnPA5hclvAgNnOjFHqW4SstZP12SSP3HBMfWRZoaHFzuzOYiCpGw205AnBXccV eqO30JtVP78KZW9u3zbqX3qnIHjFAhFBYS9G8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:subject:message-id:reply-to:mime-version:content-type :content-disposition:user-agent; b=aoKfeZxmxDSwX31EX95n9y40RkbnfEr8mUTO6xkeyteaxeQoTImhEMQGzV3bseIrxe tWCjEPXmU6vtV22t/lV116+y+HlI/zMSEhTO+2Ae3T8A8NfcGmnelFePDAHZKa5Yw7YY POOcbaJYbrY1shbVWTrH0DJAhE3mtJPnyH7bs= Received: by 10.224.121.132 with SMTP id h4mr5599986qar.255.1252957095199; Mon, 14 Sep 2009 12:38:15 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 7sm56027qwb.20.2009.09.14.12.38.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Sep 2009 12:38:14 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 14 Sep 2009 12:37:22 -0700 From: Pyun YongHyeon Date: Mon, 14 Sep 2009 12:37:22 -0700 To: freebsd-usb@FreeBSD.org Message-ID: <20090914193722.GD1155@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: CFT: axe(4) performance patch X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Sep 2009 20:01:36 -0000 Hi, I submitted axe(4) performance patch to Hans and he committed the patch to P4. http://perforce.freebsd.org/chv.cgi?CH=168457 The patch fixes two issues, lots of Rx errors seen under high network load and poor Rx performance. The Rx error was introduced in new USB stack conversion and it was not spotted until this time. For better Rx performance, the patch increases Rx maximum burst size to 16384 from 2048 for AX88178 and AX88772. Now I can see dramatic Rx performance boost from 50Mbps to 220Mbps on AX88178. AX88178 data sheet clearly indicates the default burst size is 16384 for maximum performance. But I don't know whether it breaks AX88772 fast ethernet controller. Now vendor's site requires valid account to download AX88772 data sheet so I can't verify that. If you have AX88772 or AX88178 please give it try and let us know how it goes. Since all USB ethernet controllers are poorly designed to save money and ASIX USB ether controller requires copy operation for every received frames(actually it's much much worse than rl(4) hardwares), you should have fast system to achieve maximum speed. I see constant Rx 220Mbps for various packet sizes(from 64 bytes to MTU sized bytes) on my 2.8GHz C2D. I don't know 220Mbps is the maximum speed the controller can achieve but I never seen these numbers on any USB ethernet drivers on FreeBSD.