Re: allocate huge amounts of kernel memory
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 | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Umesh Vaishampayan