All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Christoph Lameter <clameter@sgi.com>
Cc: Dhaval Giani <dhaval@linux.vnet.ibm.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	htejun@gmail.com, gregkh@suse.de,
	Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>,
	Balbir Singh <balbir@in.ibm.com>,
	maneesh@linux.vnet.ibm.com, lkml <linux-kernel@vger.kernel.org>,
	stable@kernel.org, linux-mm@kvack.org
Subject: Re: 2.6.22-stable causes oomkiller to be invoked
Date: Sun, 30 Dec 2007 15:01:16 +0100	[thread overview]
Message-ID: <20071230140116.GC21106@elte.hu> (raw)
In-Reply-To: <Pine.LNX.4.64.0712261258050.16862@schroedinger.engr.sgi.com>


* Christoph Lameter <clameter@sgi.com> wrote:

> Index: linux-2.6/arch/x86/mm/pgtable_32.c
> ===================================================================
> --- linux-2.6.orig/arch/x86/mm/pgtable_32.c	2007-12-26 12:55:10.000000000 -0800
> +++ linux-2.6/arch/x86/mm/pgtable_32.c	2007-12-26 12:55:54.000000000 -0800
> @@ -366,6 +366,15 @@ void pgd_free(pgd_t *pgd)
>  		}
>  	/* in the non-PAE case, free_pgtables() clears user pgd entries */
>  	quicklist_free(0, pgd_dtor, pgd);
> +
> +	/*
> +	 * We must call check_pgd_cache() here because the pgd is freed after
> +	 * tlb flushing and the call to check_pgd_cache. In some cases the VM
> +	 * may not call tlb_flush_mmu during process termination (??).

that's incorrect i think: during process termination exit_mmap() calls 
tlb_finish_mmu() unconditionally which calls tlb_flush_mmu().

> +	 * If this is repeated then we may never call check_pgd_cache.
> +	 * The quicklist will grow and grow. So call check_pgd_cache here.
> +	 */
> +	check_pgt_cache();
>  }

so we still dont seem to understand the failure mode well enough. This 
also looks like a quite dangerous change so late in the v2.6.24 cycle. 
Does it really fix the OOM? If yes, why exactly?

	Ingo

WARNING: multiple messages have this Message-ID (diff)
From: Ingo Molnar <mingo@elte.hu>
To: Christoph Lameter <clameter@sgi.com>
Cc: Dhaval Giani <dhaval@linux.vnet.ibm.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	htejun@gmail.com, gregkh@suse.de,
	Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>,
	Balbir Singh <balbir@in.ibm.com>,
	maneesh@linux.vnet.ibm.com, lkml <linux-kernel@vger.kernel.org>,
	stable@kernel.org, linux-mm@kvack.org
Subject: Re: 2.6.22-stable causes oomkiller to be invoked
Date: Sun, 30 Dec 2007 15:01:16 +0100	[thread overview]
Message-ID: <20071230140116.GC21106@elte.hu> (raw)
In-Reply-To: <Pine.LNX.4.64.0712261258050.16862@schroedinger.engr.sgi.com>

* Christoph Lameter <clameter@sgi.com> wrote:

> Index: linux-2.6/arch/x86/mm/pgtable_32.c
> ===================================================================
> --- linux-2.6.orig/arch/x86/mm/pgtable_32.c	2007-12-26 12:55:10.000000000 -0800
> +++ linux-2.6/arch/x86/mm/pgtable_32.c	2007-12-26 12:55:54.000000000 -0800
> @@ -366,6 +366,15 @@ void pgd_free(pgd_t *pgd)
>  		}
>  	/* in the non-PAE case, free_pgtables() clears user pgd entries */
>  	quicklist_free(0, pgd_dtor, pgd);
> +
> +	/*
> +	 * We must call check_pgd_cache() here because the pgd is freed after
> +	 * tlb flushing and the call to check_pgd_cache. In some cases the VM
> +	 * may not call tlb_flush_mmu during process termination (??).

that's incorrect i think: during process termination exit_mmap() calls 
tlb_finish_mmu() unconditionally which calls tlb_flush_mmu().

> +	 * If this is repeated then we may never call check_pgd_cache.
> +	 * The quicklist will grow and grow. So call check_pgd_cache here.
> +	 */
> +	check_pgt_cache();
>  }

