Date: Sat, 13 May 2000 08:46:13 -0700 From: Arun Sharma <adsharma@sharmas.dhs.org> To: nathan@khmere.com Cc: freebsd-hackers@freebsd.org Subject: Re: mremap help ? or no support for FreeBSD ? so do what ? Message-ID: <200005131546.IAA15713@sharmas.dhs.org> In-Reply-To: <391D39E0.934224E4@khmere.com> References: <391D39E0.934224E4@khmere.com>
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 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?200005131546.IAA15713>