From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f180.google.com (mail-wj0-f180.google.com [209.85.210.180]) by dpdk.org (Postfix) with ESMTP id 9B9C036E for ; Thu, 15 Dec 2016 08:20:46 +0100 (CET) Received: by mail-wj0-f180.google.com with SMTP id tg4so57939051wjb.1 for ; Wed, 14 Dec 2016 23:20:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=JH1k93Gs47+uxFlOVqFjIElyOoNyBqYc5CooUaqOSlM=; b=KXqPi4qJ+9P0/0Y7PTnWBhNPX2RiBCZujdGdPtrpQHgj8stp5USzym55gxy90uHzJw 5VjdVkdDyJ4sbrkris6XW/PNz5ynnUqs5Q/7TaXtp0tIQkl92OjAZ5tVj9tDaM+GzUXO tCNMd+EqAYHy7zCPt+PXd5MVyHAHZnU4GD+bZIbIhe4SDvThm/NdBRuPc25BYdauT6Bp Ccw8OQSlUkrjqO5wUHvghWVzOIrisxaqzWfCgKGOMMjql/xkSrN8p6Mt2vWRiMpKd4Wk p6iPtkxpeTy4O7XOSBmBUEUN0xIsEYfiAJD9ZBYYCuvvomK6kU8qvexBPaNsC5PFB1R1 mDtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=JH1k93Gs47+uxFlOVqFjIElyOoNyBqYc5CooUaqOSlM=; b=qlt96Ktum/KZvwqTXa+LsOgoeQMbQ4Mq5ZFcuMEFSXyegeA4KrQGgn/1xRevveqMYQ m4Cp16ieazcTM2vLn/bVqXYB+c8xEo52Hcq/t8ggSXjdmnaVwk2nltA1GyzSxG0qXrvm 7R7zgnZj+O31HV4w5TP6DW9v/rSUP9JpcNPm6y3xPWIHV5PtpgTaNDfOZmMFJdi5iVPe YwMWPNt3RJNoKvz1/7Nv8QWOvtkwUDJKwvY6ysLgdHu9WaxGsy4eVuM8myf9gLQK6Is/ 4PusApbfJ/pEHj3mnbKuErb9VpLdYzkdzT4xKDye2y9iSafrK81t5GeUB0hRZZugnWtE VRiw== X-Gm-Message-State: AKaTC03Sc3CyQAZ4M0riePprhvgUhg3fNC/ukDIv0GX9asHUH+pR3Pvx2HG1wlxK2GssFh9CSxcVIqoRIXYZWA== X-Received: by 10.194.52.42 with SMTP id q10mr820387wjo.50.1481786445997; Wed, 14 Dec 2016 23:20:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.175.70 with HTTP; Wed, 14 Dec 2016 23:20:45 -0800 (PST) Received: by 10.80.175.70 with HTTP; Wed, 14 Dec 2016 23:20:45 -0800 (PST) In-Reply-To: References: From: edgar helmut Date: Thu, 15 Dec 2016 09:20:45 +0200 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Dpdk poor performance on virtual machine X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2016 07:20:46 -0000 Hi. Some help is needed to understand performance issue on virtual machine. Running testpmd over the host functions well (testpmd forwards 10g between two 82599 ports). However same application running on a virtual machine over same host results with huge degradation in performance. The testpmd then is not even able to read 100mbps from nic without drops, and from a profile i made it looks like a dpdk application runs more than 10 times slower than over host... Setup is ubuntu 16.04 for host and ubuntu 14.04 for guest. Qemu is 2.3.0 (though I tried with a newer as well). NICs are connected to guest using pci passthrough, and guest's cpu is set as passthrough (same as host). On guest start the host allocates transparent hugepages (AnonHugePages) so i assume the guest memory is backed with real hugepages on the host. I tried binding with igb_uio and with uio_pci_generic but both results with same performance. Due to the performance difference i guess i miss something. Please advise what may i miss here? Is this a native penalty of qemu?? Thanks Edgar