real memory usage - is this even possible?
real memory usage - is this even possible?
- Subject: real memory usage - is this even possible?
- From: Benjamin Salanki <email@hidden>
- Date: Wed, 04 Oct 2006 09:30:10 +0200
Hi,
I have a CoreData application that when a new volume is mounted iterates through its file and folder structure and creates an entity for each item, thus the contents can be represented as a browsable data source in an outline view.
The cataloging process is handled in a seperate thread that has an own NSAutoreleasePool set up, at the end the NSThread is exited properly. Anything I alloc init in the thread receives a proper release message except for those flagged with autorelease.
Running the app through MallocDebug reveals no memory leaks whatsoever, so I believe the code handles stuff properly.
But the strangeness happens in observing the application in Activity Viewer. Mounting a disc image that has several thousand files the REAL MEMORY usage gradually jumps to some 80 MB, with virtula memory growing to 350 or so. And after the function is done and the autorelease pool is released, the thread is exited, the REAL memory does not go down.
Now the interesting thing however is that when I observe the Wired and Active memory of the system memory in Activity Viewer, the combined value of them only grows about 1-2 Megs max, and I am not sure if all of that is attributable to my app.
The Inactive part of course grows, and the free part shrinks, but to my knowledge the Inactive part is basically freed to, but is still in memory sorta like cached.
So my question is, should I be concerned with what Activity Viewer is reporting, or is everything working out fine?
Thanks,
Ben
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden