Re: [swsusp] not enough memory

From: Pavel Machek
Date: Sat Feb 18 2006 - 10:58:35 EST


On Sat 18-02-06 00:58:14, Richard Mittendorfer wrote:
> Hi *,
>
> On my 64MB notebook I get the following message, when going swsusp:
>
> ..
> swsusp: Need to copy 15526 pages
> swsusp: Not enough free memory
> Error -12 suspending
> ..
>
> # free
> total used free shared buffers cached
> Mem: 62760 59884 2876 0 3828 16052
> -/+ buffers/cache: 40004 22756
> Swap: 200804 30316 170488
>
> If I end all apps but the XServer it works. I've allready added some
> more swapspace, but that didn't help. So, how much memory will I need
> for a successful suspend or better (since i can't stuff any more into
> it) is there a way to minimize the amount needed?

128MB should be enough for you. Or try modifying try_to_free memory routine to
retry shrink_all_mem few more times, with schedule() in between...
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms

-
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/