From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from COL004-OMC1S14.hotmail.com (col004-omc1s14.hotmail.com [65.55.34.24]) by dpdk.org (Postfix) with ESMTP id 39104694A for ; Thu, 18 Aug 2016 15:42:24 +0200 (CEST) Received: from IND01-BO1-obe.outbound.protection.outlook.com ([65.55.34.9]) by COL004-OMC1S14.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 18 Aug 2016 06:42:23 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=lOs/kZb//L5jtg+vlYzzGueVas4PVB0aCCNG0CUF2pM=; b=aMF0DdRBwT3ZAMThRd4cdu0dkQMv9f1N82ZaHE5kb9IbcomMSPUozVLsIWwspZm6RqeJ914ckMTh+yS1DHltdl58FFK1yrFidvUqXcTVuHbbaCkvP0ZGkaH4i3PjauIusHTQUjtJP4/z3kaPhXaXO0Uf4f45JTHlStpDFKptFFm3vzNij44bIePQPZjDnFK6FsOHT/dqfsnCkm09MroNxbYXCB8BE/MquqtnKA4PZTikRwzOuzAHxl2lzpdPsJM7CKgAPuRfC1MTVpjCMkk9Do3Wx/m4vZg4KNQkUGiAIHFxb0fFO0gAwXSTT4irjSPZbhpgnNqzJUPG8zJ+lkEV8w== Received: from BO1IND01FT010.eop-IND01.prod.protection.outlook.com (10.152.202.57) by BO1IND01HT010.eop-IND01.prod.protection.outlook.com (10.152.202.80) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.567.7; Thu, 18 Aug 2016 13:42:20 +0000 Received: from MAXPR01MB0315.INDPRD01.PROD.OUTLOOK.COM (10.152.202.51) by BO1IND01FT010.mail.protection.outlook.com (10.152.202.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.567.7 via Frontend Transport; Thu, 18 Aug 2016 13:42:19 +0000 Received: from MAXPR01MB0315.INDPRD01.PROD.OUTLOOK.COM ([10.164.150.135]) by MAXPR01MB0315.INDPRD01.PROD.OUTLOOK.COM ([10.164.150.135]) with mapi id 15.01.0549.027; Thu, 18 Aug 2016 13:42:18 +0000 From: Sarthak Ray To: Stephen Hemminger CC: "users@dpdk.org" Thread-Topic: [dpdk-users] Mempool allocation fails on first boot; but succeeds after system reboot Thread-Index: AQHR+IgCb1ohkt73GEOBylDCKgMeMKBNShsAgAFwn2E= Date: Thu, 18 Aug 2016 13:42:18 +0000 Message-ID: References: , <20160817083948.5024edec@xeon-e3> In-Reply-To: <20160817083948.5024edec@xeon-e3> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=softfail (sender IP is 10.152.202.51) smtp.mailfrom=outlook.com; networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=fail action=none header.from=outlook.com; received-spf: SoftFail (protection.outlook.com: domain of transitioning outlook.com discourages use of 10.152.202.51 as permitted sender) x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [tDWPvolt6mpdUf3QPaiouxBy1mmT0o9h] x-eopattributedmessage: 0 x-forefront-antispam-report: CIP:10.152.202.51; IPV:NLI; CTRY:; EFV:NLI; SFV:NSPM; SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1; SRVR:BO1IND01HT010; H:MAXPR01MB0315.INDPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; x-microsoft-exchange-diagnostics: 1; BO1IND01HT010; 6:w2dVRNHAgYKvsExC6fp2w+WumKY9v2ZGYeC5BvC7ezYR8SGwtr+noCQ1+HWZeDjGF2dmnsphoav1SW/eDqOr0u55rkZxp72c/bS4UbsSP3e67HXqzVi4ytgYnQeOQFOmN/T6tl0KvpYWSnY30OfjrfNmBazX0yIrA735hTW8XFajf9qwevliVnUK2UG0ZzqMP9GjWcOs0b7lkpKLbneS45fqRuDB1nrbYx8w0HCeeg4Z5reAZzrbClBSzCUolBPKg3zgQcVmizcBGq1hdgXLq965V4HCBt6Ejg8vkIzuz68NCZmX5JOiLgx6J/3E2nH3; 5:LyYIgIeDVIZVzf+/AHO0gKyTjXjYcztPLBpm+hJ0Hmn3vYCH0ldd222FB1lqJ/71ZdzguoJKrKO9pFR3FbPX91oRAH1EhbjdFYUBoJhJrLEmGgFwvlcFtI5QrKN5yP/X1Srb50Ajmt89ZzBTD+Il+Q==; 24:2t7d6fvObMo/ryfJIGZj1GJjOrf3wbawY7BvQS5SYGKdtSyzZrwT+DW/BFYCBEnn5Xj0Jvxd6MH3ZVZEG7Dq2r1rm+PmDPqoVG/dKUZ3q68=; 7:76Tk6hJNMjGjOD+zrm9gpTIzw0tUV/bBgmnZdtnzEPqK5KjAe7qpPRSDFlv79N9NQOEVNkq5qY2gQaN6NTbQp8s60n/U3P29J3SBev1ouYwy2+ci4ILar3LaYXCAH0LGC+7voEjdVBtu9G/a4ZDbtG2gGpZzC+63YH36grdT3UXjN8lyjt41Q00TLSwn+iwHdTzQ/lC2vmiTlKeVR/jjZqPjQogkPdYgPT4ies4JOIWh9eWuzXYSWiGqOqFniQgu x-ms-office365-filtering-correlation-id: ab64ffd3-c75e-478e-72fe-08d3c76d78e5 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(1601124038)(1601125047); SRVR:BO1IND01HT010; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(82015046); SRVR:BO1IND01HT010; BCL:0; PCL:0; RULEID:; SRVR:BO1IND01HT010; x-forefront-prvs: 0038DE95A2 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Aug 2016 13:42:18.1596 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BO1IND01HT010 X-OriginalArrivalTime: 18 Aug 2016 13:42:23.0280 (UTC) FILETIME=[5965C300:01D1F956] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Mempool allocation fails on first boot; but succeeds after system reboot 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: Thu, 18 Aug 2016 13:42:24 -0000 Thanks Stephen for your quick response. My dpdk application uses 2MB hugepages; but I was reserving 1GB hugepages d= uring bootup. Corrected the same and now it is working fine. Thanks again, Sarthak ________________________________ From: Stephen Hemminger Sent: Wednesday, August 17, 2016 9:09:48 PM To: Sarthak Ray Cc: users@dpdk.org Subject: Re: [dpdk-users] Mempool allocation fails on first boot; but succe= eds after system reboot On Wed, 17 Aug 2016 13:10:35 +0000 Sarthak Ray wrote: > Hi, > > I am using dpdk-2.1.0 for a platform appliance, where I am facing issue w= ith mempool allocation. > > On the firstboot of the newly installed appliance, my dpdk application is= not coming up saying failure in mbuf allocation on socket 0. But once I re= boot the system, it comes up without any issues. How big is the huge page memory on the system? On initial boot, the free memory is usually contiguous after a lot of progr= ams run it gets fragmented. You can configure grub command line to reserve hug= e pages before userspace starts; see kernel documentation Documentation/vm/hugepage= s.txt