From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) by dpdk.org (Postfix) with ESMTP id DFCED4C6E for ; Thu, 1 Aug 2013 21:22:51 +0200 (CEST) Received: by mail-pd0-f173.google.com with SMTP id p11so2370796pdj.4 for ; Thu, 01 Aug 2013 12:23:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=9b52AIgwlcW8cA7BMK8YeXqiDpaMWesIVXvBhZtIyZg=; b=PZRY1yCxWd91SOLm0FWsgsBaOdu6A5BsmmQX8y+us+QN6rcQLAcfxSYc6g6KfQJVU2 HW8VRWU3zAjw5BJgIxq0qNdsVZ+fLMGFCKKYE4vLBHgZCeUOQSF1BphxJzQIcaS3EO+k Xiy91AhixVpndilnziXjqmn4irDh6j+xjkQ2wyguti3KPaaYAkyFrqPVggrqHw7h5TnK YCm+mESXKScaf1GhLW7kuSie+bW8c27MQLEu2uDNIDQjwMT5obWFXc37s4YLZAsFngqx LQv/GNIBKqZLQU0r5PQLNaYA7HOwMIBxuLUQODGk3QwwJSeQLXmeklq3okf9eXbKO5CI 75bw== X-Received: by 10.66.253.40 with SMTP id zx8mr6111200pac.71.1375384996095; Thu, 01 Aug 2013 12:23:16 -0700 (PDT) Received: from samsung-9 (173-12-175-222-oregon.hfc.comcastbusiness.net. [173.12.175.222]) by mx.google.com with ESMTPSA id qc5sm5609362pbc.31.2013.08.01.12.23.15 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 01 Aug 2013 12:23:15 -0700 (PDT) Date: Thu, 1 Aug 2013 12:23:09 -0700 From: Stephen Hemminger To: Marc Sune Message-ID: <20130801122309.5d8d100b@samsung-9> In-Reply-To: <51FAA647.7070709@bisdn.de> References: <51FA80BF.2020801@bisdn.de> <20130801100638.4c0f06a8@samsung-9> <51FAA647.7070709@bisdn.de> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnZgzYU8e/bDTnxh0JcIQPj1H++fnm1KMSNYc7+G8axmFDzBkkykN14W9YuFWSjBNdmMWiZ Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Non-argv dependant rte_eal_init() call 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: Thu, 01 Aug 2013 19:22:52 -0000 On Thu, 01 Aug 2013 20:17:43 +0200 Marc Sune wrote: > Thanks Stephen for the hack. > > Unfortunately, our main already has parameters, and are all > platform(architecture) agnostic, so this would break the assumption that > arguments should be platform agnostic. > > But anyway thanks ;) > marc > Also, our application is started by an init script and there is some shell magic to attempt to deduce number of cpus (not hard) and number of memory channels (kind of messy). I do think the DPDK should work without any arguments and do this itself. The CPU part is easy by looking at /sys, but the memory channel information has to come from DMI which is a real ugly mess.