Results 1 to 2 of 2
I'm facing problem in kernel memory allocation, that is when i'm trying to allocate 64MB contiguous memory in kernel using get_free_pages. The kernel fails to allocate the memory and kernel ...
- 12-01-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 6
Support for Kenel memory allocation
I'm facing problem in kernel memory allocation, that is when i'm trying to allocate 64MB contiguous memory in kernel using get_free_pages. The kernel fails to allocate the memory and kernel crash is happening. can anyone suggest me to rid of this problem ASAP.
- 12-01-2011 #2Just Joined!
- Join Date
- Apr 2005
- Location
- Romania
- Posts
- 42
Hi athiraj,
With get_free_pages You have a power of two multiple of PAGE_SIZE contiguous physical (consecutive) pages. It's possible to have some problems to allocate memory particularly when GFP_ATOMIC flag is used. And before the allocation, try to free pages with free_pages().


Reply With Quote