diff options
| author | Mel Gorman <[email protected]> | 2007-05-06 14:49:30 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-05-07 12:12:53 -0700 |
| commit | 3b1d92c56514987010bb0201b5c71aeb633fc4f8 (patch) | |
| tree | f31a72692c35eb27fc94590964ba389776c0439f /include/linux/timerqueue.h | |
| parent | 8da3430d8a7f885c2bf65121181d76c9d290a86e (diff) | |
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 <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions