Free Physical & kmalloc

Sriram Narasimhan (nsri@tataelxsi.co.in)
Sat, 12 Apr 2003 15:43:05 +0530


Hello,

I am trying to allocate memory from a driver using GFP_KERNEL.
The allocation fails if I try to allocate more than what is physically free.
What ever memory is free is available in the free buffers/cache.

Why is this happening ? How do I allocate more memory than what is
available in the 'free physical'.
Shouldn't kmalloc take care of flushing free buffers/cache to free
physical when there is a memory allocation requirement ?

I am running 2.4.7-10 RH7.2 on i386.

Any suggestions or pointers could be very helpful.

Thank you.
Regards,
Sriram

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/