diff options
author | Ashwin Chaugule <ashwin.chaugule@celunite.com> | 2006-12-06 20:31:57 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 08:39:21 -0800 |
commit | 7602bdf2fd14a40dd9b104e516fdc05e1bd17952 (patch) | |
tree | 5ca703b0a95f6f2e6d977c816532b9085f453974 /drivers/char/cp437.uni | |
parent | 098fe651f7e9d759d1117c78c1a642b9b3945922 (diff) | |
download | linux-7602bdf2fd14a40dd9b104e516fdc05e1bd17952.tar.bz2 |
[PATCH] new scheme to preempt swap token
The new swap token patches replace the current token traversal algo. The old
algo had a crude timeout parameter that was used to handover the token from
one task to another. This algo, transfers the token to the tasks that are in
need of the token. The urgency for the token is based on the number of times
a task is required to swap-in pages. Accordingly, the priority of a task is
incremented if it has been badly affected due to swap-outs. To ensure that
the token doesnt bounce around rapidly, the token holders are given a priority
boost. The priority of tasks is also decremented, if their rate of swap-in's
keeps reducing. This way, the condition to check whether to pre-empt the swap
token, is a matter of comparing two task's priority fields.
[akpm@osdl.org: cleanups]
Signed-off-by: Ashwin Chaugule <ashwin.chaugule@celunite.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/cp437.uni')
0 files changed, 0 insertions, 0 deletions