Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Feb 2011 13:56:51 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        "Dr. Baud" <drbaud@yahoo.com>
Subject:   Re: Super pages
Message-ID:  <201102231356.51176.jhb@freebsd.org>
In-Reply-To: <365029.99890.qm@web120713.mail.ne1.yahoo.com>
References:  <365029.99890.qm@web120713.mail.ne1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102231356.51176.jhb>