lkml.org 
[lkml]   [2000]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: mmap() page swapping location?
    "Juan J. Quintela" wrote:
    >
    > >>>>> "chris" == Chris Quinn <cq@htec.demon.co.uk> writes:
    >
    > chris> Hello folks,
    Hi Juan,

    I don't think MAP_PRIVATE quite fits the bill because pages become divorced from the file; msync() and munmap() seem no longer to reflect changes back to disk. I want to keep that association as it is efficient.

    Thanks for the MAP_NORESERVE ... didn't know about that vital flag.

    regards,
    Chris

    > s/MAP_SWAP/MAP_PRIVATE/ does just that ....
    > you need to have in account if you allow several processes reading the
    > database, blah, blah, blah .... Oh, and if you have a really _BIG
    > DATABASE_ you could want to play with MAP_NORESERVE (linux and some
    > others UNIX specific, not standard).
    >
    > Later, Juan.

    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:57    [W:2.379 / U:28.176 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site