Re: Why is virtual memory so high? (crash)
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Jan 20, 2009, at 08:43 , Mario Emmenlauer wrote: Hi Shawn, 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... 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Shawn Erickson wrote: On Mon, Jan 19, 2009 at 1:18 AM, Mario Emmenlauer <mario@emmenlauer.de
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/vmma... ) The two could be using different algorithms to account for pages. Might be worth filing a bug report with examples. 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Justin C. Walker