cvs commit: src/sys/i386/i386 pmap.c

Peter Wemm peter at wemm.org
Fri Apr 28 21:22:47 UTC 2006


On Friday 28 April 2006 12:05 pm, Peter Wemm wrote:
>   ups@ had a truely evil idea that I'll investigate.  It should allow
>   freeing unused pages again by giving us a no-cost way to track the
>   holes in the kva block. 

FWIW, this idea appears to work.  For the curious:
http://people.freebsd.org/~peter/freepv.diff

This restores the enhancement of the original smallpv patch that allows pv 
pages to be freed and returned for general use.   It tracks the free kva in 
its block in a way that requires no memory alloc/frees, has no bitmaps, and 
doesn't search anything.

ups@ scares me for thinking of this. :-)

-Peter


More information about the cvs-src mailing list