lkml.org 
[lkml]   [1999]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] Re: massive memory leak in 2.3.23?

On Sun, 24 Oct 1999, Mike Galbraith wrote:

> Is anyone else seeing a rather serious leak in 2.3.23? I just got
> IKD running and was doing some testing when suddenly the box went
> terminal OOM. Memleak says it's pte_alloc()'ed memory being leaked.

thanks for the info, does the attached patch fix the leak?

-- mingo
--- linux/include/asm-i386/pgtable-2level.h.orig Sun Oct 24 06:38:24 1999
+++ linux/include/asm-i386/pgtable-2level.h Sun Oct 24 06:44:11 1999
@@ -32,7 +32,7 @@
extern inline int pgd_none(pgd_t pgd) { return 0; }
extern inline int pgd_bad(pgd_t pgd) { return 0; }
extern inline int pgd_present(pgd_t pgd) { return 1; }
-#define pgd_clear(xp) do { pgd_val(*(xp)) = 0; } while (0)
+#define pgd_clear(xp) do { } while (0)

#define pgd_page(pgd) \
((unsigned long) __va(pgd_val(pgd) & PAGE_MASK))
\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.055 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site