From mboxrd@z Thu Jan 1 00:00:00 1970 From: Asias He Subject: Re: [PATCH v2 3/4] kvm tools: Use ioeventfd in virtio-net Date: Wed, 01 Jun 2011 09:41:48 +0800 Message-ID: <4DE598DC.90502@gmail.com> References: <1306513120-28794-1-git-send-email-levinsasha928@gmail.com> <1306513120-28794-3-git-send-email-levinsasha928@gmail.com> <4DE42DEE.8070906@gmail.com> <1306859577.25406.19.camel@lappy> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Pekka Enberg , john@jfloren.net, kvm@vger.kernel.org, mingo@elte.hu, gorcunov@gmail.com, prasadjoshi124@gmail.com To: Sasha Levin Return-path: Received: from mail-pv0-f174.google.com ([74.125.83.174]:43926 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933129Ab1FABnN (ORCPT ); Tue, 31 May 2011 21:43:13 -0400 Received: by pvg12 with SMTP id 12so2293528pvg.19 for ; Tue, 31 May 2011 18:43:12 -0700 (PDT) In-Reply-To: <1306859577.25406.19.camel@lappy> Sender: kvm-owner@vger.kernel.org List-ID: On 06/01/2011 12:32 AM, Sasha Levin wrote: > On Tue, 2011-05-31 at 10:18 +0300, Pekka Enberg wrote: >> On Tue, May 31, 2011 at 2:53 AM, Asias He wrote: >>> TAP based network performance with ioeventfd >> >> Heh, so how did it look _before_ ioeventfd? Did performance improve >> and how much? > > Asias, did you use TCP or UDP values as bandwidth in your previous test? > These commit log have the performance test result before ioeventfd. But the UDP one is missing. commit 739ddbb3b0fe52aa90a84727a6e90da37ce7661b commit 4ed38b41fc034cfb51fec2004f523fe98faa27f6 Netpef test shows this patch changes: the host to guest bandwidth from 2866.27 Mbps (cpu 33.96%) to 5548.87 Mbps (cpu 53.87%), the guest to host bandwitdth form 1408.86 Mbps (cpu 99.9%) to 1301.29 Mbps (cpu 99.9%). Anyway, I did another test and post the result here: Test shows host -> guest TCP performance drops from 6736.04 to 5562.25. guest -> host TCP performance dumps from 1572.51 to 1731.55. --------------------------------------------------------------- TAP based network performance *with* ioeventfd with commit 6dfc8581f14d355a89e7edaf4394ee8c69177f1f --------------------------------------------------------------- (host -> guest) hj:~# netperf -c -t TCP_STREAM -H guest TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to guest (192.168.33.15) port 0 AF_INET : demo Recv Send Send Utilization Service Demand Socket Socket Message Elapsed Send Recv Send Recv Size Size Size Time Throughput local remote local remote bytes bytes bytes secs. 10^6bits/s % S % U us/KB us/KB 87380 16384 16384 10.00 5562.25 45.74 -1.00 2.694 -1.000 hj:~# netperf -c -t UDP_STREAM -H guest UDP UNIDIRECTIONAL SEND TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to guest (192.168.33.15) port 0 AF_INET : demo Socket Message Elapsed Messages CPU Service Size Size Time Okay Errors Throughput Util Demand bytes bytes secs # # 10^6bits/sec % SU us/KB 114688 65507 10.00 275048 0 14413.5 71.65 11.516 110592 10.00 38904 2038.7 -1.00 -1.000 (guest-> host) root@sid2:~# netperf -c -t TCP_STREAM -H host TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to host (192.168.33.2) port 0 AF_INET : demo Recv Send Send Utilization Service Demand Socket Socket Message Elapsed Send Recv Send Recv Size Size Size Time Throughput local remote local remote bytes bytes bytes secs. 10^6bits/s % S % U us/KB us/KB 87380 16384 16384 10.00 1731.55 99.30 -1.00 4.698 -1.000 root@sid2:~# netperf -c -t UDP_STREAM -H host UDP UNIDIRECTIONAL SEND TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to host (192.168.33.2) port 0 AF_INET : demo Socket Message Elapsed Messages CPU Service Size Size Time Okay Errors Throughput Util Demand bytes bytes secs # # 10^6bits/sec % SU us/KB 110592 65507 10.00 134084 0 7026.4 99.80 1.169 114688 10.00 133473 6994.4 -1.00 -1.000 --------------------------------------------------------------- TAP based network performance *without* ioeventfd with commit dd2e19aee64ad93d170fc7f285c7072aa4e360a0 --------------------------------------------------------------- (host -> guest) hj:~# netperf -c -t TCP_STREAM -H guest TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to guest (192.168.33.15) port 0 AF_INET : demo Recv Send Send Utilization Service Demand Socket Socket Message Elapsed Send Recv Send Recv Size Size Size Time Throughput local remote local remote bytes bytes bytes secs. 10^6bits/s % S % U us/KB us/KB 87380 16384 16384 10.00 6736.04 39.58 -1.00 1.925 -1.000 hj:~# netperf -c -t UDP_STREAM -H guest UDP UNIDIRECTIONAL SEND TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to guest (192.168.33.15) port 0 AF_INET : demo Socket Message Elapsed Messages CPU Service Size Size Time Okay Errors Throughput Util Demand bytes bytes secs # # 10^6bits/sec % SU us/KB 112640 65507 10.00 289263 0 15158.4 63.30 4.832 110592 10.00 81910 4292.4 -1.00 -1.000 (guest-> host) root@sid2:~# netperf -c -t TCP_STREAM -H host TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to host (192.168.33.2) port 0 AF_INET : demo Recv Send Send Utilization Service Demand Socket Socket Message Elapsed Send Recv Send Recv Size Size Size Time Throughput local remote local remote bytes bytes bytes secs. 10^6bits/s % S % U us/KB us/KB 87380 16384 16384 10.00 1572.51 99.80 -1.00 5.199 -1.000 root@sid2:~# netperf -c -t UDP_STREAM -H host UDP UNIDIRECTIONAL SEND TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to host (192.168.33.2) port 0 AF_INET : demo Socket Message Elapsed Messages CPU Service Size Size Time Okay Errors Throughput Util Demand bytes bytes secs # # 10^6bits/sec % SU us/KB 110592 65507 10.00 117100 0 6136.4 99.90 1.335 112640 10.00 117023 6132.4 -1.00 -1.000 -- Best Regards, Asias He