Re: confusion about memory fragmentation, vm, and blocks
Re: confusion about memory fragmentation, vm, and blocks
- Subject: Re: confusion about memory fragmentation, vm, and blocks
- From: Dave Keck <email@hidden>
- Date: Thu, 5 Mar 2009 02:36:57 -1000
> Can I read up details about that pre-allocated space? Is there a good
> tutorial or technote?
> I understand it is quite a lot VM that my application consumes upon startup,
> about 1GB. It seems a fair amount given that I do 3D rendering and whatnot,
> but I would still be curious to reduce it. (I've asked about that in
> a separate thread (Why is virtual memory so high? (crash)) a while ago,
> but have not yet found a definitive conclusion.
Try reading up on virtual memory in general - many of the VM
principles used by Mach aren't Mach-specific. Also, take a look at
_Mac OS X Internals_ by Amit Singh - the entire chapter 8 deals with
Mach-specific VM. (I just bought the book a few weeks ago and am very
impressed.)
Also, as you optimize your code, bear in mind that the memory figures
for any given app doesn't necessarily reflect the app's complexity.
For example, building a Cocoa app with a single blank window claims
~300 MB virtual memory. My point being, don't lose too much sleep over
why your app is using X memory - it could be perfectly normal.
Good luck,
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden