linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Good way to free as much memory as possible under 2.5.34?
@ 2002-09-13 21:00 Pavel Machek
  2002-09-13 21:09 ` Rik van Riel
  0 siblings, 1 reply; 15+ messages in thread
From: Pavel Machek @ 2002-09-13 21:00 UTC (permalink / raw)
  To: Rik van Riel, kernel list

Hi!

/*
 * Try to free as much memory as possible, but do not OOM-kill anyone
 *
 * Notice: all userland should be stopped at this point, or livelock
is possible.
 */

This worked before -rmap came in, but it does not free anything
now. What needs to be done to fix it?

								Pavel 

static void free_some_memory(void)
{
        printk("Freeing memory: ");
        while
(try_to_free_pages(&contig_page_data.node_zones[ZONE_HIGHMEM], GFP_KSWAPD, 0))
                printk(".");
        printk("|\n");
}

-- 
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2002-09-14 15:06 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-13 21:00 Good way to free as much memory as possible under 2.5.34? Pavel Machek
2002-09-13 21:09 ` Rik van Riel
2002-09-13 21:29   ` Pavel Machek
2002-09-13 21:33     ` Rik van Riel
2002-09-13 21:48       ` Xavier Bestel
2002-09-13 22:42         ` Rik van Riel
2002-09-13 23:26           ` Xavier Bestel
2002-09-13 21:53       ` Andrew Morton
2002-09-13 22:10         ` William Lee Irwin III
2002-09-14 10:05         ` Pavel Machek
2002-09-14 13:57           ` Andrew Morton
2002-09-14 14:51       ` Hans-Peter Jansen
2002-09-14 15:07         ` Rik van Riel
2002-09-14 15:11           ` Pavel Machek
2002-09-13 21:30   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).