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 36ED693AE for ; Fri, 13 Nov 2015 13:24:14 +0100 (CET) Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id A758324D; Fri, 13 Nov 2015 12:24:13 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-6-92.ams2.redhat.com [10.36.6.92]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tADCOCUU023537; Fri, 13 Nov 2015 07:24:12 -0500 To: "Montorsi, Francesco" , "Mcnamara, John" , "dev@dpdk.org" References: <964049bfb9054699a2e4520c6758a7ee@bilemail1.empirix.com> From: Panu Matilainen Message-ID: <5645D66B.8020905@redhat.com> Date: Fri, 13 Nov 2015 14:24:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Subject: Re: [dpdk-dev] Permanently binding NIC ports with DPDK drivers 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, 13 Nov 2015 12:24:14 -0000 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 > >