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: "Justin C. Walker" <email@hidden>
- Date: Tue, 20 Jan 2009 20:15:39 -0800
On Jan 20, 2009, at 08:43 , Mario Emmenlauer wrote:
Hi Shawn,
Shawn Erickson wrote:
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.
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
)
Thanks! I used vmmap, it claims ~600MB should be used by my
process. Activity Monitor instead shows 1220MB virtual memory
usage, twice as much. Who is right? Am I doing something wrong?
The two could be using different algorithms to account for pages.
Might be worth filing a bug report with examples.
By the way, what is IOKit with 281MB and STACK GUARD with 56MB?
Both seem unreasonably high...
Stack guard chunks are 1 page, so I suspect that vmmap is just lumping
claimed but unallocted VM to that category (possibly a [more or less
harmless] bug). For IOKit, I can't say for sure. Are you mapping
lots of memory? I notice that Safari has a 250MB chunk allocated to
IOKit, while python has nothing of that type.
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
Men are from Earth.
Women are from Earth.
Deal with it.
--------
_______________________________________________
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