From owner-freebsd-hackers Sun Jul 29 14: 4:12 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.121.85]) by hub.freebsd.org (Postfix) with ESMTP id 49F1E37B401 for ; Sun, 29 Jul 2001 14:04:05 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.245.140.234.Dial1.SanJose1.Level3.net [209.245.140.234]) by gull.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id NAA00702; Sun, 29 Jul 2001 13:58:52 -0700 (PDT) Message-ID: <3B647933.86F7FBA0@mindspring.com> Date: Sun, 29 Jul 2001 13:59:31 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Zhihui Zhang Cc: Bosko Milekic , Alfred Perlstein , vishwanath pargaonkar , freebsd-hackers@FreeBSD.ORG Subject: Re: cluster size References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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