From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 7378D1BB18 for ; Thu, 10 May 2018 16:34:00 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 May 2018 07:33:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,385,1520924400"; d="scan'208";a="227391992" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by fmsmga005.fm.intel.com with ESMTP; 10 May 2018 07:33:58 -0700 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.214]) by IRSMSX102.ger.corp.intel.com ([169.254.2.83]) with mapi id 14.03.0319.002; Thu, 10 May 2018 15:33:57 +0100 From: "Ananyev, Konstantin" To: "Burakov, Anatoly" , "dev@dpdk.org" CC: "Lu, Wenzhuo" , "Wu, Jingjing" , "Tan, Jianfeng" Thread-Topic: [dpdk-dev] [PATCH 2/2] app/tesetpmd: disable memory locking for bsdapp Thread-Index: AQHT4tuvYnnm6uWd6UyDtbZEzCQc76QpEfNg Date: Thu, 10 May 2018 14:33:57 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258AEDC55AE@irsmsx105.ger.corp.intel.com> References: <151ad7a96d31c881c28379b66c740cf96f5d2635.1525350577.git.anatoly.burakov@intel.com> In-Reply-To: <151ad7a96d31c881c28379b66c740cf96f5d2635.1525350577.git.anatoly.burakov@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTQ3Yjc4NTktMGY0Mi00YTkzLTkyMzAtYjU4NGFiOTRjZjNjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IkJRY2phWndpdE5YV0NIcEtDV01pcEtFSVpOcXo3ZEpvbUNRcElVNXd0Ykk9In0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 2/2] app/tesetpmd: disable memory locking for bsdapp 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: Thu, 10 May 2018 14:34:00 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Anatoly Burakov > Sent: Thursday, May 3, 2018 1:38 PM > To: dev@dpdk.org > Cc: Lu, Wenzhuo ; Wu, Jingjing ; Tan, Jianfeng > Subject: [dpdk-dev] [PATCH 2/2] app/tesetpmd: disable memory locking for = bsdapp >=20 > If mlockall() is called while allocated VA space is bigger than > amount of available RAM, FreeBSD kernel will deadlock and need > a hard reboot. We do allocate big amounts of memory because of > how new memory subsystem works, so calling mlockall() will cause > a deadlock. So, disable mlockall() by default on FreeBSD. >=20 > Signed-off-by: Anatoly Burakov > --- > app/test-pmd/testpmd.c | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c > index 77490be..38b8b7a 100644 > --- a/app/test-pmd/testpmd.c > +++ b/app/test-pmd/testpmd.c > @@ -2615,6 +2615,13 @@ main(int argc, char** argv) > latencystats_enabled =3D 0; > #endif >=20 > + /* on FreeBSD, mlockall() is disabled by default */ > +#ifdef RTE_EXEC_ENV_BSDAPP > + do_mlockall =3D 0; > +#else > + do_mlockall =3D 1; > +#endif > + > argc -=3D diag; > argv +=3D diag; > if (argc > 1) > -- Acked-by: Konstantin Ananyev > 2.7.4