From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758234Ab0J0Ire (ORCPT ); Wed, 27 Oct 2010 04:47:34 -0400 Received: from gir.skynet.ie ([193.1.99.77]:55808 "EHLO gir.skynet.ie" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754699Ab0J0Irb (ORCPT ); Wed, 27 Oct 2010 04:47:31 -0400 From: Mel Gorman To: Andrew Morton Cc: Shaohua Li , KOSAKI Motohiro , Christoph Lameter , David Rientjes , KAMEZAWA Hiroyuki , LKML , Linux-MM , Mel Gorman Subject: [PATCH 0/2] Reduce the amount of time spent in watermark-related functions Date: Wed, 27 Oct 2010 09:47:34 +0100 Message-Id: <1288169256-7174-1-git-send-email-mel@csn.ul.ie> X-Mailer: git-send-email 1.7.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following two patches are in response to a bug report by Shaohua Li where the amount of time spent in zone_nr_free_pages() is unacceptable for large machines. All the background is in the first patches leader. The second patch replaces two setter functions with one function that takes a callback function as a parameter. Mel Gorman (2): mm: page allocator: Adjust the per-cpu counter threshold when memory is low mm: vmstat: Use a single setter function and callback for adjusting percpu thresholds include/linux/mmzone.h | 10 +++------- include/linux/vmstat.h | 7 +++++++ mm/mmzone.c | 21 --------------------- mm/page_alloc.c | 35 +++++++++++++++++++++++++++-------- mm/vmscan.c | 25 +++++++++++++++---------- mm/vmstat.c | 32 +++++++++++++++++++++++++++++--- 6 files changed, 81 insertions(+), 49 deletions(-)