From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id C90D46944; Wed, 17 Aug 2016 00:54:57 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 16 Aug 2016 15:54:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,529,1464678000"; d="scan'208";a="1015575404" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga001.jf.intel.com with ESMTP; 16 Aug 2016 15:54:54 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 16 Aug 2016 15:54:54 -0700 Received: from fmsmsx105.amr.corp.intel.com ([169.254.4.83]) by FMSMSX112.amr.corp.intel.com ([10.18.116.6]) with mapi id 14.03.0248.002; Tue, 16 Aug 2016 15:54:54 -0700 From: "Harris, James R" To: "Gonzalez Monroy, Sergio" , "Thomas Monjalon" , "users@dpdk.org" , "dev@dpdk.org" , "Richardson, Bruce" CC: "Verkamp, Daniel" Thread-Topic: [dpdk-dev] [dpdk-users] rte_zmalloc() returning non-zeroed memory on FreeBSD Thread-Index: AQHR95D+QoGxPl6yxUqcT0a+FJTz06BMMnCQ Date: Tue, 16 Aug 2016 22:54:53 +0000 Message-ID: References: <1470871839.40000.48.camel@intel.com> <1549431.MJntLMElOg@xps13> <8b8e180e-a996-ef6e-cbf8-23028a194224@intel.com> In-Reply-To: <8b8e180e-a996-ef6e-cbf8-23028a194224@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.200.108] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] [dpdk-dev] rte_zmalloc() returning non-zeroed memory on FreeBSD X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2016 22:54:58 -0000 > -----Original Message----- > From: Gonzalez Monroy, Sergio > Sent: Tuesday, August 16, 2016 12:37 AM > To: Harris, James R; Thomas Monjalon; users@dpdk.org; dev@dpdk.org; > Richardson, Bruce > Cc: Verkamp, Daniel > Subject: Re: [dpdk-dev] [dpdk-users] rte_zmalloc() returning non-zeroed > memory on FreeBSD >=20 > On 15/08/2016 18:23, Harris, James R wrote: > > > > The problem is that the FreeBSD contigmem driver does not re-zero the > huge > > pages each time they are mmap'd - they are only zeroed when contigmem > > initially loads. I will push a patch for this shortly. >=20 > So that is the case where we run the app more than once, right? > I missed that, I only ran it once. Correct - it works OK the first time. The problem only occurs if you run t= he app more than once (unless you unload and reload contigmem before running the app a second time). -Jim