Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161310AbWASTL1 (ORCPT ); Thu, 19 Jan 2006 14:11:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161334AbWASTLS (ORCPT ); Thu, 19 Jan 2006 14:11:18 -0500 Received: from holly.csn.ul.ie ([136.201.105.4]:55228 "EHLO holly.csn.ul.ie") by vger.kernel.org with ESMTP id S1161310AbWASTLK (ORCPT ); Thu, 19 Jan 2006 14:11:10 -0500 From: Mel Gorman To: linux-mm@kvack.org Cc: Mel Gorman , linux-kernel@vger.kernel.org, lhms-devel@lists.sourceforge.net Message-Id: <20060119190911.16909.76842.sendpatchset@skynet.csn.ul.ie> In-Reply-To: <20060119190846.16909.14133.sendpatchset@skynet.csn.ul.ie> References: <20060119190846.16909.14133.sendpatchset@skynet.csn.ul.ie> Subject: [PATCH 5/5] ForTesting - Prevent OOM killer firing for high-order allocations Date: Thu, 19 Jan 2006 19:09:11 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1192 Lines: 31 Stop going OOM for high-order allocations. During testing of high order allocations, we do not want the OOM killing everything in sight. For comparison between kernels during the high order allocatioon stress test, this patch is applied to both the stock -mm kernel and the kernel using ZONE_EASYRCLM. Signed-off-by: Mel Gorman diff -rup -X /usr/src/patchset-0.5/bin//dontdiff linux-2.6.16-rc1-mm1-104_ppc64coremem/mm/page_alloc.c linux-2.6.16-rc1-mm1-902_highorderoom/mm/page_alloc.c --- linux-2.6.16-rc1-mm1-104_ppc64coremem/mm/page_alloc.c 2006-01-19 16:43:20.000000000 +0000 +++ linux-2.6.16-rc1-mm1-902_highorderoom/mm/page_alloc.c 2006-01-19 16:44:03.000000000 +0000 @@ -1080,8 +1080,11 @@ rebalance: if (page) goto got_pg; - out_of_memory(gfp_mask, order); - goto restart; + /* Only go OOM for low-order allocations */ + if (order <= 3) { + out_of_memory(gfp_mask, order); + goto restart; + } } /* - 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/