From owner-freebsd-net@FreeBSD.ORG Thu Apr 28 14:45:02 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 0FCA41065672 for ; Thu, 28 Apr 2011 14:45:02 +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 BA4308FC1B for ; Thu, 28 Apr 2011 14:45:01 +0000 (UTC) Received: by iwn33 with SMTP id 33so3163278iwn.13 for ; Thu, 28 Apr 2011 07:45:01 -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=oo/F3lXS+3Lp8ICh+bZBx5jl8EtFrxBn5Zuip40X84w=; b=M32rthSUNWqVUN0TJ+3vHBW7i4f2kKMWaIl2Si33UlXx6JEyO3MoxUfgO8ils2UCIT 9AcD7VA/gLxUshHI2LjvQaMVJeDPcuZjWZ5Pveohapcos1XRqx+qZRUHLXNtRIyVY7vT TSU4k1CAUdGeRMLj1CetQzAuFUMSdtPJUeUZU= 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=C3Ncmz9PPGDHBqZ9HClMRv4lkxyVCOVEv6296Fbu0KQt5d7vq8TAN0/J5GdRHkx3rl cxX05ecnlHrvazbpZ/fMXhh0YBznlBvPWKEflvTzmytHorT9AgUxp1s6ELUm1wBUlHY6 l8IKVBzBflzW4Bj6ZOTkLZtD12pwNmzbv7Gf0= Received: by 10.42.217.137 with SMTP id hm9mr4606953icb.196.1304001899392; Thu, 28 Apr 2011 07:44:59 -0700 (PDT) Received: from ossumpossum.geop.uc.edu ([129.137.163.68]) by mx.google.com with ESMTPS id ww2sm671227icb.3.2011.04.28.07.44.56 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Apr 2011 07:44:57 -0700 (PDT) Date: Thu, 28 Apr 2011 10:45:13 -0400 From: Adam Stylinski To: Steven Hartland Message-ID: <20110428144513.GF2800@ossumpossum.geop.uc.edu> References: <20110428072946.GA11391@zephyr.adamsnet> <4DB965D8.7090906@sentex.net> <20110428141339.GD2800@ossumpossum.geop.uc.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/QKKmeG/X/bPShih" 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 14:45:02 -0000 --/QKKmeG/X/bPShih Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 28, 2011 at 03:25:53PM +0100, Steven Hartland wrote: > * What's your traffic like? e.g. http, large tcp files, tiny udp etc... > * Is it all on a local switch, if so what switch? > * Is flow control enabled? > * Are you seeing high interrupts? > * Are you disk bound? > * Are you memory bound? > * Are you cpu bound? >=20 > Some basic settings we have here:- > net.inet.tcp.inflight.enable=3D0 > net.inet.tcp.sendspace=3D65536 > kern.ipc.nmbclusters=3D262144 > kern.ipc.maxsockets=3D204800 > net.inet.tcp.msl=3D20000 > kern.ipc.maxsockbuf=3D524288 > net.inet.tcp.sendbuf_max=3D16777216 > net.inet.tcp.recvbuf_max=3D16777216 >=20 > Note: Large values for kern.ipc.maxsockbuf can hurt performance under > 8.x but work well under 7.x (never got to the bottom of that) >=20 > Regards > Steve >=20 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > This e.mail is private and confidential between Multiplay (UK) Ltd. and t= he person or entity to whom it is addressed. In the event of misdirection, = the recipient is prohibited from using, copying, printing or otherwise diss= eminating it or any information contained in it.=20 >=20 > In the event of misdirection, illegible or incomplete transmission please= telephone +44 845 868 1337 > or return the E.mail to postmaster@multiplay.co.uk. >=20 I was using the default value for maxsockbuf, doesn't seem to hurt or help.= The only value you've listed that I didn't have tweaked to a comparable v= alue already was the nmbclusters, changing it seems to have no effect, thou= gh. vmstat -i should display my interrupts, which I don't think are partic= ularly high. I am most definitely not CPU bound (utilization shows no hot = CPUs), I have 16GB of memory and plenty allocated to the kernel, and I beli= eve flow control is enabled (should it not be?): net.inet.flowtable.enable: 1 It's a 16 port netgear gigabit prosafe switch, and it's not likely to be th= e problem (like I said, the Linux hosts have no issues with the same card).= =20 --=20 Adam Stylinski PGP Key: http://pohl.ececs.uc.edu/~adam/publickey.pub Blog: http://technicallyliving.blogspot.com --/QKKmeG/X/bPShih Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQIcBAEBAgAGBQJNuX14AAoJED6sRHE6TvmnVT0QAIXzCh4bJKFeskLqhkAg5sP0 Kn8qivwPBSD4fu4LG/3cM2coaSpdOlS4o3HrwfNtfRyeYJVpGLra5LVTqJD4Yjph Oyi9rn4Dggbcc0gZTZC8uT9W7T4iEbHh6dkmPnserH6iEi1nxeQpQ3PGme4vQ7Eu XhtfjLLm056Mm2bHFqac5eHCpPQI0H2PDK4GazAlGnlI2HS6zEzLooG7xO4yHSNA Hs0S2K3cP+6yjxBIZJ1N2tG4DwRy6jVeRXvmj4nNGS7vbbGhX+mWWo/oI8gOOSgf CpuGNpiWWqBWnE/ARshRm89GCbXWoX/km+8G6/7063Lkm7Ib9qxa9Na04EF+0k4j 4OeF8ixQi0WEZrWp1HlA4wknWyQua0z9fTbtTBOFLKI8QFnUkJfeoh9h4d0ujd5x m7Zg9XU1zUeEKuQdb2BohSaTS54wv+z2YGMbBVnhSxmH3NyXiQyJZDcplzatq7HU D5UXh6gYeLNAYjFgM3rM4mbw82avQmzQxLbYGg1T24y2yO1VhvVVNMoTwyLDyM+E CFGzdtt2PlZsR9pOcuD3u2lNOETb78KzIEeW0VXpeZn6sS9LeRA5pomriwsDK4nn Nu6YQg7YmvsQtJlXia0o4HSz7XkQ1Y6d86n7/g3GrqpQard+RPbwKFJpqfqDGg4P KDV9zgDRlYQXv6tj+pcz =+T9i -----END PGP SIGNATURE----- --/QKKmeG/X/bPShih--