From owner-freebsd-net@FreeBSD.ORG Wed Jun 12 19:36:09 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D7E0E6A9 for ; Wed, 12 Jun 2013 19:36:09 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from mail-ie0-x229.google.com (mail-ie0-x229.google.com [IPv6:2607:f8b0:4001:c03::229]) by mx1.freebsd.org (Postfix) with ESMTP id AF3831D2E for ; Wed, 12 Jun 2013 19:36:09 +0000 (UTC) Received: by mail-ie0-f169.google.com with SMTP id 10so10782550ied.28 for ; Wed, 12 Jun 2013 12:36:09 -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 :content-type; bh=rQHSp40GibTTZAlUaZgpjxNIqUSoDXzoGtYoJFaEbhM=; b=mREXVA3fUbwOkBtl2TWPpTU09vUFZsAP/YD1njsHwCnDzPDv5YIlaOdrzMEljJHNf3 ecKYQH6aNiCKLeelTQvVk2zfkbJMbJAlmykYG7xSCu7kOpTqlV7FtjJ8efzq7m+jjVtN sqXjfGKqobAb5oMN6PTw8VLKbKOZF5QILx8gW9uIhm+wM/ro2FQZbD7uK0PlFxYl+hXB rMppzhl7yyAVUvZUtxfcMaxr8BxnREKbxv9lv4U06VJIL/zqqHcAp+wjHzOOSecaAtiP 4Zco3h1ySsp0C1jQOw1fm3LhXNrKjWl3f5+co9sygCzAjblm2pm/YDI9e0dvId5XP/kN QluA== MIME-Version: 1.0 X-Received: by 10.50.124.73 with SMTP id mg9mr4076628igb.63.1371065769414; Wed, 12 Jun 2013 12:36:09 -0700 (PDT) Received: by 10.50.57.35 with HTTP; Wed, 12 Jun 2013 12:36:09 -0700 (PDT) In-Reply-To: References: Date: Wed, 12 Jun 2013 16:36:09 -0300 Message-ID: Subject: Re: Netmap on em(4) newcomer (first steps) From: Eduardo Meyer To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jun 2013 19:36:10 -0000 On Tue, Jun 11, 2013 at 8:13 PM, Eduardo Meyer wrote: > Hello, > > I would like tro try netmap on em(4) device. Other than comping my kernel > with netmap what else I need to setup a "production-like" environment to > test it? > > The scenario is a simple BGP router w/ FreeBSD forwarding packets from em0 > to em1 with no NAT, etc. > > I read something about using a special virtual switch (VALE), is it > needed? Or is it for testing scenarios only? > > I want to try it on 9-STABLE. > OK I have compiled -STABLE with device netmap statically and rebuilt everyting. I have set: dev.netmap.fwd: 1 dev.netmap.verbose: 1 Test topology is simple: HOST1 ---------- GATEWAY --------- HOST2 HOST1 192.168.250.2 HOST2 192.168.251.2 GATEWAY being 192.168.250.1 (em1) and 192.168.251.1 (em2) Tested with iperf and got the sabe rate of bps (800M) and pps (151k) with or without netmap. How should I use pkt-gen in this scenario? HOST1 nor HOST2 are netmap-aware, only the GATEWAY since I want better forwarding performance on the GW itself. CPU usage is quite the same with and without netmap. What am I doing wrong in this scenario? Thanks again. -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br