lkml.org 
[lkml]   [2005]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [linux-pm] Re: swsusp: Not enough free pages
Date
Hi,

On Tuesday, 7 of June 2005 12:39, Rafael J. Wysocki wrote:
> On Monday, 6 of June 2005 23:58, Pavel Machek wrote:
> > Hi!
> >
> > > > No, I see it on i386, too. Try patch below; if it frees some after
> > > > first pass, you have that problem, too.
> > >
> > > I've run it once and the result is this:
> > >
> > > Freeing memory... done (75876 pages freed)
> > > Freeing memory... done (1536 pages freed)
> > > Freeing memory... done (0 pages freed)
> > > Freeing memory... done (1792 pages freed)
> > > Freeing memory... done (0 pages freed)
> > >
> > > It does free some pages after the first pass, but this is only a small fraction
> > > of all pages freed. I wouldn't call it a bad result ...
> >
> > Well, it still did not free all memory it should have freed, and you
> > were lucky.
>
> This is a reproducible behavior. Here goes the result for another suspend:
>
> Freeing memory... done (136611 pages freed)
> Freeing memory... done (200 pages freed)
> Freeing memory... done (128 pages freed)
> Freeing memory... done (0 pages freed)
> Freeing memory... done (2353 pages freed)
>
> and it is always like that. It usually frees more than 100000 pages
> in the first pass and about 5% more in the next passes together.
>
> > Apparently for some people it does not that well (and that
> > includes me, I see 0 in first pass quite often).
>
> On 2.6.12-rc3+ I have never seen 0 in the first pass. In fact, with X running
> I have never seen less than 60000. :-)
>
> Perhaps there's a bug that does not hit x86-64 for some reason. I'll try to
> run it on my second box later today and see what happens.

This is the worst result from the second box:

Freeing memory... done (54641 pages freed)
Freeing memory... done (0 pages freed)
Freeing memory... done (5120 pages freed)
Freeing memory... done (1952 pages freed)
Freeing memory... done (2304 pages freed)

Still, there are 5x more pages freed in the first pass (80% of RAM was
empty anyway before suspend), and usually it is 10-20x more or so.

AFAICT, on x86-64 shrink_all_memory(10000) is good enough.

Greets,
Rafael


--
- 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-08 17:07    [W:0.061 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site