From owner-freebsd-hackers Thu Nov 15 13:34:23 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id BA55937B405 for ; Thu, 15 Nov 2001 13:34:20 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id AE25C81D0A; Thu, 15 Nov 2001 15:34:20 -0600 (CST) Date: Thu, 15 Nov 2001 15:34:20 -0600 From: Alfred Perlstein To: Chris Ptacek Cc: "'freebsd-hackers@freebsd.org'" Subject: Re: kernel malloc questions... Message-ID: <20011115153420.U13393@elvis.mu.org> References: <31269226357BD211979E00A0C9866DAB02BB9745@rios.sitaranetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <31269226357BD211979E00A0C9866DAB02BB9745@rios.sitaranetworks.com>; from cptacek@sitaranetworks.com on Thu, Nov 15, 2001 at 04:21:51PM -0500 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 * Chris Ptacek [011115 15:22] wrote: > Hey all, I have a couple questions about kernel mallocs. > > I am trying to malloc a large amount of memory for a KLD during load and the > malloc keeps failing. I am trying to malloc 64-128MB for a memory pool for > a project I am working on. My system has 196MB of memory and the KLD is > loaded at startup so I am relativly sure that I have enough memory to > satisfy the request. You're probably incorrect. I know malloc looks easy, but what you want to use is the underlying mechanisms that malloc uses, vm_alloc or whatnot. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' http://www.morons.org/rants/gpl-harmful.php3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message