__alloc_pages: 4-order allocation failed
Hi,
I got the error __alloc_pages: 4-order allocation failed in a module that uses and frees a lot of pages.
Basically, I am trying implement a page cache for the module. First, I keep allocating pages using page_cache_alloc() until it fails, then I free a whole bunch of pages using freepages((unsigned long)page_address(page))
Would anyone please give me some advice about how to solve this problem? Thanks a lot.
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Ho" == Ho Chak Hung <[email protected]> writes:
Ho> Hi, I got the error __alloc_pages: 4-order allocation failed in a Ho> module that uses and frees a lot of pages. Basically, I am trying Ho> implement a page cache for the module. First, I keep allocating Ho> pages using page_cache_alloc() until it fails, then I free a whole Ho> bunch of pages using freepages((unsigned long)page_address(page))
Ho> Would anyone please give me some advice about how to solve this Ho> problem? Thanks a lot.
You ran out of memory, ie. there were no more free blocks of 16 consecutive pages available in the system. This is what happens on a system with little memory or which is loaded with memory intensive applications.
Jes