From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0056.outbound.protection.outlook.com [104.47.32.56]) by dpdk.org (Postfix) with ESMTP id 72872567C for ; Thu, 25 Aug 2016 16:02:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anovadata.onmicrosoft.com; s=selector1-anovadata-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XC03a8kDQ+vU2xR1zdCQhZBh974Cp6rj2OVIu2R/IjY=; b=iD7raiPhnvU10kCyuMYkI89SUy+GllJ/c4xluaDHvKv1fghR0dfGkcQDgC0iaVdx3g1kNG0p+O7ICUGFgn0t9feDUzDSMG+Qi3V2exGm4gKK022xn/iFf1W+RMYqEf/CGvR/xpUJR//yu65xw0uD3t/BJwz15J/4HtboRuQlAJM= Received: from BN6PR11MB1809.namprd11.prod.outlook.com (10.175.99.137) by BN6PR11MB1812.namprd11.prod.outlook.com (10.175.99.140) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.587.13; Thu, 25 Aug 2016 14:02:57 +0000 Received: from BN6PR11MB1809.namprd11.prod.outlook.com ([10.175.99.137]) by BN6PR11MB1809.namprd11.prod.outlook.com ([10.175.99.137]) with mapi id 15.01.0587.013; Thu, 25 Aug 2016 14:02:56 +0000 From: Ajay Khambadkone To: "dev@dpdk.org" Thread-Topic: pthread_create fails with error code 11 (pthread_create: Cannot allocate memory) Thread-Index: AdH+S0NSqsfA3vMiRNSeb6ESLxkG1gAjfwdQ Date: Thu, 25 Aug 2016 14:02:56 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=ajayk@anovadata.com; x-originating-ip: [108.7.45.34] x-ms-office365-filtering-correlation-id: f9544c62-ca8a-4b7a-1053-08d3ccf083a4 x-microsoft-exchange-diagnostics: 1; BN6PR11MB1812; 6:ob0Zdg+KCS3IUum4GipiqSvehd09J8Ujw48+OKzCRyfGimFx99Tn91r52SSJ4/z2Hq4jYvOl1u+nNqdrkltmZ/4vhlYnQ0ZeEhhIGFXpYLu6LO1Xpi1Goe5yF4kirJr6B/vgAaTYiXN9iV/tFVD/sRsrqfvTQcT5umT//g1RjTLqRAVyu7v+QOBCmBJmrXari9bfAzVuI0k608UKQNyj1tP+hHjp1rla8VGjYJaKsA/Wjhz0YqRTqy1Sjjv76+YfZxekqrKpYDWkQqN0aLVyGDoS2CjgxsVqFUlt3cBJM/b0RAItfRjTm7x5IKZs2+Wo; 5:C3XVbdkPYTD4sCdXNpas5yTEuzTk8/PYzD9iV/pwJ2hvHWP8W1pQn32ah22uAto+hd+xopK+rmcNmLi+mgsM4jYjkospy+An+t1kGnyb/b0uQak8ZfIi+KXnynElIlHaETqAk4Cus6IWxJmi7IbJIw==; 24:RejB9Hw5EiFY7vKDojEFoxQQZhaCUYFrb9LmWeJ7Xc+SPAzWNie4CSBTapptr+xo5EKTodyQRnxshkP/9EGiWAVbTRcjDgEPGW94QNNPbh0=; 7:pJm7zIevgZzAt3YXQlNZ2VQipiNZteSDLPpOEUKHIwX58KamoX4r4i79FJSUKXuC9mU+IuJqGD9wi/KZTAy7qangd0fehBs+slc/e7uJkYR6nhmDiQaFz5jK4yz3pxDP9eYZ494t08QYb7/Rzm44/1PplZ6cG3H0kraH7FGdNLeAnVtPmItcpEI3JzaP6Fh7WXXrtMbcrMEvd9iA3ze5FrfAN+T0pcWTGc3DeABvms6Aw2Ip76/zZLxWymBskUMj x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN6PR11MB1812; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6043046)(6042046); SRVR:BN6PR11MB1812; BCL:0; PCL:0; RULEID:; SRVR:BN6PR11MB1812; x-forefront-prvs: 0045236D47 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(13464003)(377454003)(189002)(199003)(3660700001)(10400500002)(5660300001)(76176999)(54356999)(50986999)(101416001)(2900100001)(87936001)(2950100001)(77096005)(19580405001)(19580395003)(86362001)(68736007)(92566002)(99286002)(2501003)(450100001)(7736002)(586003)(97736004)(102836003)(6116002)(3846002)(66066001)(7696003)(7846002)(305945005)(74316002)(105586002)(122556002)(9686002)(2906002)(5002640100001)(76576001)(8936002)(110136002)(107886002)(81166006)(3280700002)(5640700001)(189998001)(81156014)(8676002)(1730700003)(106356001)(2351001)(33656002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR11MB1812; H:BN6PR11MB1809.namprd11.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: anovadata.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: anovadata.com X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Aug 2016 14:02:56.0675 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 38b999c7-7f6e-499b-93fe-7e9b38613635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1812 Subject: Re: [dpdk-dev] pthread_create fails with error code 11 (pthread_create: Cannot allocate memory) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2016 14:02:58 -0000 Let me rephrase the question.=20 I just started a skeleton app that uses dpdk, did the rte_eal_init. After that I did a pthread_create that failed, why does this happen?=20 How do I get around this? -Ajay -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ajay Khambadkone Sent: Wednesday, August 24, 2016 5:14 PM To: dev@dpdk.org Subject: [dpdk-dev] pthread_create fails with error code 11 (pthread_create= : Cannot allocate memory) I am running dpdk with my existing application and after rte_eal_init, othe= r inits and rte_eal_remote_launch, It end up going through my existing app = that starts some more threads. I do see all the rte_* ran successfully. But the pthread_create calls from = my existing app fails with the following logs, VMM rlimit set to 16000000000 pthread_create: Cannot allocate memory pthread_create: 11 movik_terminate called - program will exit I have hugetables set up. I tried reducing the stack using ulimit -s 1024 a= nd I still see the same issue. Any idea? -Ajay