Re: swsusp: 8-order memory allocations problem (was: Re: Fix randomcrashes in x86-64 swsusp)

From: Andrew Morton
Date: Sun Oct 10 2004 - 13:32:12 EST


Pavel Machek <pavel@xxxxxxx> wrote:
>
> > It's sort of strange, because there were 250 meg of RAM available, out of 500,
> > at that time.
>
> Well, you have 250MB free, but apparently not enough contignuous free pages...
>
> You may try this one, it may reduce probability of this kind of
> failure...

The chances of successfully finding 256 physically contiguous free
pages are small. A shrink_all_memory() pass will help of course,
but the chances of failure are still quite high.

Dunno - maybe alloc_pagedir() should use vmalloc()? That's a non-atomic
allocation but alloc_pagedir() really shouldn't be using GFP_ATOMIC anyway.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/