Hi,
This is a very basic question. I wrote a basic C program that malloc()s an array and accesses elements from it. And then free()s all the elements.
However, malloc() call fails if the allocation request is over 125MB.
I have set "unlimited" to all the parameters related to memory allocation (e.g., stack size, heap size) under the "ulimit" command. But it does not solve the problem.
I'm running the C program on a Power9 VM. The same program runs absolutely fine on a Linux-based system.
If somebody could help me with this, that'll be great. Thanks.
------------------------------
Muhammad Laghari
------------------------------