Date: Thu, 15 Nov 2001 15:34:20 -0600 From: Alfred Perlstein <bright@mu.org> To: Chris Ptacek <cptacek@sitaranetworks.com> Cc: "'freebsd-hackers@freebsd.org'" <freebsd-hackers@freebsd.org> Subject: Re: kernel malloc questions... Message-ID: <20011115153420.U13393@elvis.mu.org> In-Reply-To: <31269226357BD211979E00A0C9866DAB02BB9745@rios.sitaranetworks.com>; from cptacek@sitaranetworks.com on Thu, Nov 15, 2001 at 04:21:51PM -0500 References: <31269226357BD211979E00A0C9866DAB02BB9745@rios.sitaranetworks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
* Chris Ptacek <cptacek@sitaranetworks.com> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011115153420.U13393>
