Re: swsusp intermittent failures in 2.6.15-rc3-mm1

From: Rafael J. Wysocki
Date: Fri Dec 02 2005 - 17:01:19 EST


On Friday, 2 of December 2005 19:37, Andy Isaacson wrote:
> On Thu, Dec 01, 2005 at 10:42:44PM +0100, Rafael J. Wysocki wrote:
> > On Thursday, 1 of December 2005 18:36, Andy Isaacson wrote:
> > > My Thinkpad X40 (1.25 GB, ipw2200) has had fairly reliable swsusp since
> > > 2.6.13 or thereabouts, and as recently as 2.6.15-rc1-mm1 I had about 20
> > > successful suspend/resume cycles. But now that I'm running
> > > 2.6.15-rc3-mm1 I'm seeing intermittent failures like this:
> >
> > Thanks a lot for the report.
> >
> > The problem is apparently caused by my recent patch intended to speed up
> > suspend. Could you please apply the appended debug patch, try to reproduce
> > the problem and send full dmesg output back to me?
>
> Here you go. This is two suspends; the first one completed
> successfully, then I triggered a failure by starting a bunch of
> processes until highmem looked full. (Just firefox wasn't enough, so I
> started a bunch of vim -R sessions on a 50MB file until HighFree went
> under 1MB.)

Thanks a lot.

}-- snip --{
> [17179971.660000] Stopping tasks: ============================================================|
> [17179972.060000] Shrinking memory... Data pages: 65794
> [17179972.092000] Data and highmem pages: 161459
> [17179972.092000] Total pages: 162957
> [17179972.092000] Pages to free: 159697
> [17179972.092000] Pages to free: 159697
> [17179972.092000] Pages to free: -623
> [17179972.092000] -done (0 pages freed)
}-- snip --{
> [17179972.224000] ................................................................................................swsusp: Need to copy 162186 pages
> [17179972.224000] swsusp: available memory: 67188 pages
> [17179972.224000] swsusp: Not enough free memory
> [17179972.224000] Error -12 suspending
}-- snip --{

Well, now that's crystal clear.

I'm working on a patch.

Greetings,
Rafael


--
Beer is proof that God loves us and wants us to be happy - Benjamin Franklin
-
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/