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 ago --- Quote Start --- originally posted by stepa@Dec 6 2005, 02:31 AM thanks 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
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=11342)
--- quote end ---
--- Quote End --- not sure if this is related, but there is a parameter in the kernel configure menu that allows the allocation of 'large' blocks of memory - make sure that is on.