Staging
v0.8.1
https://github.com/torvalds/linux
Revision a302eb4e4602d6444ae75a0e516fb2f2c62d6642 authored by Christoph Lameter on 01 September 2006, 04:27:34 UTC, committed by Linus Torvalds on 01 September 2006, 18:39:08 UTC
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>
1 parent b63fe1b
History
Tip revision: a302eb4e4602d6444ae75a0e516fb2f2c62d6642 authored by Christoph Lameter on 01 September 2006, 04:27:34 UTC
[PATCH] ZVC: Overstep counters
Tip revision: a302eb4
File Mode Size
Makefile -rw-r--r-- 237 bytes
compat.c -rw-r--r-- 17.3 KB
compat_mq.c -rw-r--r-- 4.0 KB
mqueue.c -rw-r--r-- 29.8 KB
msg.c -rw-r--r-- 18.7 KB
msgutil.c -rw-r--r-- 2.4 KB
sem.c -rw-r--r-- 33.2 KB
shm.c -rw-r--r-- 21.6 KB
util.c -rw-r--r-- 17.0 KB
util.h -rw-r--r-- 2.6 KB

back to top