From owner-freebsd-arch@FreeBSD.ORG Sat Aug 20 14:27:40 2011 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B44E106564A; Sat, 20 Aug 2011 14:27:40 +0000 (UTC) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 1C1BC8FC13; Sat, 20 Aug 2011 14:27:39 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 15A5E5E44; Sat, 20 Aug 2011 14:11:00 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.5/8.14.5) with ESMTP id p7KEAxWA005300; Sat, 20 Aug 2011 14:10:59 GMT (envelope-from phk@phk.freebsd.dk) To: Robert Watson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sat, 20 Aug 2011 12:38:26 +0100." Content-Type: text/plain; charset=ISO-8859-1 Date: Sat, 20 Aug 2011 14:10:59 +0000 Message-ID: <5299.1313849459@critter.freebsd.dk> Cc: Lev Serebryakov , freebsd-arch@FreeBSD.org Subject: Re: 10gbps scalability (was: Re: FreeBSD problems and preliminary ways to solve) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2011 14:27:40 -0000 In message , Robert Watso n writes: >Part of the key here will be reworking things like ipfw(4) Here is how to do it: Compile IPFW rules to C-code, compile C-code to KLD, load KLD and hook the firewall rules. If the C-code is designed smartly, the C-compiler can optimize to insanely efficient code. The same semantics as today can be preserved with respect to counters and dynamic addition/removal of rules, with a little bit of creative thinking about data structures. Somebody[tm] did that long ago, but never contributed the patches back once The Mgt[tm] realized what performance we were talking about. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.