From owner-freebsd-net@FreeBSD.ORG Tue Aug 14 20:22:56 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 890D41065673 for ; Tue, 14 Aug 2012 20:22:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 42C118FC0A for ; Tue, 14 Aug 2012 20:22:56 +0000 (UTC) Received: by ggnk4 with SMTP id k4so1148322ggn.13 for ; Tue, 14 Aug 2012 13:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=2iuJQ8lT+rcVbzAaN4Wv1OhgRjjwQyHFOTSFalS0MIk=; b=XF4ALf1OL89Ldgg2fLr0oJjVm0DwyxNGdAfCWzjymd6utx1Go8ay7tL/dP2cHAeYEJ oXvjVzlcXlegx75Mo+UPxAkp8OBX27EJ8o3UENRd/Li9zyBJCJU4I6IKetA9szsVh3IZ Wf2DmLI/qiMeA0cnFVGAX7ju1YqSgM8CN5zMSU94p1bQoHxerJHaZgTzflGbQtsRY20B 6oCKYjJmK/w6uTdKlk8Ufg+o+Dtu/iw9vZ5hgnJgpYN/oCk8Qd4XZJ1LiuZ+gzkToUN6 NSRoSJ4PqXPNKwbAEyXltep196ab6MQH4t33whsH8VbQFjajB1QDs5HpbGipYgw6PiY0 Q7OQ== MIME-Version: 1.0 Received: by 10.66.72.130 with SMTP id d2mr6590826pav.59.1344975774952; Tue, 14 Aug 2012 13:22:54 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.43.169 with HTTP; Tue, 14 Aug 2012 13:22:54 -0700 (PDT) In-Reply-To: <20120813111722.GA79347@onelab2.iet.unipi.it> References: <20120813111722.GA79347@onelab2.iet.unipi.it> Date: Tue, 14 Aug 2012 13:22:54 -0700 X-Google-Sender-Auth: wkazUAUr-BeiRS7tupw2Xnm44vE Message-ID: From: Adrian Chadd To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 Cc: net@freebsd.org Subject: Re: ipfw meets netmap (6.5 Mpps in userspace) 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, 14 Aug 2012 20:22:56 -0000 Hi! This stuff is very cool. So why is it that we can do such ridiculous packet processing rates via netmap and ipfw in userland but not in the traditional driver path in-kernel? (I think I know the answer, I'm just tossing it out there for discussion.) THanks, Adrian On 13 August 2012 04:17, Luigi Rizzo wrote: > I just finished a netmap-enabled version of ipfw/dummynet, which > runs in userspace and is able to process over 6 million packets per > second (Mpps) with simple rulesets, and over 2.2 Mpps through > dummynet pipes (tested on an i7-3400 connected to VALE ports; > VALE is a software switch part of netmap). > You can find it at > > http://info.iet.unipi.it/~luigi/dummynet/#8696 > > It works on FreeBSD and Linux. > > It even run on OSX, but there is no netmap support there; > any interest, Apple ? In any case, it should be simple to > adapt the network backend to talk to other devices. > > To run this you might want to use the most recent version of netmap, > also recently updated so it works with recent kernels > > http://info.iet.unipi.it/~luigi/netmap/ > > (the code is already in FreeBSD HEAD). > > On passing, I have also updated the dummynet distributions > for Linux and Windows, which should now compile for most > recent version of Linux, and for Windows 32 and 64 bit: > > http://info.iet.unipi.it/~luigi/dummynet/ > > cheers > luigi > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"