[bagpatch] VM sneak preview

From: Rik van Riel (riel@conectiva.com.br)
Date: Fri May 26 2000 - 21:25:26 EDT

  • Next message: Alexander Viro: "Re: [KBUILD] Re: Announcing CML2, a replacement for the kbuild system"

    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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Fri May 26 2000 - 21:30:52 EDT