From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Pavel Machek <pavel@ucw.cz>
Cc: ACPI devel <acpi-devel@lists.sourceforge.net>,
linux-pm@lists.osdl.org,
Linux Kernel List <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@zip.com.au>
Subject: Re: Re: swsusp: Not enough free pages
Date: Mon, 6 Jun 2005 23:46:08 +0200 [thread overview]
Message-ID: <200506062346.09503.rjw@sisk.pl> (raw)
In-Reply-To: <20050606171417.GB2230@elf.ucw.cz>
Hi,
On Monday, 6 of June 2005 19:14, Pavel Machek wrote:
> Hi!
>
> > > > > > > So far, yes. I just tried 2 times.
> > > > > >
> > > > > > always. (I check that swap dev is on)
> > > > > >
> > > > > > Sometimes, my ia32 laptop free 0 pages too.
> > > > > > I think we should always free some pages
> > > > > > from various caches.
> > > > >
> > > > > Try this hack... it is basically mm problem I don't know how to fix,
> > > > > but this seems to help.
> > > > > Pavel
> > > >
> > > > Thanks Pavel, this hack works.
> > > > ..
> > > > Freeing memory... ^Hdone (0 pages freed)
> > > > Freeing memory... ^H-^Hdone (4636 pages freed)
> > > > Freeing memory... ^Hdone (0 pages freed)
> > > > Freeing memory... ^H-^Hdone (914 pages freed)
> > > > Freeing memory... ^Hdone (0 pages freed)
> > > > Freezing CPUs (at 0)...ok
> > > >
> > > > Any mm guru know how to fix this?
> > >
> > > Andrew, can you help? It seems free_some_memory does not really free
> > > all reclaimable memory in recent kernels. In fact, it likes to free
> > > nothing on first invocations....
> >
> > Actually, on (my) x86-64 it seems to work. It frees even more memory than
> > I'd like it to (there's 80-90% of RAM free after it's finished). ;-)
> >
> > If I had to guess, I'd say the problem is related to PAGE_SIZE !=
> >4096.
>
> 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 ...
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"
next prev parent reply other threads:[~2005-06-06 21:46 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-24 16:05 swsusp: Not enough free pages Yu, Luming
2005-05-24 16:55 ` Stefan Seyfried
[not found] ` <20050525012040.GA6145@linux.sh.intel.com>
2005-05-30 9:14 ` Yu, Luming
2005-05-30 15:01 ` Pavel Machek
[not found] ` <20050530150157.GC2207-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-05-30 17:01 ` James Sparenberg
2005-06-06 6:39 ` Yu, Luming
2005-06-06 10:39 ` [linux-pm] " Pavel Machek
[not found] ` <20050606103936.GA2520-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-06-06 17:02 ` Rafael J. Wysocki
2005-06-06 17:14 ` Pavel Machek
2005-06-06 21:46 ` Rafael J. Wysocki [this message]
2005-06-06 21:58 ` Pavel Machek
[not found] ` <20050606215815.GO2230-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-06-07 10:39 ` [linux-pm] " Rafael J. Wysocki
[not found] ` <200506071239.10125.rjw-KKrjLPT3xs0@public.gmane.org>
2005-06-08 15:02 ` Rafael J. Wysocki
2005-06-08 16:27 ` Pavel Machek
2005-06-08 21:42 ` [linux-pm] " Rafael J. Wysocki
2005-06-08 22:03 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200506062346.09503.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=acpi-devel@lists.sourceforge.net \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.osdl.org \
--cc=pavel@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox