Sorry, you need to enable JavaScript to visit this website.

Resource temporarily unavailable (PetaLinux)

Unsolved
3 posts / 0 new
y_okada's picture
y_okada
Junior(0)
Resource temporarily unavailable (PetaLinux)

I am trying to run tcp server application program on MicroZed.
The OS is PetaLinux v2014.2.

When I try to run the application program, I get following error.

-----
# /bin/myapp
Default stack size 8388608[8M]; guard size 4096 minimum is 16384[16K]
set stack size is 1023410176 [976M] pthread_create error. [11][Resource temporarily unavailable]
memory allocate is 1023410176 [976M] malloc error. [12][Cannot allocate memory]
inner thread : [0xb6bfee54]
inner thread : [0xb63fde54]
-----

In this case, I have to set max_map_count, max memory, virtual memory etc, I think. But I do not know how to set these on PetaLinux.

Could you inform me on how to set these things?

y_okada's picture
y_okada
Junior(0)
solved

I found that I forgot to update "image.ub" file.

After I updated "image.ub" file made from petalinux-build, the problem was solved.

y_okada's picture
y_okada
Junior(0)
message from my application

Futher, I found that the above messages was output from my application.

Before I was trying to know the stack size. The application investigate the stack size trying to allocate 976MB for stack size resulting in the Resource temporarily unavailable.