so we still dont seem to understand the failure mode well enough. This 
also looks like a quite dangerous change so late in the v2.6.24 cycle. 
Does it really fix the OOM? If yes, why exactly?

	Ingo

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2007-12-30 14:02 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-13 12:33 2.6.22-stable causes oomkiller to be invoked Dhaval Giani
2007-12-13 13:23 ` Dhaval Giani
2007-12-13 15:18   ` Dhaval Giani
2007-12-13 16:29     ` Greg KH
2007-12-13 16:46       ` Dhaval Giani
2007-12-13 17:54         ` Dhaval Giani
2007-12-14 14:41           ` Tejun Heo
2007-12-14 15:47             ` Dhaval Giani
2007-12-14 15:54               ` Tejun Heo
2007-12-14 16:16                 ` Dhaval Giani
2007-12-14 17:50                   ` Andrew Morton
2007-12-14 18:28                     ` Dhaval Giani
2007-12-14 23:05                       ` Andrew Morton
2007-12-14 23:05                         ` Andrew Morton
2007-12-15  3:52                         ` Dhaval Giani
2007-12-15  3:52                           ` Dhaval Giani
2007-12-15  6:00                           ` Andrew Morton
2007-12-15  6:00                             ` Andrew Morton
2007-12-15 10:44                             ` Dhaval Giani
2007-12-15 10:44                               ` Dhaval Giani
     [not found]                               ` <20071217045904.GB31386@linux.vnet.ibm.com>
     [not found]                                 ` <Pine.LNX.4.64.0712171143280.12871@schroedinger.engr.sgi.com>
     [not found]                                   ` <20071217120720.e078194b.akpm@linux-foundation.org>
     [not found]                                     ` <Pine.LNX.4.64.0712171222470.29500@schroedinger.engr.sgi.com>
2007-12-21  4:45                                       ` Dhaval Giani
2007-12-21  4:45                                         ` Dhaval Giani
2007-12-26 21:01                                         ` Christoph Lameter
2007-12-26 21:01                                           ` Christoph Lameter
2007-12-28 10:11                                           ` Dhaval Giani
2008-01-02 20:45                                             ` Christoph Lameter
2008-01-02 20:45                                               ` Christoph Lameter
2008-01-02 21:54                                               ` Christoph Lameter
2008-01-02 21:54                                                 ` Christoph Lameter
2008-01-03  3:59                                                 ` Dhaval Giani
2008-01-03  3:59                                                   ` Dhaval Giani
2008-01-03  4:16                                                   ` Dhaval Giani
2008-01-03  4:16                                                     ` Dhaval Giani
2008-01-03 21:04                                                     ` Christoph Lameter
2008-01-03 21:04                                                       ` Christoph Lameter
2008-01-07 20:04                                                       ` Christoph Lameter
2008-01-07 20:04                                                         ` Christoph Lameter
2008-01-08  4:33                                                         ` Dhaval Giani
2008-01-08  4:33                                                           ` Dhaval Giani
2007-12-30 14:01                                           ` Ingo Molnar [this message]
2007-12-30 14:01                                             ` Ingo Molnar
2007-12-30 19:24                                             ` Dhaval Giani
2007-12-30 19:24                                               ` Dhaval Giani
2008-01-02 20:48                                             ` Christoph Lameter
2008-01-02 20:48                                               ` Christoph Lameter

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=20071230140116.GC21106@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@linux-foundation.org \
    --cc=balbir@in.ibm.com \
    --cc=clameter@sgi.com \
    --cc=dhaval@linux.vnet.ibm.com \
    --cc=gregkh@suse.de \
    --cc=htejun@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=maneesh@linux.vnet.ibm.com \
    --cc=stable@kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=vatsa@linux.vnet.ibm.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.