From owner-freebsd-net@FreeBSD.ORG Tue Jul 17 07:17:44 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 548CA106564A; Tue, 17 Jul 2012 07:17:44 +0000 (UTC) (envelope-from hoomanfazaeli@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5D6A98FC17; Tue, 17 Jul 2012 07:17:43 +0000 (UTC) Received: by lbon10 with SMTP id n10so302070lbo.13 for ; Tue, 17 Jul 2012 00:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=4ZLnsMuDa4ji3ZLvCnJy0Yxo9gGFZrdcPXvvF/8vgC4=; b=H5HpjOIJ1rOXx0rsvvgMocZ230WKvOudVXAQKgV2k3teV1DE+oFggvWHorNYydZRp0 Fgcgf6oFY5E3vMiCnsOMybZQBw7Lmx3Gk1yjE65knBZdK+ncQV0/XQZALDY5Gok6cRcH /mnwfe3rGC2GaQ40cekUdpjgmg5/YFfV1+cfWHEBzTGHpywkDjwirGI4JWyFt3ogwyvr LFgP1eFgg6wOUQA1j2pH8U9/p9EdjVbGeQn0rCb0u2uI1Jm6qAlp2MmI4tJW4OytGWEx k81bH5Ny4QsNBs9Y9XMtnpZZCUrWZwKvhqqGDq4qA3awQ1u+9SdCPDewixcj9lilEVSC yFwQ== Received: by 10.152.148.169 with SMTP id tt9mr1296928lab.49.1342509462131; Tue, 17 Jul 2012 00:17:42 -0700 (PDT) Received: from [127.0.0.1] ([84.241.57.181]) by mx.google.com with ESMTPS id p2sm3929294lbj.4.2012.07.17.00.17.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jul 2012 00:17:40 -0700 (PDT) Message-ID: <500511A6.9010808@gmail.com> Date: Tue, 17 Jul 2012 11:47:58 +0430 From: Hooman Fazaeli User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: "Alexander V. Chernikov" References: <4FF361CA.4000506@FreeBSD.org> <20120703214419.GC92445@onelab2.iet.unipi.it> <4FF36438.2030902@FreeBSD.org> <4FF3E2C4.7050701@FreeBSD.org> <4FF3FB14.8020006@FreeBSD.org> <4FF402D1.4000505@FreeBSD.org> <20120704091241.GA99164@onelab2.iet.unipi.it> <4FF412B9.3000406@FreeBSD.org> <20120704154856.GC3680@onelab2.iet.unipi.it> <4FF59955.5090406@FreeBSD.org> <20120706061126.GA65432@onelab2.iet.unipi.it> <500452A5.3070501@FreeBSD.org> In-Reply-To: <500452A5.3070501@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Doug Barton , Luigi Rizzo , net@freebsd.org Subject: Re: FreeBSD 10G forwarding performance @Intel 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: Tue, 17 Jul 2012 07:17:44 -0000 On 7/16/2012 10:13 PM, Alexander V. Chernikov wrote: > Old kernel from previous letters, same setup: > > net.inet.ip.fw.enable=0 > 2.3 MPPS > net.inet.ip.fw.update_counters=0 > net.inet.ip.fw.enable=1 > 1.93MPPS > net.inet.ip.fw.update_counters=1 > 1.74MPPS > > Kernel with ipfw pcpu counters: > > net.inet.ip.fw.enable=0 > 2.3 MPPS > net.inet.ip.fw.update_counters=0 > net.inet.ip.fw.enable=1 > 1.93MPPS > net.inet.ip.fw.update_counters=1 > 1.93MPPS > > Counters seems to be working without any (significant) overhead. > (Maybe I'm wrong somewhere?) > > Additionally, I've got (from my previous pcpu attempt) a small patch permitting ipfw to re-use rule map allocation instead of reallocating on every rule. This saves a bit of system time: > > loading 20k rules with ipfw binary gives us: > 5.1s system time before and 4.1s system time after. > > May be slightly off-topic, but do you have tested (or have plans to test ) with bidirectional traffic?