Super pages

John Baldwin jhb at freebsd.org
Wed Feb 23 18:56:59 UTC 2011


On Wednesday, February 23, 2011 11:54:59 am Dr. Baud wrote:
> > On 23/02/2011 14:03, Dr. Baud wrote:
> > >
> > >      In general, is it unadvisable to disable super pages?
> > 
> > I don't think there would be any effect on the stability of operation if 
> > you disable superpages, but generally (except in cases of CPU bugs) you 
> > would not need to. Your system should operate a bit faster with 
> > superpages enabled.
> 
>     When is the memory allocated via contigmalloc freed? I have a test kernel 
> module that allocates memory in 8MB chucks until contigmalloc says enough (the 
> ginormous.c/Makefile attachment). I also have a bash script that displays the
> interesting memory related kernel state variables (the mem attachement).
>     When I load and unload the kernel module and display the VM pages stats I
> never see the wired pages nor free pages change:

Err, it's freed when you call contigfree().  If you leak the memory when you
do a kldunload, it is just lost until you reboot.

-- 
John Baldwin


More information about the freebsd-hackers mailing list