Subject: Re: hardwiring USPACE
To: None <nisimura@itc.aist-nara.ac.jp, port-mips@netbsd.org>
From: Noriyuki Soda <soda@sra.co.jp>
List: port-mips
Date: 11/27/2000 01:58:28
> > The whole mess could be avoided if the UAREA was naturally aligned, at
> > least on mips.
> 
> Ah, I had the same conclusion and I changed my local code like;
> 
> In sys/kern/kern_fork.c;
	:
>         uaddr = uvm_km_valloc_align(kernel_map, USPACE, USPACE);
> 
> It takes the 3rd argument 'align' which is just passed to uvm_map()
> call inside.  uvm_km_valloc() is now a wrapper for it. This seems the
> least intrusive to other ports.

IIRC, this may cause a serious problem that a system may come to
be impossible to create any process due to fragmentation of memory
pages. Do you have any idea to prevent such fragmentation?
--
soda