Subject: Re: RFC: mremap(2)
To: None <tech-kern@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-kern
Date: 07/05/2007 15:14:02
On Thu, Jul 05, 2007 at 10:06:07PM +0900, YAMAMOTO Takashi wrote:
> > On Thu, Jul 05, 2007 at 09:46:56PM +0900, YAMAMOTO Takashi wrote:
> > > before it goes in the tree, i'd like to see an actual user of the syscall.
> > 
> > I have an alternative malloc implementation using it.
> > 
> > Joerg
> 
> do you have any numbers with and without mremap?

Something like
	ptr = malloc(1 << 29);
	realloc(ptr, 1 << 30);
finishes in an instant with mremap and forces paging on my machine
otherwise. That alone should be an pretty obvious difference.

Joerg