:> >  The first is mremap().
:> 
:> What does this function do?  Is the function used by freely available
:> software, if so can you give some examples.
:
:http://www.freebsd.org/cgi/man.cgi?query=mremap&apropos=0&sektion=0&manpath=Red+Hat+Linux%2Fi386+5.2&format=html

    mremap() is idiotic and sounds like a cop-out for a badly designed
    memory allocator.  There are much better ways to manage memory depending
    on what you want to do.  For one thing, don't forget that it is perfectly
    legal to mmap() a larger size then the underlying file - you just can't
    access the space beyond the file EOF until you have extended the file
    by other means.  It is also perfectly legal to mmap() a large chunk of
    anonymous memory, like a megabyte, and grow into it.  No memory is
    actually allocated until you touch it.  Generally speaking, there are
    very limited uses to being able to remap anonymous (not file-backed)
    memory, and remapping file-backed memory is trivial (just an 
    munmap()/mmap() pair).

                                        -Matt
                                        Matthew Dillon 
                                        <[EMAIL PROTECTED]>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to