From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by dpdk.org (Postfix) with ESMTP id A2D7B307 for ; Fri, 11 Apr 2014 18:23:01 +0200 (CEST) Received: by mail-pa0-f45.google.com with SMTP id kl14so5619892pab.32 for ; Fri, 11 Apr 2014 09:24:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=5elZXQ88MnSLpQyeRC8/AgrvR/ZdVtKGb0+aXO9cxu4=; b=YcXhY7ga0KAASVCMKTznWNHWYbOmRrb30OBmcop2n+9JPh/Qw3LUMylUJOiV+sBOoZ dfT1yPPSfcJD4m7rO0Jqci4SMgxYhVv+ydG2f2Tpgmo8TPlpoN6Zl7KE/0JJ6tzRMKfn 4JSvKnW2fODrCjZ/AQjBw620PCr3xQazpqLpzIvgkdvmpSbYeDb819/KQzASsok2Lypv jTg92CsUM4PLu89lKAc3wJjuCvj8RRWH9dORMRpeqDx4FWMS2x66YkjZvv35rErT4Y/o PRSRemT3tC/0EAGqhWTaOQ7EfjI43ow1bymeIuPva6tvrb35iiUqi7FU8VUw/1MZw/xC b2EA== X-Gm-Message-State: ALoCoQmyNP9u7nOno1u6qAf1tRzxTdv3VvqFgzAhPzdrCS5oEgLoNJ+2LteUBcNNCA0sl0lbC2Mz X-Received: by 10.66.155.7 with SMTP id vs7mr28566561pab.42.1397233478650; Fri, 11 Apr 2014 09:24:38 -0700 (PDT) Received: from nehalam.linuxnetplumber.net (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id xr9sm38115290pab.5.2014.04.11.09.24.37 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 11 Apr 2014 09:24:38 -0700 (PDT) Date: Fri, 11 Apr 2014 09:24:35 -0700 From: Stephen Hemminger To: "Burakov, Anatoly" Message-ID: <20140411092435.29e06974@nehalam.linuxnetplumber.net> In-Reply-To: References: X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] IGB_UIO port unbinding 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, 11 Apr 2014 16:23:02 -0000 On Thu, 10 Apr 2014 09:39:35 +0000 "Burakov, Anatoly" wrote: > Hi everyone > > As you may or may not know, the CONFIG_RTE_EAL_UNBIND_PORTS was deprecated in the official Intel(r) DPDK 1.6.0 release package. However, the code itself (e.g. in lib/librte_eal/linuxapp/eal_pci.c and other places) to support that config option was not removed. My question would be, would anyone be opposed to a patch to remove that code entirely? E.g. does anyone use that functionality? > > Best regards, > Anatoly Burakov > DPDK SW Engineer I actually liked the unbind code that was there. It meant that additional logic did not have to be added to the startup script to do PCI discovery and finding/mapping devices. As it is the EAL startup process is a bit of a mess. It assumes that various bits of information and infrastructure are already in place prior to starting the DPDK application. Other silly DPDK environment issues are: why does DPDK have to know the number of memory channels in the system? How is the end user of an application supposed to know this? Sure your hacker might but not end user. It is difficult to impossible to determine this information at runtime. The best I could find is to use DMI decode to count number of memory banks and guess! The CPU mask is also something that should "do the right thing" and use all CPU's unless told otherwise. Having to wrap every DPDK application in a shell script makes the application more brittle and creates overlapping effort.