Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751098AbZGAEG7 (ORCPT ); Wed, 1 Jul 2009 00:06:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750726AbZGAEGt (ORCPT ); Wed, 1 Jul 2009 00:06:49 -0400 Received: from rv-out-0506.google.com ([209.85.198.235]:64644 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750715AbZGAEGt (ORCPT ); Wed, 1 Jul 2009 00:06:49 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=tHzMxccuKxZ9HR1kF3nXTvAYYA7G2fKIHR0qFo8YfnkqWA5yviCdidhDUc4izVtd+k wVH4nAq0v5aznRRO0sS9TbgISLITXcoyUKBdDb3RPGZlgF2b3ahjz4AqSft9oq2FHbWY Jm6CrCzchxqi8g6i8xlmxLiIrNM4XnV5eboyc= Date: Wed, 1 Jul 2009 12:06:49 +0800 From: Wu Fengguang To: Rik van Riel Cc: KOSAKI Motohiro , David Woodhouse , David Howells , Minchan Kim , Mel Gorman , Johannes Weiner , Andrew Morton , LKML , Christoph Lameter , "peterz@infradead.org" , "tytso@mit.edu" , "linux-mm@kvack.org" , "elladan@eskimo.com" , "npiggin@suse.de" , "Barnes, Jesse" Subject: Re: Found the commit that causes the OOMs Message-ID: <20090701040649.GA12832@localhost> References: <20090701021645.GA6356@localhost> <20090701022644.GA7510@localhost> <20090701114959.85D3.A69D9226@jp.fujitsu.com> <4A4AD07E.2040508@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A4AD07E.2040508@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2742 Lines: 110 On Tue, Jun 30, 2009 at 10:57:02PM -0400, Rik van Riel wrote: > KOSAKI Motohiro wrote: > >>> [ 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. > > It is also useful for throttling page reclaim. > > If more than half of the inactive pages in a zone are > isolated, we are probably beyond the point where adding > additional reclaim processes will do more harm than good. There are probably more problems in this case. For example, followed is the vmstat after first (successful) run of msgctl11. The question is: Why kswapd reclaims are absent here? Thanks, Fengguang --- wfg@hp ~% /cc/ltp/ltp-full-20090531/testcases/kernel/syscalls/ipc/msgctl/msgctl11 msgctl11 0 INFO : Using upto 16298 pids msgctl11 1 PASS : msgctl11 ran successfully! wfg@hp ~% cat /proc/vmstat nr_free_pages 237277 nr_inactive_anon 696 nr_active_anon 152 nr_inactive_file 1378 nr_active_file 44 nr_unevictable 0 nr_mlock 0 nr_anon_pages 385 nr_mapped 362 nr_file_pages 2176 nr_dirty 0 nr_writeback 0 nr_slab_reclaimable 1319 nr_slab_unreclaimable 4457 nr_page_table_pages 334 nr_unstable 0 nr_bounce 0 nr_vmscan_write 42098 nr_writeback_temp 0 numa_hit 774529 numa_miss 0 numa_foreign 0 numa_interleave 3177 numa_local 774529 numa_other 0 pgpgin 0 pgpgout 104695 pswpin 119952 pswpout 24118 pgalloc_dma 29987 pgalloc_dma32 3061 pgalloc_normal 842682 pgalloc_movable 0 pgfree 0 pgactivate 1083151 pgdeactivate 11427 pgfault 96023 pgmajfault 1341351 pgrefill_dma 9092 pgrefill_dma32 894 pgrefill_normal 96974 pgrefill_movable 0 pgsteal_dma 0 pgsteal_dma32 104 pgsteal_normal 47883 pgsteal_movable 0 pgscan_kswapd_dma 0 pgscan_kswapd_dma32 0 pgscan_kswapd_normal 0 pgscan_kswapd_movable 0 pgscan_direct_dma 0 pgscan_direct_dma32 7295 pgscan_direct_normal 143810 pgscan_direct_movable 0 zone_reclaim_failed 0 pginodesteal 0 slabs_scanned 1501 kswapd_steal 9216 kswapd_inodesteal 0 pageoutrun 0 allocstall 1 pgrotated 1965 htlb_buddy_alloc_success 6666 htlb_buddy_alloc_fail 0 unevictable_pgs_culled 0 unevictable_pgs_scanned 0 unevictable_pgs_rescued 0 unevictable_pgs_mlocked 0 unevictable_pgs_munlocked 0 unevictable_pgs_cleared 0 unevictable_pgs_stranded 0 unevictable_pgs_mlockfreed 0 isolate_pages 0 -- 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/