Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Just 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().

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...