Re: Why is virtual memory so high? (crash)
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=In1cgRbDCHLlyDYkPdGEWgBJqlfjyKu9FuLvV+tp3xQ=; b=p5TheZeruPlyVOSYXJZ5eqgh+cyNeBBOuqyV8QfwlPySPUc9F/f+yaG03Fmuwb7hsT r7t4m/8aRoFEjrHl/CU4zGaKHRUprfl6D91Q4XCPce3EiUr4wq/T9vYcZ4tBIMJ6NnVj xnvqYfuycVcuuiDCq5w0N5JWC7VvdkQp142LU= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=dt/NqLcnKJ7fvks3WN3YWRThjG/pqJg3+F2S/R9rOBAdEYZF5lkC4GVM35IZjlgFwY z831GjCaNtWKZtJLOdQrDTidh+A/KruLFjbSvFvlpdNezDXqyMYgBFF2Wy6uBdeIK5mH hhSe1dnu1SiFR3CUL0jbqkdgOcFsMkHyXjYM0= 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.
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/vmma...) -Shawn _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Shawn Erickson