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 7407C6B00C2 for ; Fri, 28 Aug 2009 09:49:58 -0400 (EDT) Received: by ywh42 with SMTP id 42so2539901ywh.30 for ; Fri, 28 Aug 2009 06:50:03 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1251449067-3109-3-git-send-email-mel@csn.ul.ie> References: <1251449067-3109-1-git-send-email-mel@csn.ul.ie> <1251449067-3109-3-git-send-email-mel@csn.ul.ie> Date: Fri, 28 Aug 2009 22:49:59 +0900 Message-ID: <28c262360908280649j2920445ekf5625eb0e86752a4@mail.gmail.com> Subject: Re: [PATCH 2/2] page-allocator: Maintain rolling count of pages to free from the PCP From: Minchan Kim Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org To: Mel Gorman Cc: Andrew Morton , Linux Memory Management List , Christoph Lameter , Nick Piggin , Linux Kernel Mailing List List-ID: On Fri, Aug 28, 2009 at 5:44 PM, Mel Gorman wrote: > When round-robin freeing pages from the PCP lists, empty lists may be > encountered. In the event one of the lists has more pages than another, > there may be numerous checks for list_empty() which is undesirable. This > patch maintains a count of pages to free which is incremented when empty > lists are encountered. The intention is that more pages will then be freed > from fuller lists than the empty ones reducing the number of empty list > checks in the free path. > > Signed-off-by: Mel Gorman Reviewed-by: Minchan Kim I like this idea. :) -- 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