From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: Re: [PATCH 2/2] kvm tools: Add vhost-net support Date: Wed, 16 Nov 2011 14:45:44 +0200 Message-ID: <1321447544.3221.9.camel@lappy> References: <1321446276-23952-1-git-send-email-levinsasha928@gmail.com> <1321446276-23952-2-git-send-email-levinsasha928@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, "Michael S. Tsirkin" To: penberg@kernel.org Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:59869 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753222Ab1KPMrr (ORCPT ); Wed, 16 Nov 2011 07:47:47 -0500 Received: by wyh11 with SMTP id 11so414606wyh.19 for ; Wed, 16 Nov 2011 04:47:46 -0800 (PST) In-Reply-To: <1321446276-23952-2-git-send-email-levinsasha928@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, 2011-11-16 at 14:24 +0200, Sasha Levin wrote: > This patch adds support to using the vhost-net device when using a tap backed > virtio-net device. > > Activating vhost-net is done by appending a 'vhost=1' flag to the net device > configuration. For example: > > 'kvm run -n mode=tap,vhost=1' > > Cc: Michael S. Tsirkin > Signed-off-by: Sasha Levin > --- I forgot to attach performance numbers to the changelog, so here they are: Short version ------------------ TCP Throughput: +29% UDP Throughput: +10% TCP Latency: -15% UDP Latency: -12% Long version ------------------ MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) 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.00 4895.04 MIGRATED UDP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET Socket Message Elapsed Messages Size Size Time Okay Errors Throughput bytes bytes secs # # 10^6bits/sec 229376 65507 10.00 125287 0 6565.60 229376 10.00 106910 5602.57 MIGRATED TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET : first burst 0 Local /Remote Socket Size Request Resp. Elapsed Trans. Send Recv Size Size Time Rate bytes Bytes bytes bytes secs. per sec 16384 87380 1 1 10.00 14811.55 MIGRATED UDP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET : first burst 0 Local /Remote Socket Size Request Resp. Elapsed Trans. Send Recv Size Size Time Rate bytes Bytes bytes bytes secs. per sec 229376 229376 1 1 10.00 16000.44 229376 229376 After: MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) 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.00 6340.74 MIGRATED UDP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET Socket Message Elapsed Messages Size Size Time Okay Errors Throughput bytes bytes secs # # 10^6bits/sec 229376 65507 10.00 131478 0 6890.09 229376 10.00 118136 6190.90 MIGRATED TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET : first burst 0 Local /Remote Socket Size Request Resp. Elapsed Trans. Send Recv Size Size Time Rate bytes Bytes bytes bytes secs. per sec 16384 87380 1 1 10.00 17126.10 MIGRATED UDP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.33.4 (192.168.33.4) port 0 AF_INET : first burst 0 Local /Remote Socket Size Request Resp. Elapsed Trans. Send Recv Size Size Time Rate bytes Bytes bytes bytes secs. per sec 229376 229376 1 1 10.00 17944.51 -- Sasha.