* [bagpatch] VM sneak preview
@ 2000-05-27 1:25 Rik van Riel
0 siblings, 0 replies; only message in thread
From: Rik van Riel @ 2000-05-27 1:25 UTC (permalink / raw)
To: linux-mm; +Cc: linux-kernel
Hi,
as Roger Larson pointed out, one detail from my "new VM
sneak preview" patch doesn't make much sense. It does
not affect stability <hint> the patch has been running
smoothly for a number of people, you may want to try it</hint>.
You can fix it by editing mm/filemap.c and changing the
following code fragment (around line 270):
+ if (PageTestandClearReferenced(page)) {
+ page->age += 3;
+ if (page->age > 10)
+ page->age = 0;
^^ should be 10
+ goto dispose_continue;
+ }
Here the code checks if page->age exceeds the maximum. Of
course page->age should be set to the maximum value if it
does, and not all the way down to 0 :)
If you checked the patch and wondered why performance wasn't
always good ... this is it, things should just work now...
regards,
Rik
--
The Internet is not a network of computers. It is a network
of people. That is its real strength.
Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies
http://www.conectiva.com/ http://www.surriel.com/
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-05-27 1:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-27 1:25 [bagpatch] VM sneak preview Rik van Riel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox