From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with SMTP id AA1476B003D for ; Fri, 20 Mar 2009 11:07:15 -0400 (EDT) Received: from localhost (smtp.ultrahosting.com [127.0.0.1]) by smtp.ultrahosting.com (Postfix) with ESMTP id 28D9282C9E0 for ; Fri, 20 Mar 2009 11:16:32 -0400 (EDT) Received: from smtp.ultrahosting.com ([74.213.174.254]) by localhost (smtp.ultrahosting.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8g0Eq4NIGG+A for ; Fri, 20 Mar 2009 11:16:27 -0400 (EDT) Received: from qirst.com (unknown [74.213.171.31]) by smtp.ultrahosting.com (Postfix) with ESMTP id 80BF582C9D4 for ; Fri, 20 Mar 2009 11:16:27 -0400 (EDT) Date: Fri, 20 Mar 2009 11:06:46 -0400 (EDT) From: Christoph Lameter Subject: Re: [PATCH 08/25] Calculate the preferred zone for allocation only once In-Reply-To: <1237543392-11797-9-git-send-email-mel@csn.ul.ie> Message-ID: References: <1237543392-11797-1-git-send-email-mel@csn.ul.ie> <1237543392-11797-9-git-send-email-mel@csn.ul.ie> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Mel Gorman Cc: Linux Memory Management List , KOSAKI Motohiro , Nick Piggin , Linux Kernel Mailing List , Lin Ming , Zhang Yanmin , Peter Zijlstra , Andrew Morton List-ID: On Fri, 20 Mar 2009, Mel Gorman wrote: > get_page_from_freelist() can be called multiple times for an allocation. > Part of this calculates the preferred_zone which is the first usable > zone in the zonelist. This patch calculates preferred_zone once. Isnt this adding an additional pass over the zonelist? Maybe mitigaged by the first zone usually being the preferred zone. -- 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: email@kvack.org