Subject: Re: Speeding up fork/wait path
To: Chuck Silvers <email@example.com>
From: Charles M. Hannum <firstname.lastname@example.org>
Date: 11/02/2003 20:19:35
On Sunday 02 November 2003 08:09 pm, Chuck Silvers wrote:
> I also want to use the larger-than-a-page pool stuff to allocate exec arg
> buffers (with a new option to allocate ZFOD instead of wired memory).
> freeing these buffers is a significant cost of execve() on eg. sparc
> due to the cache flushing, so letting the pool code cache them would
> be good.
That's totally the wrong direction. What we should be doing is mapping stack
pages in the target process and just doing copyin()s. We can use copyinstr()
with a bound to detect when we hit the end of a page.