From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992974AbXDTPDl (ORCPT ); Fri, 20 Apr 2007 11:03:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S2992923AbXDTPDl (ORCPT ); Fri, 20 Apr 2007 11:03:41 -0400 Received: from hellhawk.shadowen.org ([80.68.90.175]:4137 "EHLO hellhawk.shadowen.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2992974AbXDTPDk (ORCPT ); Fri, 20 Apr 2007 11:03:40 -0400 From: Andy Whitcroft To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andy Whitcroft , Mel Gorman Subject: [PATCH 1/3] kswapd: use reclaim order in background reclaim References: InReply-To: Message-ID: Date: Fri, 20 Apr 2007 16:03:34 +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org When an allocator has to dip below the low water mark for a zone, kswapd is awoken to start background reclaim. The highest order of these dipping allocations are accumulated on the zone. With this patch kswapd uses this hint to force reclaim at that order via balance_pgdat(). Signed-off-by: Andy Whitcroft Acked-by: Mel Gorman --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 428da1a..466435f 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1212,6 +1212,7 @@ static unsigned long balance_pgdat(pg_data_t *pgdat, int order) .may_swap = 1, .swap_cluster_max = SWAP_CLUSTER_MAX, .swappiness = vm_swappiness, + .order = order, }; /* * temp_priority is used to remember the scanning priority at which