Re: Why is virtual memory so high? (crash)
Re: Why is virtual memory so high? (crash)
- Subject: Re: Why is virtual memory so high? (crash)
- From: Shawn Erickson <email@hidden>
- Date: Mon, 19 Jan 2009 11:21:37 -0800
On Mon, Jan 19, 2009 at 1:18 AM, Mario Emmenlauer <email@hidden> wrote:
> I have a large C/C++ project with thousands of lines of code and
> many thirdparty-libraries. When it startes up, it reserves around 1.8GB
> of virtual memory (40MB real memory), and I don't know why.
Shared library mappings, contiguous reserved allocation blocks used by
malloc, etc. (and who knows what the third-party libraries do).
> Its a 32bit application that should use all real memory possible (4GB),
> but it crashes after reserving only 2.5GB real mem when the virtual mem
> reaches 4GB. The crash is logical, but why does it start with 1.8GB
> vmem initially? On ppc it reserves only 350MB vmem.
Different platforms can have different behaviors and libraries loaded.
So I am not to surprise the results are different between Intel and
PowerPC.
> Are there better/other tools I could try to inspect where the additional vmem is reserved?
vmmap (http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/vmmap.1.html)
-Shawn
_______________________________________________
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