[lkml]   [1999]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Address spaces on a i386 - Getting Confused
    On Tue, 30 Mar 1999, Alan Cox wrote:

    > > This would work, but only if it is mlock'd (could be done by the
    > > kernel, just set the appropriate vm_flags during the mmap) else the
    > > swapper can toss it to disk at any time.
    > You need to bring the pages in. Also mmap() doesnt technically guarantee
    > pages will not move physically. It means they wont wander onto disk.

    If the kernel has a pointer to the pages the page count
    can never get below 1 and the page will stay firmly in
    it's place.

    I agree, however, that a kernel-space alloc() with an
    mmap() is a much cleaner solution...

    Rik -- Open Source: you deserve to be in control of your data.
    | Linux Memory Management site: |
    | Nederlandse Linux documentatie: |

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:51    [W:0.019 / U:32.196 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site