From owner-freebsd-net@FreeBSD.ORG Mon Jan 19 15:12:00 2015 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 CA37A426 for ; Mon, 19 Jan 2015 15:12:00 +0000 (UTC) Received: from mail-qc0-x230.google.com (mail-qc0-x230.google.com [IPv6:2607:f8b0:400d:c01::230]) (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 850FDAAD for ; Mon, 19 Jan 2015 15:12:00 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id c9so4816915qcz.7 for ; Mon, 19 Jan 2015 07:11:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=rS7Thm1eQiveYyjt4V/yEAGGfj0DqygKbYcoocGXpQs=; b=EGzYaxxxaLtQEVhDeY4CFgF1oPFC2GmhIxIJroIxiQbdlfXM2X0iVKNcVnjvgBiVRR Ca0prT4KDYeRo6QS5zi6q7J3SxwBcOipBimGFvtWP7mNRkZbSeHmmoBxVcXkJLGK0GC5 vXBvEhnmF48W7qdO+Ggy9Ajwdop+cfgrG3bCyy++514M7fteoRMJtj15AqVau0RXAT4p 9K3TdppxWGbVxo1exh39rAS/LHoftrnsfRlhVv9B7zulSDrK5yyn90SGWOYG0b44CrMY lBRgvwf90IncxBgsaLzk2jK3spWu6WbMTB9983rCFH3hSyNfiPnojH0HRrAPrv4j8j9M 53MQ== MIME-Version: 1.0 X-Received: by 10.224.131.4 with SMTP id v4mr22516258qas.99.1421680319685; Mon, 19 Jan 2015 07:11:59 -0800 (PST) Received: by 10.140.41.229 with HTTP; Mon, 19 Jan 2015 07:11:59 -0800 (PST) Date: Mon, 19 Jan 2015 09:11:59 -0600 Message-ID: Subject: netmap example bridge application performance issues From: Colton Chojnacki To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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: Mon, 19 Jan 2015 15:12:01 -0000 I ask this question about a week ago, but I may have asked on the wrong mailing list. I am trying to compare the performance of the bridge application included in netmap with that of linux kernel bridge application. I have noticed that the performance of netmap bridge application is significantly lower than that of the linux kernel bridge. I am not sure that I am using the netmap bridge application correctly. Looking to be pointed in the right direction. I am running the experiment on a single box using two network namespaces. Here is an overview of my setup: -Linux Kernel 3.14.28 with netmap module loaded -two network namespaces: h0, h1 -two veth pairs: veth0, veth1, veth2, veth3 -one bridge implementation: linux kernel bridge or netmap bridge -Each veth pair is terminated on a network namespace and the bridge implementation that I am testing I am running iperf from network namespace h0 to h1. With the linux kernel bridge iperf is reporting a bandwidth of 24.1 Gbps With the netmap bridge application iperf is reporting a bandwidth of 118Mbps The command I am using to setup the netmap bridge application is: ./bridge -i netmap:veth1 -i netmap:veth3 The result of the experiment (24.1Gbps vs 118Mbps) seems off, no? Also which branch/tag of this repository https://code.google.com/p/netmap/ should I be using for the latest linux version of netmap? Thanks, Colton