Received: by 10.223.185.116 with SMTP id b49csp200108wrg; Tue, 13 Feb 2018 19:49:23 -0800 (PST) X-Google-Smtp-Source: AH8x226tnf0SPKCvVPlZlZhaVEbmXDXRTxitGAjnzOAipO/fgl9BB18PCcW4eLCsXfbY3wAa1594 X-Received: by 2002:a17:902:8b88:: with SMTP id ay8-v6mr3163091plb.197.1518580162931; Tue, 13 Feb 2018 19:49:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518580162; cv=none; d=google.com; s=arc-20160816; b=ryHWidj51Pf/TPGDxR1ss06jiqDjR2/mI0K40R3YqOfOrL2mmIAkaY6CUEap3Qk3fZ A0da2KgxFw2eA3IvEGEcpaRX/YkeCtjA2wXtXPZWohCWQcB9c3L0faeGOc6fwEmukl0N QLpMWL2Ofeo0nFkAJU8mOAryAaNxBidNYeH/aJTlfd8NC4GJSPrDHX6GsLMv5gjtRZSH 0e/9CQFwtOe1jk37xIRERmFqQLGInfZpIzdQ2BKgfbGUiqUlUfomwAL9y8uBhkfujVJ7 ueuUSst2++3UFwPP8qnUsoFSQN1kz0ZK82cFFSxi0d4qSo2m0nNP84Bzs0b0Z4zRY2o2 9y5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=byXQbuRHVGHEe5dUnqNP6xIGJEAuWhxb3JJd4w/4w0s=; b=nBAhOjd1KJbB7K98C0D6MDz2uyStM4fU3i0meihk+EO0Zr1M5mK5G069ao3Ebka6jR 6Qm+nwFDbB2gK2cSyz8zaLOE5G+KLnJ7iI7DVpt8Uv0/P9bU4wvpfkM46jtPcaptUb5l dOqgKBWbayuYHE2i2iv6ZJBhVfSTdzDbE0JGnzfoOegMXtGmEotLR6LZX8vC1vuFQE14 JBsWLXehcMZktSvqV/NvW8n2X9lBAd08FM/f3fGv+7BRkqvZBD99NjttrBUjXVb71Apa fjU8RRR/f6I0ROjc5TjcBfi0EVwbJJBUs69kl5sjSlD68LqZdzaH5cYIrJHZ6dr1EVU0 JALg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6si6143738pfg.9.2018.02.13.19.49.05; Tue, 13 Feb 2018 19:49:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966762AbeBNDsZ (ORCPT + 99 others); Tue, 13 Feb 2018 22:48:25 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:42102 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966671AbeBNDsY (ORCPT ); Tue, 13 Feb 2018 22:48:24 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9C2E780125D6; Wed, 14 Feb 2018 03:48:23 +0000 (UTC) Received: from [10.72.12.115] (ovpn-12-115.pek2.redhat.com [10.72.12.115]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E934CFD939; Wed, 14 Feb 2018 03:48:17 +0000 (UTC) Subject: Re: [PATCH RFC 0/2] Packed ring for vhost To: "Michael S. Tsirkin" Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, wexu@redhat.com, jfreimann@redhat.com, tiwei.bie@intel.com References: <1518575829-1431-1-git-send-email-jasowang@redhat.com> <20180214044634-mutt-send-email-mst@kernel.org> From: Jason Wang Message-ID: <97e20ab7-a73c-e911-f5ae-38359f68d4f4@redhat.com> Date: Wed, 14 Feb 2018 11:48:08 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180214044634-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 14 Feb 2018 03:48:23 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 14 Feb 2018 03:48:23 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jasowang@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018年02月14日 10:47, Michael S. Tsirkin wrote: > On Wed, Feb 14, 2018 at 10:37:07AM +0800, Jason Wang wrote: >> Hi all: >> >> This RFC implement a subset of packed ring which was described at >> https://github.com/oasis-tcs/virtio-docs/blob/master/virtio-v1.1-packed-wd07.pdf >> . The code were tested with pmd implement by Jens at >> http://dpdk.org/ml/archives/dev/2018-January/089417.html. Minor >> change was needed for pmd codes to kick virtqueue since it assumes a >> busy polling backend. >> >> Test were done between localhost and guest. Testpmd (rxonly) in guest >> reports 2.4Mpps. Testpmd (txonly) repots about 2.1Mpps. > How does this compare with the split ring design? No obvious difference (+-5%). I believe we reach the bottleneck of vhost. > >> It's not a complete implemention, here's what were missed: >> >> - Device Area >> - Driver Area >> - Descriptor indirection >> - Zerocopy may not be functional >> - Migration path is not tested >> - Vhost devices except for net >> - vIOMMU can not work (mainly because the metadata prefetch is not >> implemented). >> - See FIXME/TODO in the codes for more details >> - No batching or other optimizations were implemented > ioeventfd for PIO/mmio/s390. > Probably, but this is not the stuffs of packed ring I think. Thanks