Messages in this thread Patch in this message | | | Date | Sun, 24 Oct 1999 16:03:33 +0200 (CEST) | From | Ingo Molnar <> | 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))
| |