From owner-freebsd-current@freebsd.org Mon Feb 22 16:17:08 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9F45AB194B for ; Mon, 22 Feb 2016 16:17:08 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com [IPv6:2a00:1450:4010:c07::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 712C119BE for ; Mon, 22 Feb 2016 16:17:08 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by mail-lf0-x22b.google.com with SMTP id 78so96896756lfy.3 for ; Mon, 22 Feb 2016 08:17:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=MS8pUpbAVUaVpCF/lg+JgUQI3JEwY7Sj3vjQn1rRdPA=; b=zTRQXuMzYcvtrwCFygHNb2/lvUfIQfcAtfu/WY2GDaRYNGY/n0zcNnd2p4gxXLZtqi NIwP+CXWdKwDNegJhhS32+YW3MnRK/wU6shVcTfHa7NvUuGv6VcLJPW03Ri1G/aP3alk f32gC2wllpYpSxXH4FbirbcSZvbLvP/w0MzbiIfmXJl0Q48QDUEWmOJ/yb7z3ZXu5dZx uGnssdcXnlEwyM8CXnf1+5XY/yF1vhFZec1yKq3YCekBnY4+mxXoQaW/LnHI9A8ecFGF vkiETKHHS5oT1RYRQykGLRM5DNrxb1M8pR94WdYkATPugXaCWD+g8Wk88/DiXnUTLnDv 8OAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=MS8pUpbAVUaVpCF/lg+JgUQI3JEwY7Sj3vjQn1rRdPA=; b=UIR/s8A0QOxfxxt0CqLCi7wyJCw4FmI9UOEoEBqe/Cvl82/9G6E5dXxDhZvnv2+uL9 IsV2edUIvHGwtIMPqbLyfb3WjWjMeuTWeec+u8xVWz3f4pZm8C5YWDgihzcS5YmhE9aR NHHrVSrNJP4bfts1rVMunEKLnW7rxc+T3UPg6y5sROkqiRQqy5zqgwXglBrUO5JXSu9h Ay1YDkPrwyWPKMUl2YicHxM4s8M8Oam3lGR9rdDTfB+ezCQiLM5fm0/xK8vguoBnW0Cd 6oP/ZoebTFhqP9UjDalRaXrIGv4KdtvataL/qcRDorItYeMtgsSOCLJW7x7QdVHXOV+4 na3w== X-Gm-Message-State: AG10YOROUypkj4rs1Nkh0ZqYrRrUXJ2f0HYthBdDqqApcCCYaa6RgxPAh3Cx4YoPCAb9pLAr7kribN5rfMlsSA== MIME-Version: 1.0 X-Received: by 10.25.138.5 with SMTP id m5mr10535422lfd.28.1456157826200; Mon, 22 Feb 2016 08:17:06 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.184.146 with HTTP; Mon, 22 Feb 2016 08:17:06 -0800 (PST) In-Reply-To: <20160222121415.GG37895@zxy.spb.ru> References: <20160222121415.GG37895@zxy.spb.ru> Date: Mon, 22 Feb 2016 08:17:06 -0800 X-Google-Sender-Auth: jqbwWInNqDLro4SvCcSGrcyjFxU Message-ID: Subject: Re: three new netmap tools: pcap player, link emulator, load distributor From: Luigi Rizzo To: Slawa Olhovchenkov Cc: freebsd-current Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2016 16:17:09 -0000 On Monday, February 22, 2016, Slawa Olhovchenkov wrote: > On Sun, Feb 21, 2016 at 10:18:36AM -0800, Luigi Rizzo wrote: > > > lb > > a packet distributor that reads from a netmap port and distributes > > traffic to multiple netmap ports, using ze=E2=80=8Bro copy and a user= -defined > > hash function. This will be useful e.g. for people running multiple > > instances of traffic monitors such as bro, suricata and the like. > > It is not by chance that LB was originally developed by Seth Hall > > at Broala, who kindly made it available, and Giuseppe Lettieri who > > added a few features. > > Do you performance test of this tool? > In my case, on my hardware similar code can rehash and forward only > about 6.5Mpps in one thread. > Well above 15mpps on a Vale switch. The devil is in the details so "similar code" may perform wildly differently depending of what you actually do. Give this a try and let us know. Cheers Luigi --=20 -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2217533 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------