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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com