From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id AE71DF72 for ; Fri, 25 Nov 2016 10:29:52 +0100 (CET) Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 47AA585541; Fri, 25 Nov 2016 09:29:52 +0000 (UTC) Received: from [10.36.6.60] (vpn1-6-60.ams2.redhat.com [10.36.6.60]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAP9Tm6C014090 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Nov 2016 04:29:50 -0500 To: "Mcnamara, John" , "yuanhan.liu@linux.intel.com" , "thomas.monjalon@6wind.com" , "Yang, Zhiyong" , "dev@dpdk.org" References: <20161123210006.7113-1-maxime.coquelin@redhat.com> Cc: "fbaudin@redhat.com" From: Maxime Coquelin Message-ID: <31ad9a25-dbc8-0c14-f99b-3c4439246ff1@redhat.com> Date: Fri, 25 Nov 2016 10:29:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Fri, 25 Nov 2016 09:29:52 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH] doc: introduce PVP reference benchmark X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2016 09:29:54 -0000 Hi John, On 11/24/2016 06:38 PM, Mcnamara, John wrote: >> -----Original Message----- >> From: Maxime Coquelin [mailto:maxime.coquelin@redhat.com] >> Sent: Wednesday, November 23, 2016 9:00 PM >> To: yuanhan.liu@linux.intel.com; thomas.monjalon@6wind.com; Mcnamara, John >> ; Yang, Zhiyong ; >> dev@dpdk.org >> Cc: fbaudin@redhat.com; Maxime Coquelin >> Subject: [PATCH] doc: introduce PVP reference benchmark >> >> Having reference benchmarks is important in order to obtain reproducible >> performance figures. >> >> This patch describes required steps to configure a PVP setup using testpmd >> in both host and guest. >> >> Not relying on external vSwitch ease integration in a CI loop by not being >> impacted by DPDK API changes. > > Hi Maxime, > > Thanks for the detailed doc and this initiative. Some minor documentation > comments below. > > > >> + >> +Setup overview >> +.............. > > This level header should be ---------, even if it looks like dots in the > contribution guide: > > http://dpdk.org/doc/guides/contributing/documentation.html#section-headers > > >> + >> +.. figure:: img/pvp_2nics.svg >> + >> + PVP setup using 2 NICs >> + > > The figure needs a target so it can be used with :numref:, like this: > > .. _figure_pvp_2nics: > > .. figure:: img/pvp_2nics.* > > PVP setup using 2 NICs > > >> +DPDK build >> +~~~~~~~~~~ >> + > > Put a one line description at the start of each section, even if it is just: Build DPDK: Ok. > > > >> +Testpmd launch >> +~~~~~~~~~~~~~~ >> + >> +#. Assign NICs to DPDK: >> + >> + .. code-block:: console >> + >> + modprobe vfio-pci >> + $RTE_SDK/install/sbin/dpdk-devbind -b vfio-pci 0000:11:00.0 >> + 0000:11:00.1 >> + >> +*Note: Sandy Bridge family seems to have some limitations wrt its >> +IOMMU, giving poor performance results. To achieve good performance on >> +these machines, consider using UIO instead.* > > This would be better as an RST note: > > #. Assign NICs to DPDK: > > .. code-block:: console > > modprobe vfio-pci > $RTE_SDK/install/sbin/dpdk-devbind -b vfio-pci 0000:11:00.0 0000:11:00.1 > > .. Note:: > > The Sandy Bridge family seems to have some IOMMU limitations giving poor > performance results. To achieve good performance on these machines > consider using UIO instead. This is indeed better, thanks for the tip! About this note, I couldn't find official information about this problem. Do you confirm the issue, or I misconfigured something? I'll also add something about security implications of using UIO. > > > >> +First, SELinux policy needs to be set to permissiven, as testpmd is run >> +as root (reboot required): > > s/permissiven/permissive/ > > > There are a couple of trailing whitespace errors as well at build as well. Ok, I will rework all this. Thanks for the review, Maxime