From owner-freebsd-net@FreeBSD.ORG Thu Apr 28 18:01:24 2011 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 8907B1065674 for ; Thu, 28 Apr 2011 18:01:24 +0000 (UTC) (envelope-from kungfujesus06@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4407F8FC16 for ; Thu, 28 Apr 2011 18:01:22 +0000 (UTC) Received: by iwn33 with SMTP id 33so3382622iwn.13 for ; Thu, 28 Apr 2011 11:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=tgu3wCnhxpct178flGj7ux1DwNWbQlyWoOzjUpVvR+Y=; b=rw2izemOO9arYkpwlNrD1JUAHpphKUi3Hs0Sgw68jQT9pLjA1XMtiQ1UeCZpfaIoiM 2aB3oDju9qT071sa7UnzC2DMXu5HuzcAApsnO4/JmrlpU9BZdYmtlB0TdhLCJq5hdN6x PzKl5k1d3B9w8gKA/xxQ+CHsr5pBdff0TvHUI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=pW6Lp1e3AaDNYrVHKN5OhgWi9dmK042eI5PBqtrHdUg+UQ6fK9/kamMx3CxJrVKKCq OHz1vIpH+YoI2AxiUeczCRYZ3bMzUB7QzXtNpW2TnmPaegUHwJMEknNQng/pHMmE/KaJ lYgRE/pZlcDK+dTnwd9lfKIC+Wt5cR7wvqjZI= Received: by 10.42.163.130 with SMTP id c2mr4526987icy.522.1304013679944; Thu, 28 Apr 2011 11:01:19 -0700 (PDT) Received: from zephyr.snd-wireless.uc.edu ([129.137.116.23]) by mx.google.com with ESMTPS id ww2sm718652icb.3.2011.04.28.11.01.17 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Apr 2011 11:01:18 -0700 (PDT) Date: Thu, 28 Apr 2011 14:00:37 -0400 From: Adam Stylinski To: Jack Vogel Message-ID: <20110428180037.GA1889@zephyr.snd-wireless.uc.edu> References: <4DB965D8.7090906@sentex.net> <20110428141339.GD2800@ossumpossum.geop.uc.edu> <20110428144513.GF2800@ossumpossum.geop.uc.edu> <41EE7AB832F24194AC8730544E1C2EB7@multiplay.co.uk> <20110428152141.GA19362@ossumpossum.geop.uc.edu> <11659E32824B4B1E91B6B219BDEF1234@multiplay.co.uk> <20110428160919.GE19362@ossumpossum.geop.uc.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-net@freebsd.org Subject: Re: em0 performance subpar 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: Thu, 28 Apr 2011 18:01:24 -0000 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 28, 2011 at 09:52:14AM -0700, Jack Vogel wrote: > Adam, >=20 > The TX ring for the legacy driver is small right now compared to em, try > this experiment, > edit if_lem.c, search for "lem_txd" and change EM_DEFAULT_TXD to 1024, see > what > that does, then 2048. >=20 > My real strategy with the legacy code was that it should stable, meaning = not > getting > a lot of changes... that really hasn't worked out over time. I suppose I'= ll > have to try and > give it some tweaks and let you try it. The problem with this code is it > technically supports > a huge range of old stuff we don't test any more, things I do might cause > other regressions :( >=20 > Oh well, let me know if increasing the TX descriptors helps. >=20 > Jack Jack, Is this the same thing as adjusting these values?: hw.em.rxd=3D4096 hw.em.txd=3D4096 If so I've maxed this out and it's not helping. I'll give it a shot on my = 8-STABLE box as it has a kernel I can play with. Setting the MTU to 1500 gave lower throughput. --=20 Adam Stylinski PGP Key: http://pohl.ececs.uc.edu/~adam/publickey.pub Blog: http://technicallyliving.blogspot.com --KsGdsel6WgEHnImy Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJNuatEAAoJED6sRHE6TvmnyGEP+QHVsRPiqYWC+R/2gm2c3v21 m3Jmrmx0V7LV34G2Cr4RUvNS4EEOsydhLl6TR+bQTB89ClHuYCgKoYV22a2dUxIT igKRyrq4rvCyz6CBwVM5iEdHA5iTt1Luv8kg2Y5NyCo71qij2Hz2Hc/3Q3hR6Su4 5eLJse0hzAvlw9ADEOPq+PejvXYlVRVck1ShnyA4mOvK/HFTtiW2gGHmHrJwDaKK CKywwJBI5uN4+0vMdHZU2y2HHbRJNXawnlGcdX7zmScZnNybIPxujVQ1jhGGPTiB jQl2LoiOcoasiOXf7F+aMsAMEbHHHKdYoe6N04ZBLwLVPd/rsWdsyzINnhCPyCO+ nqfn50ORTMJeGXtfvvyVrDsoHrXVg/z2GvnAVIYW8ukQNpOXPmCmGdK0jlyVjmE/ vSrstXLFcaPJbquvhVzkhxz4W6pnzgT50P4jZ9GxCgL7MC0RSG+TRR0UudnZlQ0P 7Hhw1OedPZpfTXConi33/X6z3g4JORqhSkV7zO9ZsmZIFMQt7/Ut2RqXhVzUvKZ+ +/np0KtZjaL17xarXlQ8k1ujpTtpbpbqv2tAkEF54pj5/4lN/iJfzVwh4PhQgFT5 GL1SafGfNvdY6tvNQjhBYpzNqg4PUyd41YRH6fvXOHISn3Tz7ehvOcmqHSKodqRp AAsMmTHjYl9LJn33XIZc =88yh -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--