Mel Gorman 3b1d92c565 Do not disable interrupts when reading min_free_kbytes
The sysctl handler for min_free_kbytes calls setup_per_zone_pages_min() on
read or write.  This function iterates through every zone and calls
spin_lock_irqsave() on the zone LRU lock.  When reading min_free_kbytes,
this is a total waste of time that disables interrupts on the local
processor.  It might even be noticable machines with large numbers of zones
if a process started constantly reading min_free_kbytes.

This patch only calls setup_per_zone_pages_min() only on write. Tested on
an x86 laptop and it did the right thing.

Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Acked-by: Christoph Lameter <clameter@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-07 12:12:53 -07:00
..
2007-03-27 08:52:47 +02:00
2007-05-07 12:12:52 -07:00
2006-12-22 08:55:49 -08:00
2006-09-26 08:48:44 -07:00
2007-01-11 18:18:20 -08:00
2007-02-15 09:57:03 -08:00
2006-12-07 08:39:22 -08:00
2006-09-26 08:48:45 -07:00
2007-05-07 12:12:51 -07:00
2005-04-16 15:20:36 -07:00
2007-05-07 12:12:52 -07:00
2007-04-27 16:01:46 +02:00
2007-05-07 12:12:53 -07:00
2007-05-07 12:12:50 -07:00