diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-06-23 18:53:40 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-06-23 18:53:40 -0700 |
| commit | 2332dc7870b6f40eff03df88cbb03f4ffddbd086 (patch) | |
| tree | 0ef0bd9ce2c1da83ca56ff7ba32d80b5abec1ce8 /kernel | |
| parent | acba6041ff3f5dd7b4c88e012530db7474e3cdb8 (diff) | |
[PATCH] vmscan.c scan rate fixes
We've been futzing with the scan rates of the inactive and active lists far
too much, and it's still not right (Anton reports interrupt-off times of over
a second).
- We have this logic in there from 2.4.early (at least) which tries to keep
the inactive list 1/3rd the size of the active list. Or something.
I really cannot see any logic behind this, so toss it out and change the
arithmetic in there so that all pages on both lists have equal scan rates.
- Chunk the work up so we never hold interrupts off for more that 32 pages
worth of scanning.
- Make the per-zone scan-count accumulators unsigned long rather than
atomic_t.
Mainly because atomic_t's could conceivably overflow, but also because
access to these counters is racy-by-design anyway.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
