Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: allocate huge amounts of kernel memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 | 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.

References: 
 >Re: allocate huge amounts of kernel memory (From: Heiko Panther <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.