From owner-freebsd-net@FreeBSD.ORG Wed Dec 28 06:26:49 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 9E95F106564A; Wed, 28 Dec 2011 06:26:49 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 377B08FC0C; Wed, 28 Dec 2011 06:26:49 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:3df3:fd3e:2c60:3d1d]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 1B3114AC1C; Wed, 28 Dec 2011 10:26:47 +0400 (MSK) Date: Wed, 28 Dec 2011 10:26:44 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <91777482.20111228102644@serebryakov.spb.ru> To: Luigi Rizzo In-Reply-To: <20111227142600.GA65456@onelab2.iet.unipi.it> References: <1498545030.20111227015431@nitronet.pl> <4EF9ADBC.8090402@FreeBSD.org> <623366116.20111227150047@nitronet.pl> <20111227142600.GA65456@onelab2.iet.unipi.it> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: Pawel Tyll , freebsd-net@freebsd.org, "Alexander V. Chernikov" , freebsd-ipfw@freebsd.org Subject: Re: Firewall Profiling. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2011 06:26:49 -0000 Hello, Luigi. You wrote 27 =E4=E5=EA=E0=E1=F0=FF 2011 =E3., 18:26:00: > plans, yes - not sure how long it will take. I have compiled > ipfw+dummynet as a standalone module (outside the kernel) > but have not yet hooked the code to netmap to figure out how fast > it can run. I still don't understand why it should be faster than "normal" way, as it is essentially same (ipfw + dummynet) code + some additional context switches for netmap (to userland and back). What does netmap shave off from packet processing in this particular case, to compensate context switches? I --=20 // Black Lion AKA Lev Serebryakov