Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2867139ybt; Mon, 22 Jun 2020 08:58:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW4OJnqePonaH0o8sejbzEzMZu8gganCxbQUvNjoQcxpt4SItSemKYshVSEgz60v3vQnKm X-Received: by 2002:a17:906:7f94:: with SMTP id f20mr16901411ejr.394.1592841519889; Mon, 22 Jun 2020 08:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592841519; cv=none; d=google.com; s=arc-20160816; b=XqhVYJP4WTIkrdss3lZDP/y11aom7I3fqhPoz31qPmMo39i2xoZku9Wb9dGUa2c1jI OeEUnbgdIlC+TB//AzT3utwRHQkJ56SuURyLTkyNW9ZyGesxRjNqTEj2vpqQ10CG8Jfj +5IWbsyfGZlZef0gC4vOzE3CwE3EgyNgAPz5Z0P7RM4gXIJ81zmiP/A5B4AcRUPAzi5V mVj3OVf9ee3RakGk04gmDt1+cQwsOV6BWnomlRzersjKjTm+ohwm366WTzWNH5Au99Ag AAxoGb9NyWJdClTc20Imoh9Y4MaRdhNSVi/gsxTOK9Zs1laxTbjhBLCOXiMvb1ZEdr2j v71w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=5/TWvdWyq1xUujhnrnIglEliiwBVOZjUqDPRZt1W7a0=; b=ZoEl0ezDCDW7JFieLm1UygIOn7cvFnMuRPeiPQGG5HBoA34m5dsoYAi1oy+NciW2YR 9llJQgRsT3DdvBAd20r5YhTgOrqkG5dk+o4gym4Zq83XAGyd9pvk67xTsLS0Yo5KYVrK tLp7ZF+klQc+M4KP+uW01dGUbtFF5lOaJDhz5RZfgG9bIHSs+yoW2QY6nk9abGGnppT9 h8BwltJ1uu+sj0+C/Nryt8MTSqtFlQyt99HAVq00hwgYF3FwC8daC9vVqpoiAHX1SYYr xR+AjkyQXi/GGKgywiRnGFrKHDChGKm5ilPRXjncX1WnIUsUfQBDnotAAJnQWAR3QbDX oWqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iE4nkaqW; 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 bo9si9942761edb.239.2020.06.22.08.58.17; Mon, 22 Jun 2020 08:58:39 -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=iE4nkaqW; 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 S1726328AbgFVPzX (ORCPT + 99 others); Mon, 22 Jun 2020 11:55:23 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:28724 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729259AbgFVPzU (ORCPT ); Mon, 22 Jun 2020 11:55:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592841318; 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=5/TWvdWyq1xUujhnrnIglEliiwBVOZjUqDPRZt1W7a0=; b=iE4nkaqWg7ceF2qN/2NTiRd/QzIM7n7t+7OWXNPCP61vZaL7FA7plmvNYbsqGc/qZes/Aa 5ORPPZBlApX3kLPcrzF8O0g3iYCGwvYKPzDm5NXrQRMSElcRpRN27mJCKvsR8CiWZBAnzt jHRFxI3lMSUMSR69VY3eQFfEQHCZRcQ= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-49-2KDaJedvNNKDU6gyVSoSig-1; Mon, 22 Jun 2020 11:55:10 -0400 X-MC-Unique: 2KDaJedvNNKDU6gyVSoSig-1 Received: by mail-wm1-f69.google.com with SMTP id h6so24084wmb.7 for ; Mon, 22 Jun 2020 08:55:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5/TWvdWyq1xUujhnrnIglEliiwBVOZjUqDPRZt1W7a0=; b=l3vuCf1UJcRhDH5tptSY/AHW3hA1hs4JWQwfXCxk4TQSXpJXpfhTCvc55mwAqIdCLF CHTPozREuV4jf0rF+RX7oyRj4OkHzjWTQa9nAXfiBtkU21MeUaR3HLQ0pnFf1mJHJuDE 8QYYiShAJzL8lwyM/7C4NXhIXHBQ9rqwU7NYDxVTUA+z8h8M40ohkP0AzAQmQffT0Zee zOmDBpT7XVeJsqm2uUMn6LvKf5/UOBMVf2OQe0r23OxIMdIHvUO2CvKGCc0YjpxOLPnO ZQjLTHTJFnKXK00Pix59QKcvX0d+R7h5BrupQleLqcSB4xDvsTzLlJKn8+yp70y28J2R H1Mw== X-Gm-Message-State: AOAM530KpNAoYP7RtQCyAVTiz9efAjeDYr36RNqXsX0IH0tf8hgFdDqe Eoe5keF0kYUP6N/i0p7p4uq+l8iq/EEsdfXZ06MnplAzY28UgwPvjmJ2Nfjz3VPHATYHDbe8lcl ybFtUu0WuOH0i7MieieeY1Q3D X-Received: by 2002:adf:81c8:: with SMTP id 66mr15414789wra.348.1592841308600; Mon, 22 Jun 2020 08:55:08 -0700 (PDT) X-Received: by 2002:adf:81c8:: with SMTP id 66mr15414773wra.348.1592841308364; Mon, 22 Jun 2020 08:55:08 -0700 (PDT) Received: from redhat.com (bzq-79-178-18-124.red.bezeqint.net. [79.178.18.124]) by smtp.gmail.com with ESMTPSA id d201sm5593758wmd.34.2020.06.22.08.55.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 08:55:07 -0700 (PDT) Date: Mon, 22 Jun 2020 11:55:04 -0400 From: "Michael S. Tsirkin" To: Eugenio Perez Martin Cc: Konrad Rzeszutek Wilk , linux-kernel@vger.kernel.org, kvm list , virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, Jason Wang Subject: Re: [PATCH RFC v8 02/11] vhost: use batched get_vq_desc version Message-ID: <20200622114622-mutt-send-email-mst@kernel.org> References: <20200611113404.17810-1-mst@redhat.com> <20200611113404.17810-3-mst@redhat.com> <20200611152257.GA1798@char.us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 08:07:57PM +0200, 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 OK that is testpmd on guest, right? And vhost-net on the host? > * If I forward packets between two vhost-net interfaces in the guest > using a linux bridge in the host: And here I guess you mean virtio-net in the guest kernel? > - 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 OK so it seems plausible that we still have a bug where an interrupt is delayed. That is the main difference between pmd and virtio. Let's try disabling event index, and see what happens - that's the trickiest part of interrupts. > - TCP_STREAM goes from ~10.7 gbps to ~7Gbps > - TCP_RR from 6223.64 transactions/sec to 5739.44