Re: shmem_getpage_locked() / swapin_readahead() race in 2.4.4-pre3

From: Rik van Riel (riel@conectiva.com.br)
Date: Sat Apr 14 2001 - 15:27:33 EDT

  • Next message: Eric S. Raymond: "Re: comments on CML 1.1.0"

    On Sat, 14 Apr 2001, Marcelo Tosatti wrote:

    > There is a nasty race between shmem_getpage_locked() and
    > swapin_readahead() with the new shmem code (introduced in
    > 2.4.3-ac3 and merged in the main tree in 2.4.4-pre3):

    > I don't see any clean fix for this one.
    > Suggestions ?

    As we discussed with Alan on irc, we could remove the (physical)
    swapin_readahead() and get 2.4 stable. Once 2.4 is stable we
    could (if needed) introduce a virtual address based readahead
    strategy for swap-backed things ... most of that code has been
    ready for months thanks to Ben LaHaise.

    A virtual-address based readahead not only makes much more sense
    from a performance POV, it also cleanly gets the ugly locking
    issues out of the way.

    regards,

    Rik

    --
    Linux MM bugzilla: http://linux-mm.org/bugzilla.shtml
    

    Virtual memory is like a game you can't win; However, without VM there's truly nothing to lose...

    http://www.surriel.com/ http://www.conectiva.com/ http://distro.conectiva.com/

    - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Sat Apr 14 2001 - 15:31:16 EDT