Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933704AbcCODKx (ORCPT ); Mon, 14 Mar 2016 23:10:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47312 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932070AbcCODKv (ORCPT ); Mon, 14 Mar 2016 23:10:51 -0400 Subject: Re: [PATCH V4 0/3] basic busy polling support for vhost_net To: Michael Rapoport , Greg Kurz References: <1457090693-55974-1-git-send-email-jasowang@redhat.com> <20160309202645.030ad7b2@bahia.lab.toulouse-stg.fr.ibm.com> <201603100648.u2A6mSTl020833@d06av07.portsmouth.uk.ibm.com> Cc: borntraeger@de.ibm.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, mst@redhat.com, netdev@vger.kernel.org, virtualization@lists.linux-foundation.org, yang.zhang.wz@gmail.com From: Jason Wang Message-ID: <56E77D34.3050104@redhat.com> Date: Tue, 15 Mar 2016 11:10:44 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <201603100648.u2A6mSTl020833@d06av07.portsmouth.uk.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 15 Mar 2016 03:10:50 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1123 Lines: 33 On 03/10/2016 02:48 PM, Michael Rapoport wrote: > Hi Greg, > >> > Greg Kurz wrote on 03/09/2016 09:26:45 PM: >>> > > On Fri, 4 Mar 2016 06:24:50 -0500 >>> > > Jason Wang wrote: >> > >>> > > This series tries to add basic busy polling for vhost net. The idea is >>> > > simple: at the end of tx/rx processing, busy polling for new tx added >>> > > descriptor and rx receive socket for a while. The maximum number of >>> > > time (in us) could be spent on busy polling was specified ioctl. >>> > > >>> > > Test A were done through: >>> > > >>> > > - 50 us as busy loop timeout >>> > > - Netperf 2.6 >>> > > - Two machines with back to back connected mlx4 >> > >> > Hi Jason, >> > >> > Could this also improve performance if both VMs are >> > on the same host system ? > I've experimented a little with Jason's patches and guest-to-guest netperf > when both guests were on the same host, and I saw improvements for that > case. > Good to know this, I haven't tested this before but from the codes, it should work for VM2VM case too. Thanks a lot for the testing.