From owner-freebsd-net@FreeBSD.ORG Tue Sep 30 18:57:59 2014 Return-Path: Delivered-To: freebsd-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 9CE26133 for ; Tue, 30 Sep 2014 18:57:59 +0000 (UTC) Received: from mail-ob0-x22e.google.com (mail-ob0-x22e.google.com [IPv6:2607:f8b0:4003:c01::22e]) (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 66607A7C for ; Tue, 30 Sep 2014 18:57:59 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id wp18so56509obc.5 for ; Tue, 30 Sep 2014 11:57:58 -0700 (PDT) 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=eXwQDzfRET+GvA5QvGii8HbI8l9g7DYllQaiL28vWzQ=; b=v+dDXCLQl2B+PIaYjNl8O3zi99RT5x11CkCfcij67k9GmM/Yonnm7byMn6KPNi/lRw 6ar2mCG3AnifKwJcp/9yD6xGjcg6VAV1ACL2I0KwfevtQIH3e78JRylrGIjHv2hdvzRp V9SWZO9VMCPq5vdgtSeyi/vzw9FshVN4giftXiIBohmyAyNcfk6I4dQRLqWs5LRsA98f pYRKuuDDf0qMXRQOsjTt50JuGO45aLs86Yg8rYBiKcTp0LFqFta8z7T+poWt0wkVHCVZ 3+Q2SGjPljhAioc+GMSbpHIhr75Pg9jKZJhnw0Bbemnc/buLwabzAiGtWcoFkFDx9LO+ 5bkw== MIME-Version: 1.0 X-Received: by 10.60.160.74 with SMTP id xi10mr51853552oeb.56.1412103478425; Tue, 30 Sep 2014 11:57:58 -0700 (PDT) Received: by 10.202.115.4 with HTTP; Tue, 30 Sep 2014 11:57:58 -0700 (PDT) In-Reply-To: References: Date: Tue, 30 Sep 2014 15:57:58 -0300 Message-ID: Subject: Re: Will netmap-ipfw fwd? From: Eduardo Meyer To: Luigi Rizzo Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "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: Tue, 30 Sep 2014 18:57:59 -0000 On Tue, Sep 30, 2014 at 1:49 PM, Luigi Rizzo wrote: > Should work. > Please try the latest version from code.google.com/p/netmap-ipfw/ > > Cheers > Luigi > OK just cloned. What should tbe topology be like? igb(4) -> netmap bridge -> vale -> ipfw? will lagg0 -> netmap bridge -> ipfw work too? > > On Tuesday, September 30, 2014, Eduardo Meyer > wrote: > >> I have a problem, where I need to fwd a high rate of pps, and I dont have >> enough CPU. It's around 900Kpps, so I would like to know if ipfw userland >> version with netmap support will do fwd? >> >> Here are my current rules: >> >> 00100 fwd 10.1.2.1 tag tcp from table(100) to any dst-port 80,1024-65535 >> in >> { via lagg0 or via vlan1010 } >> >> 00200 prob 0.500000 fwd 10.1.2.2 tcp from any 80,1024-65535 to table(100) >> in { via igb6 or via igb7 } >> 00300 fwd 10.1.2.3 tcp from any 80,1024-65535 to table(100) in { via igb6 >> or via igb7 } >> >> With those rules, my CPU interrupt rate raises from 30% to 80%. >> >> If netmap/ipfw has the ability to fwd should I expect a better interrupt >> rate and lower load? >> >> Sorry to ask before actually trying but this is a production environment >> and I don't have enough room to test, I would like to read opinions before >> finding out a nightly window to do the changes and tests. >> >> Thank you. >> >> -- >> =========== >> Eduardo Meyer >> pessoal: dudu.meyer@gmail.com >> profissional: ddm.farmaciap@saude.gov.br >> _______________________________________________ >> 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" >> > > > -- > -----------------------------------------+------------------------------- > Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione > http://www.iet.unipi.it/~luigi/ . Universita` di Pisa > TEL +39-050-2211611 . via Diotisalvi 2 > Mobile +39-338-6809875 . 56122 PISA (Italy) > -----------------------------------------+------------------------------- > > -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br