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: Mario Emmenlauer <email@hidden>
- Date: Tue, 20 Jan 2009 17:43:56 +0100
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?
By the way, what is IOKit with 281MB and STACK GUARD with 56MB?
Both seem unreasonably high...
==== Summary for process 30612
ReadOnly portion of Libraries: Total=137.1M resident=80.7M(59%)
swapped_out_or_unallocated=56.4M(41%)
Writable regions: Total=447.9M written=14.3M(3%) resident=51.2M(11%)
swapped_out=0K(0%) unallocated=396.7M(89%)
REGION TYPE [ VIRTUAL/RESIDENT]
=========== [ =======/========]
ATS (font support) [ 32.7M/ 500K]
CG backing stores [ 38.6M/ 25.1M]
CG raster data [ 28K/ 28K]
CG shared images [ 1056K/ 1032K]
Carbon [ 1732K/ 1732K]
CoreGraphics [ 168K/ 104K]
IOKit [ 281.1M/ 4484K]
MALLOC [ 51.5M/ 19.1M]
STACK GUARD [ 56.0M/ 0K]
Stack [ 9740K/ 112K]
VM_ALLOCATE ? [ 16.2M/ 120K]
__DATA [ 10.5M/ 9468K]
__IMAGE [ 1240K/ 132K]
__IMPORT [ 552K/ 504K]
__LINKEDIT [ 11.0M/ 10.3M]
__OBJC [ 1136K/ 1080K]
__OBJC/__DATA [ 268K/ 240K]
__PAGEZERO [ 4K/ 0K]
__TEXT [ 126.1M/ 70.5M]
__UNICODE [ 532K/ 344K]
mapped file [ 160.0M/ 12.8M]
shared memory [ 16.0M/ 52K]
shared pmap [ 5316K/ 2684K]
Best,
Mario
_______________________________________________
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