From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with ESMTP id CBD356B00C3 for ; Thu, 28 Oct 2010 11:13:31 -0400 (EDT) From: Mel Gorman Subject: [PATCH 0/2] Reduce the amount of time spent in watermark-related functions V4 Date: Thu, 28 Oct 2010 16:13:34 +0100 Message-Id: <1288278816-32667-1-git-send-email-mel@csn.ul.ie> Sender: owner-linux-mm@kvack.org To: Andrew Morton Cc: Shaohua Li , KOSAKI Motohiro , Christoph Lameter , David Rientjes , KAMEZAWA Hiroyuki , LKML , Linux-MM , Mel Gorman List-ID: Changelog since V3 o Added Reviewed-bys o Added comment on why pressure_threshold is what it is o Make sure pressure threshold does not get over 125 o Call get_online_cpus and put_online_cpus as appropriate 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. 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 | 54 +++++++++++++++++++++++++++++++++++++++++++++-- 6 files changed, 103 insertions(+), 49 deletions(-) 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 | 52 +++++++++++++++++++++++++++++++++++++++++++++-- 6 files changed, 101 insertions(+), 49 deletions(-) -- 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