From mboxrd@z Thu Jan 1 00:00:00 1970 From: Panu Matilainen Subject: Re: Permanently binding NIC ports with DPDK drivers Date: Fri, 13 Nov 2015 14:24:11 +0200 Message-ID: <5645D66B.8020905@redhat.com> References: <964049bfb9054699a2e4520c6758a7ee@bilemail1.empirix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: "Montorsi, Francesco" , "Mcnamara, John" , "dev@dpdk.org" Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 36ED693AE for ; Fri, 13 Nov 2015 13:24:14 +0100 (CET) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 11/13/2015 01:48 PM, Montorsi, Francesco wrote: > Hi John, > >> -----Original Message----- >> From: Mcnamara, John [mailto:john.mcnamara@intel.com] >> >> The Ubuntu dpdk package for 15.10 contains system scripts with functions for >> reserving hugepages and binding interfaces on bootup: >> >> >> /etc/dpdk/dpdk.conf >> /etc/dpdk/interfaces >> /etc/init.d/dpdk >> /lib/dpdk/dpdk-init >> /lib/systemd/system/dpdk.service >> /sbin/dpdk_nic_bind >> /usr/bin/testpmd >> /usr/share/doc/dpdk/README.Debian >> /usr/share/doc/dpdk/changelog.Debian.gz >> /usr/share/doc/dpdk/copyright >> /usr/share/dpdk/tools/cpu_layout.py >> /usr/share/dpdk/tools/dpdk_nic_bind.py >> /usr/share/dpdk/tools/setup.sh >> /usr/share/python/runtime.d/dpdk.rtupdate >> >> http://packages.ubuntu.com/wily/amd64/dpdk/filelist >> >> If you have the latest version of Ubuntu you can check that out or else >> download and extract the files from the .deb to see how they do it. >> > > This certainly looks very useful. I inspected the package and the > files you mentioned and indeed it looks like a good way to go, specially > if Ubuntu distribution is moving in that direction (hopefully other > distros will follow too). > > Thanks a lot! The downside of the Ubuntu-approach is that the setup is fairly static and does not support automatically binding hotplugged devices, AFAICS. Whether that matters to your use-case is of course en entirely different question. - Panu - > Francesco > >