Date: Sat, 13 May 2000 12:08:35 -0700 (PDT) From: Matthew Dillon <dillon@apollo.backplane.com> To: Arun Sharma <adsharma@sharmas.dhs.org> Cc: nathan@khmere.com, freebsd-hackers@FreeBSD.ORG Subject: Re: mremap help ? or no support for FreeBSD ? so do what ? Message-ID: <200005131908.MAA01426@apollo.backplane.com> References: <391D39E0.934224E4@khmere.com> <200005131546.IAA15713@sharmas.dhs.org>
next in thread | previous in thread | raw e-mail | index | archive | help
:In muc.lists.freebsd.hackers, you wrote:
:> I know that this was discussed in the past but I can't find out what to
:> do ?
:>
:> In Linux if I have to resize a mmap 'ed object I can just use mremap....
:> but in FreeBSD if, I want to resize it what do I do ?
:
:Have you tried mmap'ing the file again at the same address, but with a
:larger length ?
:
:As I see it, the only advantage of using mmap instead of read/write interface
:is to avoid the extra system calls. However, by calling mremap or mmap
:repeatedly, you're losing that advantage. I think you're better off by
:extending your map in larger chunks, reducing the number of mmap/mremap
:calls. If you have a big enough address space, just use a large mmap region
:to begin with.
:
: -Arun
The linux mremap() is an idiotic system call. Just unmap the file and
re-mmap it.
-Matt
Matthew Dillon
<dillon@backplane.com>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005131908.MAA01426>
