From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 2489723D for ; Tue, 24 Apr 2018 16:06:44 +0200 (CEST) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Apr 2018 07:06:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,323,1520924400"; d="scan'208";a="40082126" Received: from bricha3-mobl.ger.corp.intel.com ([10.237.221.51]) by fmsmga002.fm.intel.com with SMTP; 24 Apr 2018 07:06:41 -0700 Received: by (sSMTP sendmail emulation); Tue, 24 Apr 2018 15:06:40 +0100 Date: Tue, 24 Apr 2018 15:06:40 +0100 From: Bruce Richardson To: Anatoly Burakov Cc: dev@dpdk.org Message-ID: <20180424140639.GB135436@bricha3-MOBL.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 Development Ireland Ltd. User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [dpdk-dev] [PATCH 1/2] mem: add memalloc init stage 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: Tue, 24 Apr 2018 14:06:45 -0000 On Thu, Apr 19, 2018 at 01:26:28PM +0100, Anatoly Burakov wrote: > Currently, memseg lists for secondary process are allocated on > sync (triggered by init), when they are accessed for the first > time. Move this initialization to a separate init stage for > memalloc. > > Signed-off-by: Anatoly Burakov > --- > lib/librte_eal/bsdapp/eal/eal_memalloc.c | 6 +++ > lib/librte_eal/common/eal_common_memory.c | 3 ++ > lib/librte_eal/common/eal_memalloc.h | 3 ++ > lib/librte_eal/linuxapp/eal/eal_memalloc.c | 66 ++++++++++++++++++------------ > 4 files changed, 52 insertions(+), 26 deletions(-) > Looks ok to me. Acked-by: Bruce Richardson