Re: allocate huge amounts of kernel memory
Re: allocate huge amounts of kernel memory
- Subject: Re: allocate huge amounts of kernel memory
- From: Umesh Vaishampayan <email@hidden>
- Date: Tue, 5 Nov 2002 13:58:06 -0800
On Monday, November 4, 2002, at 07:54 AM, Heiko Panther wrote:
>
Hi Umesh,
>
>
>> my IOKit driver wants to allocate really a lot of buffers with
>
>> IOMalloc(). At about 4 MB of alloc'd memory, further calls to
>
>> IOMalloc() fail. Is there some kind of limit defined? How can I
>
>> circumvent this problem?
>
>
> Hope you realize that's 4MB of kernel *wired* memory....
>
>
Of course.
>
For my testing purposes, I can afford wasting some wired memory. Could
>
you tell me why it fails, and how I can get more of that precious wired
>
memory?
>
>
Thank you-
>
Heiko Panther
UTSL.
IOMalloc() is just a wrapper around kalloc(). kalloc() allocates memory
from a sub map which is limited to 16MB.
May be in your case other kalloc() consumers already gobbled up 12MB...
Hence you get a failure at around 4MB.
--Umesh
--
Umesh Vaishampayan Apple Computer, Inc.
Mac OS X Kernel Ph: (408) 974 0229
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.