From owner-freebsd-net@FreeBSD.ORG Tue Sep 30 16:49:49 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 88C50CF0 for ; Tue, 30 Sep 2014 16:49:49 +0000 (UTC) Received: from mail-la0-x234.google.com (mail-la0-x234.google.com [IPv6:2a00:1450:4010:c03::234]) (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 1011E840 for ; Tue, 30 Sep 2014 16:49:48 +0000 (UTC) Received: by mail-la0-f52.google.com with SMTP id hz20so3982108lab.25 for ; Tue, 30 Sep 2014 09:49:47 -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:message-id:subject :from:to:cc:content-type; bh=tiOJHapF75kZIfpl9Jx7Gq3ibPGEuclTrCli1K8G/8o=; b=QnYAsddT8moLE4gJOyv0BjeCFRuOiGu8j8w8gBRvsiWU5UBaprziHb9CAbDsj8flNu vGF/Gwv98UGkRR9bVS9hMH2ZgHLONiHUXECQZiDO5b4Uz0bEyk4KvFJtj+uwZi4bBPKq q0drQ2y5wgUIl4aN0b0NRjRUTPrjtapBuC+uCJLlnDlenF2PfCj7BBTEGLx+NuZxAayU JyU6vjfF3knr37Faj05XhL2r5nV3DDjM8qfxl/PauYik4JZjQTvxbfqQN9o9GYZAxRmS 2xGPJo5g12pGu6WuCVaS+jiwj2hA1iS20CkxoGAx01lkO3iTHxb7pv4YCCuHN/6pSX98 c1eQ== MIME-Version: 1.0 X-Received: by 10.112.169.37 with SMTP id ab5mr24641399lbc.27.1412095786278; Tue, 30 Sep 2014 09:49:46 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.26.37 with HTTP; Tue, 30 Sep 2014 09:49:46 -0700 (PDT) In-Reply-To: References: Date: Tue, 30 Sep 2014 18:49:46 +0200 X-Google-Sender-Auth: gT8MKj8eRsiKwae1cM21XpJaJSA Message-ID: Subject: Re: Will netmap-ipfw fwd? From: Luigi Rizzo To: Eduardo Meyer 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 16:49:49 -0000 Should work. Please try the latest version from code.google.com/p/netmap-ipfw/ Cheers Luigi 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) -----------------------------------------+-------------------------------