mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] swap usage of high memory (fwd)
@ 2001-07-18 18:36 Rik van Riel
  2001-07-18 19:52 ` Marcelo Tosatti
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Rik van Riel @ 2001-07-18 18:36 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Alan Cox, Marcelo W. Tosatti, linux-kernel, Dave McCracken, Dirk Wetter

Hi Alan, Linus,

Dave found a stupid bug in the swapin code, leading to
bad balancing problems in the VM.

I suspect marcelo's zone VM hack could even go away
with this patch applied ;)

Rik
---------- Forwarded message ----------
Date: Wed, 18 Jul 2001 13:15:07 -0500
From: Dave McCracken <dmc@austin.ibm.com>
To: Rik van Riel <riel@conectiva.com.br>
Cc: linux-mm@kvack.org
Subject: Patch for swap usage of high memory


This patch fixes the problem where pages allocated for swap space reads
will not be allocated from high memory.

Rik, could you please forward this to the kernel mailing list?  I am
temporarily unable to reach it directly due to ECN problems.

Thanks,
Dave McCracken

--------

--- linux-2.4.6/mm/swap_state.c	Mon Jun 11 21:15:27 2001
+++ linux-2.4.6-mm/mm/swap_state.c	Wed Jul 18 12:56:01 2001
@@ -226,7 +226,7 @@
 	if (found_page)
 		goto out_free_swap;

-	new_page = alloc_page(GFP_USER);
+	new_page = alloc_page(GFP_HIGHUSER);
 	if (!new_page)
 		goto out_free_swap;	/* Out of memory */

--------

======================================================================
Dave McCracken          IBM Linux Base Kernel Team      1-512-838-3059
dmc@austin.ibm.com                                      T/L   678-3059



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

end of thread, other threads:[~2001-07-20 18:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-18 18:36 [PATCH] swap usage of high memory (fwd) Rik van Riel
2001-07-18 19:52 ` Marcelo Tosatti
2001-07-18 23:39 ` Marcelo Tosatti
2001-07-19 14:10   ` Rik van Riel
2001-07-19 16:46     ` Linus Torvalds
2001-07-19 17:24       ` Rik van Riel
2001-07-19 16:59     ` Richard Gooch
2001-07-19 17:23       ` Linus Torvalds
2001-07-19 17:40       ` Richard Gooch
2001-07-20 18:49   ` Dirk Wetter
2001-07-19 11:17 ` Matti Aarnio
2001-07-19 12:05   ` up kernel stable, but smp kernel randomly reboots - nfsroot - asus cur_dls Ryan Sweet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®