diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-09-01 08:27:34 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-01 22:39:08 +0400 |
commit | a302eb4e4602d6444ae75a0e516fb2f2c62d6642 (patch) | |
tree | 8f477d121e8bd31611b1ae3c3658f5c71684f788 /include | |
parent | b63fe1ba4409774738c971d4e6f0b12b54cc2c65 (diff) | |
download | linux-a302eb4e4602d6444ae75a0e516fb2f2c62d6642.tar.xz |
[PATCH] ZVC: Overstep counters
Increments and decrements are usually grouped rather than mixed. We can
optimize the inc and dec functions for that case.
Increment and decrement the counters by 50% more than the threshold in
those cases and set the differential accordingly. This decreases the need
to update the atomic counters.
The idea came originally from Andrew Morton. The overstepping alone was
sufficient to address the contention issue found when updating the global
and the per zone counters from 160 processors.
Also remove some code in dec_zone_page_state.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions