From owner-freebsd-net@FreeBSD.ORG Thu Apr 28 16:52:16 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 8C91C106564A for ; Thu, 28 Apr 2011 16:52:16 +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 464A58FC12 for ; Thu, 28 Apr 2011 16:52:15 +0000 (UTC) Received: by yxl31 with SMTP id 31so1240131yxl.13 for ; Thu, 28 Apr 2011 09:52:15 -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=Xj/8m2muhWFw7tDqG9ZnCKV8FSpF5BcGrSxYhdE61Ak=; b=Rw3/finZW8tGk07utjyzM4ubO5udQDed1D+l0ivySGZ71jY51Vk3caSm7JlW87dZxT rU0KmnTwrfPtVyhkhyLJKJfAPmSWNM8sd14ivbEiHdwQ5GCUQK4Cp8BGESwwxzyaEyUB l7o/xG6e4l3MjNtdMnoMBXzdjZe8LXbWPIT28= 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=oYYi4+VfqhRcaKXQ56T8Yb22Ubd4kxdRzXDn89GB8Y1vvRt16fjcBnXaLRy2uZVrwg FyJC514lzmxsVkTVbD5cbyA/3LtKsjAypBihP4RSfSisuadqeb2wn0sNzWPOW1J2zuOQ o9hEWtP4ZPkzLXX12CQrZClh0fUOLjCMo1D2s= MIME-Version: 1.0 Received: by 10.150.166.17 with SMTP id o17mr3298078ybe.40.1304009535000; Thu, 28 Apr 2011 09:52:15 -0700 (PDT) Received: by 10.150.133.13 with HTTP; Thu, 28 Apr 2011 09:52:14 -0700 (PDT) In-Reply-To: <20110428160919.GE19362@ossumpossum.geop.uc.edu> References: <20110428072946.GA11391@zephyr.adamsnet> <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> Date: Thu, 28 Apr 2011 09:52:14 -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, Steven Hartland 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 16:52:16 -0000 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