From owner-freebsd-net@FreeBSD.ORG Thu Jun 13 12:56:31 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0EE706E5 for ; Thu, 13 Jun 2013 12:56:31 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by mx1.freebsd.org (Postfix) with ESMTP id D7FEF1B7B for ; Thu, 13 Jun 2013 12:56:30 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id f4so21009866iea.39 for ; Thu, 13 Jun 2013 05:56:30 -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=tvV0niFm2dATRUSg2WRjqlGVmSMv+T0FTqomgEbJzac=; b=d7hvuYnUf5YJm3LjxMS/BR41pBvap4k3kQtnufUKH1KIqwEAZxlwCMi8XoGAjdiO/I mY/DIGJUXeK6I1Cg11j7Na7fWCYONoh5nw57SNiKMHlaRcTq78n0h83cfqCTaBxEcFQu wDojwNZ17GMA88ixAU7m5NwuK+IzrwL7Ytm6+iFKBHZNLMZyQ5JjChc1Q9kPLP192VT2 6Imq28rhNwQRLyTz9Yzf6Rh/b50aKidmZ4hiCJJBYG1to0hUnmFUgVE2s47wFHTw8J0f kSwR99xLlHhMpp4P1dB22DoOE/oYUqd9mwk7Z6QpTmNy6wHaVd9U7sLT3QAce4z3+KWp pdsQ== MIME-Version: 1.0 X-Received: by 10.50.97.74 with SMTP id dy10mr5447460igb.3.1371128190590; Thu, 13 Jun 2013 05:56:30 -0700 (PDT) Received: by 10.50.57.35 with HTTP; Thu, 13 Jun 2013 05:56:30 -0700 (PDT) In-Reply-To: References: Date: Thu, 13 Jun 2013 09:56:30 -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: Thu, 13 Jun 2013 12:56:31 -0000 On Wednesday, June 12, 2013, Eduardo Meyer wrote: > > > > 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. > Ive read Olivier's (BSDRP) benchs sent to current@ and there seem no particular configuration for packet forwarding. So o dunno what I may be lacking. What and where output netmap verbose is supposed to generate? > > -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br