From owner-freebsd-net@FreeBSD.ORG Wed Nov 5 16:18:43 2014 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5C85571; Wed, 5 Nov 2014 16:18:42 +0000 (UTC) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5B55718D; Wed, 5 Nov 2014 16:18:42 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id bs8so521947wib.17 for ; Wed, 05 Nov 2014 08:18:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=hl7IEeaYEO964evqEf5K/KePZ9zeoMfgmKx45Svz4cE=; b=WST033KuJ/fowlvxJhFxQ2b81ucayJkB1XEBx8PMk9lL436JTlK39YgRRgjPcF0ryU 7A1jMcrjHTG359AKn5w/z2/gX26ZFhu71rX4bw9nUfhHMiqXwLkiBN0QsmwQSrS2RUtx nvNf4Ytv5xVdwXGxyRSC4UvF2qt5RXNjDHQdFcgTFi0bxD/7fsZhz3OR4PoGjBChWIZK ETGe9mulc0iwEgTNwCEQQPWXLe4jFtRjqMTVmj3EV8yoQBg4Ga9pc2Gpzb2jgrkXJEtu Lauwb8MT0y3O1rwn28bDqLE3h39TtuVHjVggpCA2+2lvWTZrNwwaCq8Lb2DJta21k8BD rnLg== MIME-Version: 1.0 X-Received: by 10.180.14.231 with SMTP id s7mr33939185wic.0.1415204320562; Wed, 05 Nov 2014 08:18:40 -0800 (PST) Received: by 10.217.92.7 with HTTP; Wed, 5 Nov 2014 08:18:40 -0800 (PST) In-Reply-To: <545A47A5.4010601@yandex.ru> References: <92D22BEA-DDE5-4C6E-855C-B8CACB0319AC@neville-neil.com> <545A47A5.4010601@yandex.ru> Date: Wed, 5 Nov 2014 14:18:40 -0200 Message-ID: Subject: Re: netmap in GENERIC, by default, on HEAD From: Evandro Nunes To: "Andrey V. Elsukov" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "Alexander V. Chernikov" , "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-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: Wed, 05 Nov 2014 16:18:43 -0000 On Wed, Nov 5, 2014 at 1:52 PM, Andrey V. Elsukov wrote: > On 05.11.2014 18:39, George Neville-Neil wrote: > > Howdy, > > > > Last night (Pacific Time) I committed a change so that GENERIC, on HEAD > > has the netmap > > device enabled. This is to increase the breadth of our testing of that > > feature prior > > to the release of FreeBSD 11. > > > > In two weeks I will enable IPSec by default, again in preparation for 11. > > Hi, > > recently we did some IP forwarding tests and the GENERIC kernel is > several times faster than GENERIC+IPSEC. Even when IPSEC has no SA. > > I didn't do test on vanilla kernel, but our kernel is able forward > IPv4/IPv6 on rate close to 8.6 Mpps. The same kernel compiled with IPSEC > can forward only 180 kpps. I think this problem should be solved before > enabling it in GENERIC. > this forward rate you mention is related to netmap? or usual forwarding/fastforwarding? this is a huge number, do you mind sharing your dmesg output and top -PSH output so I can check for interrupt CPU usage and other relevant stuff? thank you