From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by dpdk.org (Postfix) with ESMTP id 2E887C41A for ; Thu, 25 Jun 2015 13:20:14 +0200 (CEST) Received: by wicnd19 with SMTP id nd19so160892844wic.1 for ; Thu, 25 Jun 2015 04:20:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=3Z8D6RDAxksGrkGLkSQXAWavn86kMdq0NT6ZwEQ61m4=; b=hyrS6p98/CH6dyGJuewJ32BP4Xi0cW8XgLHu0jgdLUC4yTvGoqtTfKczkBPHIdrYnp MF7R0sMpmuFDr03ujuqhukWAHfwrBwp4BtR/dyxKYvQFo3WxSYwy0U5JC6DCS66mGYxz vbpwZ3odoLUA8s6Z++CB3SwMypL1DTTOSiNlMQjfDWOdjenDG5T3HkfIZYAb42YFKYEu OVek0wP51/bTkNiIqmHw8uyygIUWdqKKMJteAEsvgoQ2i9X3NoXpE6lDJlz7cW6a4fsl xoNvpABKKHDTxID2cirRt2xFtDj4KDApaewktCWlxF/splKy9EbUSu5M45+mUMc/Lj0t Dq8w== X-Gm-Message-State: ALoCoQm8hMtpwDtlBz/yq3SzxQmjG1akru2N4D27T6YxJozb6aAiZKtN6y0oEzg7+w20B1yT1L2X MIME-Version: 1.0 X-Received: by 10.194.61.129 with SMTP id p1mr80278144wjr.92.1435231214018; Thu, 25 Jun 2015 04:20:14 -0700 (PDT) Received: by 10.27.127.86 with HTTP; Thu, 25 Jun 2015 04:20:13 -0700 (PDT) In-Reply-To: <98DB008FA2AC6644B40AD8C766FAB271020CB0C624@BOREAL.arubanetworks.com> References: <98DB008FA2AC6644B40AD8C766FAB271020CB0C624@BOREAL.arubanetworks.com> Date: Thu, 25 Jun 2015 13:20:13 +0200 Message-ID: From: Maciej Grochowski To: Vithal S Mohare Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] KNI performance numbers... X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2015 11:20:14 -0000 I meet similar issue with KNI connected VM, but In my case I run 2 VM guests based on KNI and measure network performance between them: sesion: ### I just started demo with kni ./build/kni -c 0xf0 -n 4 -- -P -p 0x3 --config="(0,4,6,8),(1,5,7,9)" ###starting... ###set kni on vEthX to connect (as in example) echo 1 > /sys/class/net/vEth0_0/sock_en fd=`cat /sys/class/net/vEth0_0/sock_fd` ## start first guest VM kvm -nographic -name vm1 -cpu host -m 2048 -smp 1 -hda .../debian_squeeze_amd64.qcow2 -netdev tap,fd=$fd,id=hostnet1,vhost=on -device virtio-net-pci,netdev=hostnet1,id=net1,bus=pci.0,addr=0x4 ## start second guest VM echo 1 > /sys/class/net/vEth1_0/sock_en fd=`cat /sys/class/net/vEth1_0/sock_fd` kvm -nographic -name vm2 -cpu host -m 2048 -smp 1 -hda .../debian_squeeze2_amd64.qcow2 -netdev tap,fd=$fd,id=hostnet1,vhost=on -device virtio-net-pci,netdev=hostnet1,id=net1,bus=pci.0,addr=0x4 ###END: ustawiam 2 kvm z virtual guestem ### first VM node start server netserver -p 22113 ### performance from second VM guest to first (server) using netperf root@debian-amd64:~# netperf -H 10.0.0.200 -p 22113 -t TCP_STREAM MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 10.0.0.200 () port 0 AF_INET Recv Send Send Socket Socket Message Elapsed Size Size Size Time Throughput bytes bytes bytes secs. 10^6bits/sec 87380 16384 16384 10.01 219.86 So I got 220M between two VM using KNI, but it was only experiment (I didn't analyze it deeply) On Wed, Jun 24, 2015 at 7:58 AM, Vithal S Mohare wrote: > Hi, > > I am running DPDP KNI application on linux (3.18 kernel) VM (ESXi 5.5), > directly connected to another linux box to measure throughput using iperf > tool. Link speed: 1Gbps. Maximum throughput I get is 50% with 1470 > Bytes. With 512B pkt sizes, throughput drops to 282 Mbps. > > Tried using KNI loopback modes (and traffic from Ixia), but no change in > throughput. > > KNI is running in single thread mode. One lcore for rx, one for tx and > another fir kni thread. > > Is the result expected? Has anybody got better numbers? Appreciate for > input and relevant info. > > Thanks, > -Vithal >