From owner-freebsd-net@FreeBSD.ORG Thu Apr 28 21:22:31 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 2B02D106566B for ; Thu, 28 Apr 2011 21:22:31 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id D33528FC19 for ; Thu, 28 Apr 2011 21:22:30 +0000 (UTC) Received: by yxl31 with SMTP id 31so1379919yxl.13 for ; Thu, 28 Apr 2011 14:22:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=E7nN9mvi7HmPfmjxBSV8h0F6neW9avxMPzD6gsBVbzQ=; b=muJDcb2eyhtIf5XGytaZjmYKQyOKDIntBZ+P1HY6yMek5fQPT2TU/Z5ceZt1KvmQKJ VXpkN4yaJcDyKKtbf3BW8rh1DqbXVdjuoPYef8kH/WOXW2K/XknLOI9L+4l9IbvZg/L9 BAJOjHD7wswpnnUr8sIcvDD4DOrQJBD1JMnOo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=pSw32PrK9FuGmjdrJf1o7d37v6v4OjEoiAeB7vT/dnDBWVuqCUbfVaK3gSfe5+jLeW g1o02K41ZHX/Nhl/Gj2juAQWne65fD++fS1xvlG9l7YogWMzU8y0lBlGfL3XZukSi4Ye 8KLWGdPZ+nVWHJVKIE1ccxur3LaGfRXgpVJhQ= MIME-Version: 1.0 Received: by 10.150.103.12 with SMTP id a12mr3889645ybc.325.1304025749903; Thu, 28 Apr 2011 14:22:29 -0700 (PDT) Received: by 10.150.133.13 with HTTP; Thu, 28 Apr 2011 14:22:29 -0700 (PDT) In-Reply-To: <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> <20110428180037.GA1889@zephyr.snd-wireless.uc.edu> Date: Thu, 28 Apr 2011 14:22:29 -0700 Message-ID: From: Jack Vogel To: Adam Stylinski Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 21:22:31 -0000 My validation engineer set things up on an 8.2 REL system, testing the equivalent of HEAD, and he reports performance is fine. This is without any tweaks from what's checked in. Increasing the descriptors to 4K is way overkill and might actually cause problems, go back to default. He has a Linux test client, what are you transmitting to? Jack On Thu, Apr 28, 2011 at 11:00 AM, Adam Stylinski wrote: > On Thu, Apr 28, 2011 at 09:52:14AM -0700, Jack Vogel wrote: > > Adam, > > > > 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. > > > > 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 :( > > > > Oh well, let me know if increasing the TX descriptors helps. > > > > Jack > Jack, > > Is this the same thing as adjusting these values?: > > hw.em.rxd=4096 > hw.em.txd=4096 > > 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. > > -- > Adam Stylinski > PGP Key: http://pohl.ececs.uc.edu/~adam/publickey.pub > Blog: http://technicallyliving.blogspot.com >