• 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: real verses Virtual memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: real verses Virtual memory


  • Subject: Re: real verses Virtual memory
  • From: Michael Dautermann <email@hidden>
  • Date: Sat, 10 Oct 2009 08:04:21 -0700


On Oct 10, 2009, at 7:37 AM, jon wrote:

I have an app that run's a process every 20 seconds during the day...

is there a way to force it to use real memory rather than virtual?

because it runs every 20 seconds, and is defaulting to normal memory allocation,

it has a lot of disk swapping in and out, many many times during the day, and it seems like this
would negatively effect the life of a disk and performance of the whole machine?

This is a potentially broad topic, and the correct answer probably ultimately depends on how you decide to redo that process.


Is it polling for something (e.g. existence of a file or some state change?). Polling is something you really ought to try to avoid. Maybe some kind of notification would work better.

Could you change that process to just reuse it's memory (instead of allocating and releasing space) between each run? If it's hitting disk each time it's run, are you unnecessarily allocating a lot of memory?

You'd probably get a much more thorough & better answer from the list if you elaborated on what the ultimate goal of that repeating process is.


_______________________________________________

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: real verses Virtual memory
      • From: jon <email@hidden>
References: 
 >real verses Virtual memory (From: jon <email@hidden>)

  • Prev by Date: Re: NSURLRequest
  • Next by Date: Re: real verses Virtual memory
  • Previous by thread: real verses Virtual memory
  • Next by thread: Re: real verses Virtual memory
  • Index(es):
    • Date
    • Thread