<span class="docPubcolor"><span class="docPubcolor"><span class="docMonofont">Hi,<br>use of <br>get_zeroed_page(unsigned int flags);</span></span></span> or <br><span class="docPubcolor"><span class="docPubcolor"><span class="docMonofont">get_free_page(unsigned int flags);</span></span></span><br>
might help you.<br><br><br>Thanks,<br>Pritam<br><br><div class="gmail_quote">On Thu, Dec 8, 2011 at 9:47 PM, Mulyadi Santosa <span dir="ltr"><<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi...<br>
<div class="im"><br>
On Thu, Dec 8, 2011 at 02:06, mindentropy <<a href="mailto:mindentropy@gmail.com">mindentropy@gmail.com</a>> wrote:<br>
>> mind to tell us, how do you allocate memory? kmalloc?<br>
> Via kmalloc.<br>
<br>
</div>As Greg said, you probably better use vmalloc for such allocation.<br>
Vmalloc can deal with non contigous physical pages...<br>
<div class="im"><br>
>><br>
>> furthermore, could you kindly paste the content of /proc/meminfo right<br>
>> before OOM kicks in?<br>
> Its kind of tough to do it as it happens so fast. I will try to write a script<br>
> which polls.<br>
<br>
</div>Alright, I just thought it will be better if we understand the overall<br>
virtual memory situation better.<br>
<div class="im HOEnZb"><br>
<br>
--<br>
regards,<br>
<br>
Mulyadi Santosa<br>
Freelance Linux trainer and consultant<br>
<br>
blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>
training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a><br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>Pritam Bankar<br>