• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Calling allObjects memory allocation problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling allObjects memory allocation problem


  • Subject: Re: Calling allObjects memory allocation problem
  • From: "Paul Sanders" <email@hidden>
  • Date: Fri, 21 May 2010 16:18:42 +0100

> Also be aware that just because memory is released, doesn't mean it is returned to the system (e.g. you will not
> see your apps memory usage go down in Activity Monitor). In fact,  AFAIK, it is never returned to the system,
> except perhaps in low memory situations.

I don't actually think that's true.  At least, it's not what I observe.  I think it's more accurate to say that you cannot predict when memory which has been allocated and then freed will be returned to the operating system, nor how much.  It happens, I believe, in 4k pages, but probably not one at a time and will be heavily dependent on fragmentation of the process's heap.  No doubt there is much more to know.

I agree with the sentiment of keeping an eye on your peak memory usage.  I use Instruments for this, and it found one instance where memory usage was creeping steadily up when the app was playing audio but otherwise idle.

Paul Sanders.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Calling allObjects memory allocation problem
      • From: Keary Suska <email@hidden>
References: 
 >Calling allObjects memory allocation problem (From: Vassilis Pantazis <email@hidden>)
 >Re: Calling allObjects memory allocation problem (From: Nick Zitzmann <email@hidden>)
 >Re: Calling allObjects memory allocation problem (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: NSPrintInfo printSettings archiving
  • Next by Date: Re: NSWindowController for Prefs XIB Question (Core Data involved)
  • Previous by thread: Re: Calling allObjects memory allocation problem
  • Next by thread: Re: Calling allObjects memory allocation problem
  • Index(es):
    • Date
    • Thread