Thread (11 messages) 11 messages, 5 authors, 2011-12-09

Problem with OOM killer killing process even when there is plenty of RAM.

From: Greg KH <hidden>
Date: 2011-12-07 19:35:36

On Thu, Dec 08, 2011 at 12:36:43AM +0530, mindentropy wrote:
On Thursday 08 Dec 2011 1:38:19 AM Mulyadi Santosa wrote:
quoted
On Wed, Dec 7, 2011 at 01:47, mindentropy [off-list ref] wrote:
quoted
Hi,

 I am trying to allocate 512MB of RAM in my driver loaded as a module,
but the OOM killer starts killing all my processes. This machine has
around 24GB RAM and is a 8 core Xeon. The RAM is allocated in page size
chunks (i.e. 131072 chunks each of size PAGE_SIZE).
mind to tell us, how do you allocate memory? kmalloc?
Via kmalloc. 
Please use the functions written to give you large memory chunks.  As
you are using a video-for-linux device, why not use the apis that this
framework provides you for this type of thing?

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help