From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 535BB1B83E for ; Fri, 9 Feb 2018 12:53:48 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id i186so14902738wmi.4 for ; Fri, 09 Feb 2018 03:53:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=By0l1Sr/AjjlyOXc/8LYZOoP4gYeEm3LEBa/Z6Ilou0=; b=IwucrXMUEEhX5ws/x6BhqJSgEn+kUSoEM+kh7EvJ99GbBTMtQucgdCxLtTgwFcHY2V NjQEUozQ0C/qHpW9Qe/HZA9SKuGj36hrkItfGuieffSarb+5VKBcOejfP2ANF/uRypUx kBzSIRr+JoX0b+TDG7Ly0w/WZRaO/UQy9qSmQUwgWWIpVqZy8n6FN0JTkYDleblqj4KZ 3cKxnBQaDU9YZwYCdkQfTrQySl9mLzXO5aSka0d1DnXSwhARvbr8qinBaU4EipFhQF33 TgKlNz7oyZZQFubIwYQbuaZzzVzJlbh0PGBNwpUplZwYjTjyCJmP7zdQ4tVfZvtP0KC1 VteQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=By0l1Sr/AjjlyOXc/8LYZOoP4gYeEm3LEBa/Z6Ilou0=; b=kc0yUzOshIlS425hDmcizIbrFWUz0EVIGglgAPmlNk9/gyAgoAHxOX/1b/2XSwT+U1 3SVTA0L3cs8esqjq4SNNB1NuWZp5XfnenrjM2UJm5ZsOFgE7J67aDopbnez21aFUT15w U1lF9mkDxN0ykLyIAhAqkIPQ3czHeD0ya5EM+nw+zkjb9Et1ajbQqa4Qkl7IZKjvvuBF x2WIwkxmK0ZdYfdtGF0qEtJ0r4ZtF11dhKNRIArv84FKi49jc5ET3lmHm2+yaPua/wva R/+6PntF2+O+85UcLwp/gUK34QBQi8v3dJxL3p8yktMRd70hms5Rgw2qWR5/6Gtzipwl BVrg== X-Gm-Message-State: APf1xPA0vCnA4cvR/H8ZlaZ0Re8yHXmGckfTIksO1qc1M4dlQlc96CsR cZdp7L+zjGDuUBCur22bqYIneaSPbLJ5VIJXaXY= X-Google-Smtp-Source: AH8x22589KCwA6EJIKTtQIgUcudkt7SaD0/JEB/pUlThGPKkTLs7sDLFvfW1cCpAn6kfgKh8tURIOaZNgM1C5k35Da8= X-Received: by 10.80.196.73 with SMTP id w9mr3301915edf.293.1518177227890; Fri, 09 Feb 2018 03:53:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.185.37 with HTTP; Fri, 9 Feb 2018 03:53:47 -0800 (PST) In-Reply-To: <20180209112740.GA4756@bricha3-MOBL3.ger.corp.intel.com> References: <20180209112740.GA4756@bricha3-MOBL3.ger.corp.intel.com> From: Victor Huertas Date: Fri, 9 Feb 2018 12:53:47 +0100 Message-ID: To: Bruce Richardson Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] [dpdk-dev] Nehalem Intel Xeon X5506 architecture and PCIe NIC association to Numa node X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2018 11:53:48 -0000 Bruce, With igb_uio it happens the same: Network devices using DPDK-compatible driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:04:00.0 '82576 Gigabit Network Connection 10c9' drv=3Digb_uio unused=3Dvfio-pci 0000:04:00.1 '82576 Gigabit Network Connection 10c9' drv=3Digb_uio unused=3Dvfio-pci Network devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:02:00.0 '82572EI Gigabit Ethernet Controller (Copper) 107d' if=3Deth1 drv=3De1000e unused=3Digb_uio,vfio-pci *Active* Even I have linked the rte libs with the flag --whole-archive flag (I found somewhere in google that this solved a similar problem) but with no result. All the output I get when I run the app (it is the l3fwd-acl example) is what you see below: cuda1@cuda1:~/git/dpdk-stable> sudo /home/cuda1/eclipse-workspace/DPDK_Test/Debug/DPDK_Test -c 0x0f -n 2 -- -p 0x3 EAL: Detected 8 lcore(s) EAL: Probing VFIO support... EAL: VFIO support initialized port 0 is not present on the board EAL: Error - exiting with code: 1 Cause: check_port_config failed 2018-02-09 12:27 GMT+01:00 Bruce Richardson : > Moving to users list, since that is more relevant than dev. > > On Thu, Feb 08, 2018 at 07:36:30PM +0100, Victor Huertas wrote: > > Bruce, > > > > > > My requirements are not that much (500 Mbps and 1 Gbps desirable). > > > > > > Thanks for your references links I will have a look at them. > > > > > > Regarding the NIC detection in the DPDK app by the DPDK EAL > initialization > > after successfully having loaded the vfio-pci, it happens something > strange. > > > > The nb_ports =3D rte_eth_dev_count(); is always returning 0. > > > > > > Therefore it shows an error telling that "port 0 is not present on the > > board". > > > > > > The EAL seems to detect the VFIOs as the only two logs that shows when > > initializing regarding VFIO are: > > > > > > EAL: Probing VFIO support... > > > > EAL: VFIO support initialized > > > > > > And nothing else... shouldn't the EAL detect the two NICs I associated = to > > the VFIO? very strange... > > > > > > Yes, it should. Can you please send full output on startup. > Also, can you try using igb_uio module instead of vfio and see if that > works for you. > > Regards, > /Bruce > > > Regards, > > > > > > PD: I have changed the email address account in order to avoid sending > > these disturbing disclaimers. Sorry. > > > > > > -----Mensaje original----- > > De: Bruce Richardson [mailto:bruce.richardson@intel.com] > > Enviado el: jueves, 08 de febrero de 2018 17:42 > > Para: Huertas Garc=C3=ADa, V=C3=ADctor > > CC: dev@dpdk.org > > Asunto: Re: [dpdk-dev] Nehalem Intel Xeon X5506 architecture and PCIe N= IC > > association to Numa node > > > > > > > > On Thu, Feb 08, 2018 at 04:27:36PM +0000, Huertas Garc=C3=ADa, V=C3=ADc= tor wrote: > > > > > > > > > > Hi all, > > > > > > > > > > After having tried many ways to make the PCIe NIC card appear > associated > > to a numa node, I haven't been able to do it. > > > > > That is, every time I try to look at which numa node belongs it alway= s > > returns -1. > > > > > > > > > > $ cat /sys/bus/pci/devices/0000\:04\:00.1/numa_node > > > > > -1 > > > > > > > > > > $ cat /sys/bus/pci/devices/0000\:04\:00.0/numa_node > > > > > -1 > > > > > > > > > > Using lstopo, I confirm that all PCI cards are "outside" of any Numa > > node. > > > > > > > > > > I have read in previous posted messages in dpdk-dev community that th= is > > is normal in Nehalem generation Xeon architecture and there is nothing = I > > can do about it. Can somebody confirm this? > > > > > > > > For that generation architecture, it is indeed expected. The NICs are n= ot > > directly connected to any NUMA node. > > > > > > > > > If so, what implications could this have on packet capture and > > performance? > > > > > > > > Unsurprisingly, it's the case that newer platforms will perform better, > as > > you are missing out on performance benefits from improved cores and als= o > > features like Intel=C2=AE DDIO [1]. > > > > However, what I/O throughput are you hoping to get from your system? > > > > Depending on your requirements, what you have may be enough. Some peopl= e > > use DPDK on lower-end platforms because that is all that they need. You > may > > also find the chart on slide 6 of [2] of use to see how the max > throughput > > of a platform has improved over time (and has improved further since th= at > > chart was published). > > > > > > > > > > > > > > Are the NICs available in my DPDK applications? Do I have to > specifically > > "add" them by "-w 04:00.1 - w 04:00.0"? > > > > > > > > Yes, your NICs will still be available, even without NUMA affinity, and > no, > > you should not need to explicitly whitelist them - though you can if yo= u > > want. So long as they are bound to a uio or vfio driver (e.g. > > > > igb_uio or vfio-pci), they should be detected by DPDK EAL init and made > > available to your app. > > > > > > > > > Is RSS supported and usable from the DPDK application? > > > > > > > > Yes, at least for Intel NICs, and probably most other DPDK-supported NI= Cs > > too. > > > > > > > > > > > > > > Thanks a lot for your attention > > > > > > > > > > Victor > > > > > > > > > > > > > /Bruce > > > > > > > > [1] https://www.intel.com/content/www/us/en/io/data-direct-i-o-t > > echnology.html > > > > [2] https://dpdksummit.com/Archive/pdf/2016Germany/DPDK-2016- > > DPDK_FD_IO_Introduction.pdf > > > > > > > > PS: This is a public list, so email disclaimers are rather pointless. > > > > It's best if they can be removed from mails sent here. > > > > > > > > > > -- > > Victor > --=20 Victor