Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758076AbZGACwF (ORCPT ); Tue, 30 Jun 2009 22:52:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754371AbZGACvz (ORCPT ); Tue, 30 Jun 2009 22:51:55 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:33455 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753027AbZGACvy (ORCPT ); Tue, 30 Jun 2009 22:51:54 -0400 From: KOSAKI Motohiro To: Wu Fengguang Subject: Re: Found the commit that causes the OOMs Cc: kosaki.motohiro@jp.fujitsu.com, David Woodhouse , David Howells , Minchan Kim , Mel Gorman , Johannes Weiner , "riel@redhat.com" , Andrew Morton , LKML , Christoph Lameter , "peterz@infradead.org" , "tytso@mit.edu" , "linux-mm@kvack.org" , "elladan@eskimo.com" , "npiggin@suse.de" , "Barnes, Jesse" In-Reply-To: <20090701022644.GA7510@localhost> References: <20090701021645.GA6356@localhost> <20090701022644.GA7510@localhost> Message-Id: <20090701114959.85D3.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.50.07 [ja] Date: Wed, 1 Jul 2009 11:51:54 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1374 Lines: 41 > > > What is "hidden" anon pages? > > > each shrink_{in}active_list isolate 32 pages from lru. it mean anon or file lru > > > accounting decrease temporary. > > > > > > if system have plenty thread or process, heavy memory pressure makes > > > #-of-thread x 32pages isolation. > > > > > > msgctl11 makes >10K processes. > > > > More exactly, ~16K processes: > > > > msgctl11 0 INFO : Using upto 16298 pids > > > > So the maximum number of isolated pages is 16K * 32 = 512K, or 2GiB. > > > > > I have debugging patch for this case. > > > Wu, Can you please try this patch? > > > > OK. But the OOM is not quite reproducible. Sometimes it produces these > > messages: > > This time I got the OOM: there are 69817 isolated pages (just as expected)! > (snip) > [ 1522.019259] Active_anon:11 active_file:6 inactive_anon:0 > [ 1522.019260] inactive_file:0 unevictable:0 dirty:0 writeback:0 unstable:0 > [ 1522.019261] free:1985 slab:44399 mapped:132 pagetables:61830 bounce:0 > [ 1522.019262] isolate:69817 OK. thanks. I plan to submit this patch after small more tests. it is useful for OOM analysis. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/