Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [apple scitech] Real v. Virtual Memory Footprint



It's because your application is reserving memory but not looking at most of it. What happens is that OS X swaps things in RAM out to disk when they are not recently used. Do a google on "how virtual memory works" to understand more.

On Nov 30, 2007, at 9:59 AM, Kenneth Prager wrote:

I have a question regarding an application's real memory footprint versus its virtual memory footprint. I am asking this question here because (a) I know that there are many knowledgeable people here and (b) I honestly don't know which other of the Apple lists is more appropriate (is this a Darwin question, a Cocoa question, etc.). Also, I am asking this question only because I am curious, not because I expect to do anything with the information.

Here is my question: when I reboot my Mac, it starts out with one swap file (BTW, I have 2 GB of RAM). If I look at memory usage in the Activity Monitor, real and virtual memory footprints are the same. After about a week I am typically up to 5 or 6 swap files and for most applications, the virtual memory footprint is 10-15 times as large as the real memory footprint (for example, PCalc's real footprint is 6.7 MB and virtual footprint is 364.5 MB).

Why is this? Is it because of a lack of garbage collection in Objective C? If so, will the addition of garbage collection in Leopard automatically solve this problem?

Thanks in advance,

Ken Prager




_______________________________________________ Do not post admin requests to the list. They will be ignored. Scitech mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/scitech/email@hidden

This email sent to email@hidden

--
✐Richard Cook
✇ Lawrence Livermore National Security
Bldg-453 Rm-4037, Mail Stop L-557
7000 East Avenue, Livermore, CA, 94550, USA
☎ (office) (925) 423-9605
☎ (fax) (925) 423-6961
---
Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNS)


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Scitech mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/scitech/email@hidden

This email sent to email@hidden
References: 
 >[apple scitech] Real v. Virtual Memory Footprint (From: Kenneth Prager <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.