Re: 2.2.xx __get_free_pages fails for GFP_KERNEL case

David S. Miller (davem@redhat.com)
Thu, 13 Apr 2000 15:53:09 -0700


From: prasanna@veritas.com (Prasanna Narayana)
Date: Thu, 13 Apr 2000 14:01:24 -0700 (PDT)

We are getting a failure from __get_free_pages even with GFP_KERNEL
flag. It turns out that there is enough memory but not in the
free_areas in the "order" (or more) that we are requesting.

That's right, and the kernel doesn't guarentee that order > 1 requests
will be reliably obtainable in any way.

If you need large contiguous memory, use vmalloc or something similar.

Later,
David S. Miller
davem@redhat.com

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