[dpdk-dev] pthread_create fails with error code 11 (pthread_create: Cannot allocate memory)

Ajay Khambadkone ajayk at anovadata.com
Thu Aug 25 16:02:56 CEST 2016


Let me rephrase the question. 

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? 

How do I get around this?

-Ajay

-----Original Message-----
From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ajay Khambadkone
Sent: Wednesday, August 24, 2016 5:14 PM
To: dev at 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, other 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 and I still see the same issue.

Any idea?

-Ajay




More information about the dev mailing list