Subject: Re: Speeding up fork/wait path
To: Charles M. Hannum <>
From: Jason Thorpe <>
List: tech-kern
Date: 11/02/2003 12:26:00
On Sunday, November 2, 2003, at 12:19  PM, Charles M. Hannum wrote:

> 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.

I like this approach a lot better; avoid the temporary buffer 

The only trick would be to ensure that the KVA has a compatible cache 
alias on virtually indexed cache systems, unless we can somehow ensure 
that the stack pages aren't mapped at all in the target process at the 
time the args are copied.

         -- Jason R. Thorpe <>