Re: 2.6.9-rc2-mm1 swsusp bug report.

From: Pavel Machek
Date: Sat Sep 25 2004 - 05:17:13 EST


Hi!

> >> Was trying to swsusp my 2.6.9-rc2-mm1 laptop tonight. It churned
> >> for a while, but didn't hibernate. Here are the messages.
> >>
> >> ....................................................................................................
> >> .........................swsusp: Need to copy 34850 pages Sep 23
> >> 16:53:37 voldemort kernel: hibernate: page allocation
> >> failure. order:8, mode:0x120 Sep 23 16:53:37 voldemort kernel:
> Pavel> Out of memory... Try again with less loaded system.
>
> The system was no more loaded than usual. I have 1GB memory and 4GB of
> swap defined. I almost never touch swap. It might have been 100mb into
> the 4Gb of swap when this happened.
>
> What would cause it to be out of memory?
> swsup needs to be reliable... rebooting when you are using your memory
> kinda defeats the purpose of swsusp.

Read FAQ.

> Felipe W Damasio <felipewd@xxxxxxxxxxxx> sent me a patch, but I
> haven't had a chance to try it yet:
>
> - --- linux-2.6.9-rc2-mm2/kernel/power/swsusp.c.orig 2004-09-23 23:46:49.292975768 -0300
> +++ linux-2.6.9-rc2-mm2/kernel/power/swsusp.c 2004-09-24 00:07:01.933626368 -0300
> @@ -657,6 +657,9 @@
> int diff = 0;
> int order = 0;
>
> + order = get_bitmask_order(SUSPEND_PD_PAGES(nr_copy_pages));
> + nr_copy_pages += 1 << order;
> +
> do {
> diff = get_bitmask_order(SUSPEND_PD_PAGES(nr_copy_pages)) - order;
> if (diff) {
>
>

That does not look like it could help. I do not see why this patch
should be good thing.
Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-
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/