lkml.org 
[lkml]   [2000]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [RFC] [RFT] Shared /dev/zero mmaping feature
    From
    Date
    Hi Kanoj,


    kanoj@google.engr.sgi.com (Kanoj Sarcar) writes:
    > This is a patch against 2.3.47 that tries to implement shared /dev/zero
    > mappings. This is just a first cut attempt, I am hoping I will find a
    > few people to apply the patch and throw some real life programs at it
    > (preferably on low memory machines so that swapping is induced).
    >
    > Currently, you will also need to turn on CONFIG_SYSVIPC, but most of
    > the shm.c code can be split into a new ipc/shm_core.c file that is
    > always compiled in, irrespective of CONFIG_SYSVIPC. Linus, do you
    > think this is the proper direction to follow?
    >
    > Thanks. Comments and feedback welcome ...

    Why do you use this special zero_id stuff? It clutters up the whole
    code.

    If you would simply open a normal shm segment with key IPC_PRIVATE and
    directly remove it nobody can attach to it and it will be released on
    exit and everything. No special handling needed any more. BTW that's
    exectly what we do in user space to circumvent the missing MAP_ANON |
    MAP_SHARED.

    I would also prefer to be able to see the allocated segments with the
    ipc* commands.

    Greetings
    Christoph

    -
    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:56    [W:3.161 / U:0.428 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site