Re: Ho ho ho - Linux v2.6.10

From: Rafael J. Wysocki
Date: Thu Dec 30 2004 - 05:00:37 EST


On Sunday, 26 of December 2004 20:39, Pavel Machek wrote:
> Hi!
>
> > > 2.6.10 broke resume for me: when I resume it immediately tries to
> > > suspend the machine again but gets stuck after suspending USB.
> >
> > Usually, it resumes sucessfully for me, but sometimes it fails, like this
(on
> > an AMD64):
> >
> > swsusp: Image: 43552 Pages
> > swsusp: Pagedir: 341 Pages
> > pmdisk: Reading pagedir (341 Pages)
> > Relocating
> >
pagedir ...........................................................................................................................0
> >
> > Call Trace:<ffffffff8016de7e>{__alloc_pages+766}
> > <ffffffff8016df21>{__get_free_pages+33}
> > <ffffffff8056191c>{swsusp_read+1020}
> > <ffffffff8015f711>{software_resume+33}
> > <ffffffff8010c142>{init+162} <ffffffff8010f57b>{child_rip+8}
> > <ffffffff8010c0a0>{init+0} <ffffffff8010f573>{child_rip+0}
> >
> > out of memory
>
> ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::g
> > PM: Resume from disk failed.
>
> Can you try this one? It would be nice to have reproducible way to
> trigger this before trying to fix it, through.

It looks like growing the inode and/or dentry cache before suspend does the
trick. It seems that updatedb (again) is quite good for this purpose but
it's not 100% "effective".

Greets,
RJW

--
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
-- Lewis Carroll "Alice's Adventures in Wonderland"
-
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/