Results 11 to 11 of 11
Originally Posted by vidya
I need to allocate memory for my buffer.I gone through the "Linux IA64 Archives: Re: __you_cannot_kmalloc_that_much " ,
but could not get a clear idea.
That ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-12-2010 #11
That post says that, usually, if you get a __you_cannot_kmalloc_that_much, the problem is in you trying to allocate too much memory rather than in the kernel refusing to do so.
The memory management policy is the way how you allocate and deallocate memory. Instead of immediately allocating a large chunk of memory for the whole life time of your module, you could allocate memory only when you need it and as much as you need. Also, free your memory once you don't need it.
Please note, that since I don't know what you are trying to achieve, I am not able to give you but very general advice.



Reply With Quote
