Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1007660ybt; Fri, 19 Jun 2020 21:25:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw730xlD0ajerctLUmWaHb0n1u3I16DmT1s+Nt/8QiQyG6gWl792VP54SQmW+vWpAp7a5u X-Received: by 2002:a17:906:3e0c:: with SMTP id k12mr6296265eji.441.1592627120634; Fri, 19 Jun 2020 21:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592627120; cv=none; d=google.com; s=arc-20160816; b=yjhEfV6nEOb+cT/qzRUmWhBTl6sFfEXIWXuLkZAHAxK3kRKwoNcv8Q+sHt2zcXxo6T 49guHJT38QzHuaVQpwjy8KyhMNIJmogmDWV0LGWKFtV2+FCNfph8C8+9E9qVEYmQvlzf jxQZyLQvce3iAF+nGPSQTlWNsjq5yoOJex4KSgnMu6xP1QdTphL2R0vxg7hJfwBNcJrw PYYTLdzawrzDG902uQLw3Oditm5FbDzJxsKVhMgg5IWVre6mR5fK+z3cx05Cqe+RbrUk cIstozn7IXc40Sbrm0+FJMtn9xa5CLO2PXkmHd3QQPGOmgmuJi89eDUgi7Rbq/yjXTyL BITQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=o7jACTPMklupBCcyQ4Eej+eEvNAjD27aYrs6PEc/vLM=; b=krzMtwI2hDF0qt4oI5ptc5kIXs0RKoPuhjh/CtX0ktON0sY4OWBayQXWDnK2S3H+1e 8B1ZkS6UCVV/ZzmkWLPcRaVIUGxgOyrLJOgKWBNLOgLLMGG+jmG/18nT2I2fp3WbbHyU qLc7DoQMT/4q1exyDXtYgFnsIr4JtAhXOsFFVj2aGGnf4QB0A9aLVjeoTUvjTAkhK0bH llbV3sCiP9pXqmTXv6Th9hMiXF2f6ENGDriYfve7rcGxa6S9xe0pPcOhVCaJ+KXGDPfU DDui2Olrj4NZyqbDUpOFiG3Vc4JbdAd6yV1qlRXxC1wc8Jf/9sx75YzrpkwarZssZy1w w7lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cNuAub2E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si4671327ejb.695.2020.06.19.21.24.59; Fri, 19 Jun 2020 21:25:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cNuAub2E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732832AbgFSS0g (ORCPT + 99 others); Fri, 19 Jun 2020 14:26:36 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:51345 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731628AbgFSS0a (ORCPT ); Fri, 19 Jun 2020 14:26:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592591189; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=o7jACTPMklupBCcyQ4Eej+eEvNAjD27aYrs6PEc/vLM=; b=cNuAub2E09tv6iPNe9MCdV0FZ1wquSqwzkqx53ocSarilStnSmp5uQt+QGFiOmOqMXt6y4 Ykv+Nm+6Ikz0R32qpKVG6yz8avjBCRkGprz7i39QRuUAq5McliIabQ0pshtuXaMGbS2Okb YmN1egl3FlKX0IMUqPRRoRuTxTUFYOQ= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-173-NT4vW2bxO1uHUlUnJboEoA-1; Fri, 19 Jun 2020 14:26:25 -0400 X-MC-Unique: NT4vW2bxO1uHUlUnJboEoA-1 Received: by mail-qv1-f71.google.com with SMTP id r4so7457406qvh.10 for ; Fri, 19 Jun 2020 11:26:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=o7jACTPMklupBCcyQ4Eej+eEvNAjD27aYrs6PEc/vLM=; b=UZpluoUadAjV8mM8oaKQ5MIMNzK/zk1NAWmkb6geHg+QSr/Nlv9jHHdhyOsVp0TNEp vp6Nzhm7ECd6htioF5rvEP9UDk08JFu4TYo9Ody7fXVV9aLbEXQqQgQqJ7fFTvfEWi9K cm0GQD7MK7n9XrL1+TuBRA3Zz7zTcdiJ3nJ6Q30r5uxnrC2gd/Mfl0RmzTjXeft1N+qA llWCE1x17CNWjdr5BbumTWi8lWMei9srPtaMkFmHWmBgm1XO+XhBwdE7rdAymzn31tbm ev3Nq7yi5gw3cQqFYG88be1CKlE/rQtPnsTL+AX2bZtK37cW4tWHj/kfClSjU/nZSHwF bTlQ== X-Gm-Message-State: AOAM533/0yhROZE7Uisa3A8Mni8WUfZJPC/P2Gg4V1QnwQ+Ns17oWir0 e/yaBp8LLOHfurlqjLAPvEr7LVF/EObLL/RLl+0gkVP/NTvz+oB9ORxZj/aoRz7foeFKzY8MCAq V3faRX3/wBr6RKsSx8Lwe/0t3ad+fKzL1/jMbK82k X-Received: by 2002:aed:2171:: with SMTP id 104mr2351983qtc.22.1592591184848; Fri, 19 Jun 2020 11:26:24 -0700 (PDT) X-Received: by 2002:aed:2171:: with SMTP id 104mr2351958qtc.22.1592591184592; Fri, 19 Jun 2020 11:26:24 -0700 (PDT) MIME-Version: 1.0 References: <20200611113404.17810-1-mst@redhat.com> <20200611113404.17810-3-mst@redhat.com> <20200611152257.GA1798@char.us.oracle.com> In-Reply-To: From: Eugenio Perez Martin Date: Fri, 19 Jun 2020 20:25:48 +0200 Message-ID: Subject: Re: [PATCH RFC v8 02/11] vhost: use batched get_vq_desc version To: Konrad Rzeszutek Wilk Cc: "Michael S. Tsirkin" , linux-kernel@vger.kernel.org, kvm list , virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, Jason Wang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 19, 2020 at 8:07 PM Eugenio Perez Martin wrote: > > On Mon, Jun 15, 2020 at 2:28 PM Eugenio Perez Martin > wrote: > > > > On Thu, Jun 11, 2020 at 5:22 PM Konrad Rzeszutek Wilk > > wrote: > > > > > > On Thu, Jun 11, 2020 at 07:34:19AM -0400, Michael S. Tsirkin wrote: > > > > As testing shows no performance change, switch to that now. > > > > > > What kind of testing? 100GiB? Low latency? > > > > > > > Hi Konrad. > > > > I tested this version of the patch: > > https://lkml.org/lkml/2019/10/13/42 > > > > It was tested for throughput with DPDK's testpmd (as described in > > http://doc.dpdk.org/guides/howto/virtio_user_as_exceptional_path.html) > > and kernel pktgen. No latency tests were performed by me. Maybe it is > > interesting to perform a latency test or just a different set of tests > > over a recent version. > > > > Thanks! > > I have repeated the tests with v9, and results are a little bit different: > * If I test opening it with testpmd, I see no change between versions > * If I forward packets between two vhost-net interfaces in the guest > using a linux bridge in the host: > - netperf UDP_STREAM shows a performance increase of 1.8, almost > doubling performance. This gets lower as frame size increase. > - rests of the test goes noticeably worse: UDP_RR goes from ~6347 > transactions/sec to 5830 > - TCP_STREAM goes from ~10.7 gbps to ~7Gbps > - TCP_RR from 6223.64 transactions/sec to 5739.44 And I forgot to add: It seems that avoiding IOV length math helps, since performance increases in all tests from patch 02/11 ("vhost: use batched get_vq_desc version") to 11/11 ("vhost: drop head based APIs").