From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id A0FEE2BC3; Fri, 16 Jun 2017 10:54:49 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP; 16 Jun 2017 01:54:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,346,1493708400"; d="scan'208";a="1183261252" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.28]) by fmsmga002.fm.intel.com with SMTP; 16 Jun 2017 01:54:46 -0700 Received: by (sSMTP sendmail emulation); Fri, 16 Jun 2017 09:54:46 +0100 Date: Fri, 16 Jun 2017 09:54:45 +0100 From: Bruce Richardson To: Junguk Cho Cc: "users@dpdk.org" , dev@dpdk.org Message-ID: <20170616085445.GA82628@bricha3-MOBL3.ger.corp.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.8.1 (2017-04-11) Subject: Re: [dpdk-dev] How to get "--base-virtaddr" when using DPDK X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2017 08:54:50 -0000 On Thu, Jun 15, 2017 at 12:00:16PM -0600, Junguk Cho wrote: > Hi, > > I have the same situation which is explained here ( > https://github.com/collectd/collectd/issues/2284). > > So, I would like to try "--base-virtaddr" option. > I tried to use "struct rte_memseg *m = rte_eal_get_physmem_layout()" option > based on (http://dpdk.org/doc/api/structrte__memseg.html). > However, it always returns different number. > > How do I get virtual address value to use it as an input of "base-viraddr"? > Hi, there is no one way to get a virtual address to pass in here - if you are aware of some suitable values just pass them directly. What I have done in the past in a multi-process system, is to run the primary normaly, and then when running the failing secondary turn up the log level so I can see the mapped addresses before it fails. Then I record the starting address that the secondary uses, and re-run the primary passing that in as the base-virtaddr hint. Regards, /Bruce