Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: real verses Virtual memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: real verses Virtual memory




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


References: 
 >real verses Virtual memory (From: jon <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.