Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jul 2001 13:59:31 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        Bosko Milekic <bmilekic@technokratis.com>, Alfred Perlstein <bright@mu.org>, vishwanath pargaonkar <vishubp@yahoo.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: cluster size
Message-ID:  <3B647933.86F7FBA0@mindspring.com>
References:  <Pine.SOL.4.21.0107291208130.8554-100000@opal>

next in thread | previous in thread | raw e-mail | index | archive | help
Zhihui Zhang wrote:
> 
> Excellent answer! I looked at the zone allocator code almost two years
> back and I wondered at that time why FreeBSD cannot allocate KVM at
> interrupt time but CAN allocate physical memory at interrupt time.  It
> turns out there is a physical memory reserve for interrupt time. By the
> way, for the zone allocator stuff, I tried to use it in a KLD but
> failed. Because if you use zone allocator in a KLD, you can not release
> memory used by it cleanly when you do a kld unload.  Thanks!

There was a recent patch to add a "zdestroy" function, so that
there would be no problems using zone from a loadable module.

Note that you will not be able to do a ziniti, onlt a zinit,
if you are loading as a module, unless you are very, very
lucky, and your kernel memory map has not been fragged (this
is unlikely, given FreeBSD's agressive caching policy: this
is also the reason that the zalloci's get called so early).

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B647933.86F7FBA0>