Forum Discussion
Altera_Forum
Honored Contributor
20 years agomalloc size limit
Hi, on my board I've more than 8000 KB of free RAM. From my application I try to malloc a big buffer in RAM, ~5000KB, but I see that the malloc function don't give me this memory spac...
Altera_Forum
Honored Contributor
20 years agoThanks hippo,
I've tried to malloc in smaller blocks. It's work better, but I see that if the malloc failed, after some tries the kernel kill my application. How do I have to set the overcommit_memory and overcommit_ratio in /proc/sys/vm ? Which other kernel parameter have I to set, so that my system works properly, and to avoid that my applications are killed from the OOM_KILLER? Can somebody help me? thanks StePa