From owner-freebsd-net@FreeBSD.ORG Fri Feb 4 23:53:57 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2C6016A4CE for ; Fri, 4 Feb 2005 23:53:57 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C9FD43D5C for ; Fri, 4 Feb 2005 23:53:57 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j14NruH0058080; Sat, 5 Feb 2005 01:53:56 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 19431-01; Sat, 5 Feb 2005 01:53:55 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j14NrsdX058077 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 5 Feb 2005 01:53:55 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id j14NrtW0001836; Sat, 5 Feb 2005 01:53:55 +0200 (EET) (envelope-from ru) Date: Sat, 5 Feb 2005 01:53:54 +0200 From: Ruslan Ermilov To: Guy Helmer Message-ID: <20050204235354.GB95344@ip.net.ua> References: <4203AAE3.4090906@palisadesys.com> <20050204204804.GC71363@ip.net.ua> <4203EC87.3070504@palisadesys.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oC1+HKm2/end4ao3" Content-Disposition: inline In-Reply-To: <4203EC87.3070504@palisadesys.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: freebsd-net@freebsd.org Subject: Re: Netgraph performance question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2005 23:53:57 -0000 --oC1+HKm2/end4ao3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 04, 2005 at 03:43:35PM -0600, Guy Helmer wrote: >=20 > I'm sorry, I mis-wrote. My ng_tee is actually modified to only passes > packets to the r2l/l2r hooks if they are connected, otherwise packets = are > passed directly to the left/right hooks (so it's an optional divert), = so > there is no m_dup anymore in my modified ng_tee. >=20 > I assumed that the bridging and trip through userland would only add > latency to the connection, but the result of the performance test seem= ed > to indicate that there is either a bottleneck I need to solve or my > testing methodology was flawed. >=20 If you pass packets through userland, then it is even more performance penalty, as it involves userspace<->kernel copying, twice for each packet. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --oC1+HKm2/end4ao3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCBAsSqRfpzJluFF4RAqcOAJ92ljJSEZuaCfl/8ctSiwHDYPtSjwCfR2iy LcGhfyrptuZdWkskbonwoDo= =YWuj -----END PGP SIGNATURE----- --oC1+HKm2/end4ao3--